News:

This week IPhone 15 Pro winner is karn
You can be too a winner! Become the top poster of the week and win valuable prizes.  More details are You are not allowed to view links. Register or Login 

Main Menu

My Favorite Way

Started by ben2ong2, October 05, 2006, 05:06:00 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ben2ong2

I like to store data in child elements.
The following three XML documents contain exactly the same information:
A date attribute is used in the first example:
<note date="12/11/2002"><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
A date element is used in the second example:
<note><date>12/11/2002</date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
An expanded date element is used in the third: (THIS IS MY FAVORITE):
<note><date>  <day>12</day>  <month>11</month>  <year>2002</year></date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>


You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login