May 6, 2009

0 store data in child elements

the following three xml documents contain exactly the same information.

A date attribute is used in first tutorial.

<note date="12/11/2002">
<to>Rasik</to>
<from>Bapotra</from>
<heading>Reminder</heading>
<body>Dont't forget me this weekend!</body>
</note>

A date element is used in the second tutorial.

<note date="12/11/2002">
<to>Rasik</to>
<from>Bapotra</from>
<heading>Reminder</heading>
<body>Dont't forget me this weekend!</body>
</note>


An expanded date element is used in the third tutorial

<note>
<date>
<day>12</day>
<month>11</month>
<year>2002</year>
</date>
<to>Rasik</to>
<from>Bapotra</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note>


0 comments:

Post a Comment

Blogger Themes

 
Powered by Blogger