Professional Documents
Culture Documents
XML Namespaces PDF
XML Namespaces PDF
Eg: <student>
<BTECH>
<course> Computer Science </course>
<age> 22 </age>
</BTECH>
<MTECH>
<course> DataScience </course>
<age> 24 </age>
</MTECH>
</student>
Here would be a name conflict for <course> and <age>, but the elements
have different content and meaning.
<student xmlns:ug="http://www.w3.org/2001/XMLSchema"
xmlns:pg="http://www.w3.org/2001/XMLSchema" >
<BTECH>
<ug:course> Computer Science </ug:course>
<ug:age> 22 </ug:age>
</BTECH>
<MTECH>
<pg:course> DataScience </pg:course>
<pg:age> 24 </pg:age>
</MTECH>
</student>