21-05-2012, 05:26 PM
X M LExtensible Markup Language
XML.ppt (Size: 130 KB / Downloads: 27)
It is a cross platform tool or a language to achieve data transfer between the cross platform.
Note 1.XML is not a replacement for HTML.2. It is used to present the data in a formatted matter.3.XML is used to represent the data.4.XML is used to represent the data and it is not having any capability to perform any tasks on its own.Always an application is required in order to work with the XML documents.
Well formed XML doc it is used for representing the data only.
Valid XML doc it is used for representing the data along with its definitions.
Where the definitions of the XML document can be provided using either the Data Type Definitions (DTD) or XML Schema Definitions(XSD) file
Rules for writing a Well Formed XML doc
The extension for the file should be XML.
XML documents are case sensitive files and hence the tags and the attribute values of the documents should be maintained in proper case.
XML document should have atleast one root element which can have one or more Child elements.
Structure of a Well Formed XML doc
<rootElement attributeName=“value”><childElement> <subChildElement>----- </subChildElement> </childElement> </rootElement>
Entity
Entity It is used to define a user specific named entities which can be used in the XML document.Note when ever a named entity is used within a XML document then the value of the named entity will be substituted as a macro substitution within the XML document.<!ENTITY entityName “Value”>for e.g <!ENTITY SL “sudhironline”>note when ever in a XML document &SL; is used then in that position the value “sudhironline” will be substituted