Documente Academic
Documente Profesional
Documente Cultură
XML
eXtensible Markup Language is a text based structured language , used for presentation of the data. XML is an alternative for HTML , but HTML is more presentation centric and XML on other hand is more data centric. In other word HTML focused on how we present our data, but XML focused on the what data need to present.
XML
1. It is focused on which data need to present. i.e. data to present
2. It is not having any predefine tags as HTML is having, here user can make its own tags as per his requirement.
3. We can link our database to XML directly, every reputed RDBMS has this feature.
XML example
Pre-processor identifier <?xml version="1.0"?>
Root Element
Attribute
<childB>
<childBChild_1/> <childBChild_2/>
Child Element
</childB> </rootElement>
Xml Pre-processor
It is used for defining that our document is an XML document. It is an optional one, but it is recommended to have the pre-processor on every XML document .
Syntax :
<?xml version="1.0"?>
Xml Element
It is an building block for an XML Document , it having a collection of two tags, one is opening tag other is closing tag. Syntax :
XML Attribute
Xml Attribute is an additional information regarding respective element. It is used to provide additional information other than the value contain by element in its opening or closing tags.
Syntax:
<Element Attribute=value/> Or <Element Attribute=value>..</Element> e.g. <Candidate Id=CDE002/> Or <Candidate Id=CDE002></Candidate>