XML – a Case Sensitive

Q. Is XML a case-sensitive Mark-up Language?


A.: YES, XML is a Case-Sensitive.

  • Since XML is NOT Replacement fro HTML.
  • B’coz HTML is used for FORMATTING the data that is represented to the Browser.
  • Where, the XML is used to STORE and TRANSFER the data over the network or internet.
  • XML is Device or Language independent language used for WEB Applications and Websites

Ex: < Header > is not same as < HeadeR >

* Tags must be closed in the reverse order that they were opened

Ex: < first-tag >< second-tag > Data here < /second-tag > < /first-tag >

========== Example of Storing data into XML File ==========

xml version=1.0 encoding=utf-8 standalone=yes?>

<MyDataSet>

<UserInfo>

<UserID>111UserID>

<Name>RiteshName>

<Surname>MandalikSurname>

UserInfo>

<UserInfo>

<UserID>112UserID>

<Name>RiteshName>

<Surname>InamdarSurname>

UserInfo>

<UserInfo>

<UserID>113UserID>

<Name>RiyazName>

<Surname>AnthonySurname>

UserInfo>

MyDataSet>


====== Another form of Storing data into XML File ========

xml version=1.0 encoding=utf-8 standalone=yes?>

<MyDataSet>

<UserInfo UserID=111 Name=Ritesh Surname=Mandalik />

<UserInfo UserID=112 Name=Ritesh Surname=Inamdar />

<UserInfo UserID=113 Name=Riyaz Surname=Anthony />

MyDataSet>

Regards,
Mayur Dighe
http://ImmortalDotNet.blogspot.com
http://MayurDighe.wordpress.com