Tags:XML Questions | 69 views
Rules always have exceptions.
My rule about attributes has one exception:
Sometimes I assign ID references to elements. These ID references can be used to access XML elements in much the same way as the NAME or ID attributes in HTML.
This example demonstrates this:
< messages >
< note id=”p501″ > < to > Tove < /to > < from > Jani < /from >
< heading > Reminder < /heading >
< body > Don’t forget me this weekend! < /body >
< /note >
< note id=”p502″ > < to > Jani < /to > < from > Tove < /from >
< heading > Re: Reminder < /heading >
< body > I will not! < /body >
< /note >
< /messages >
XML VALIDATION
XML with correct syntax is Well Formed XML.
XML validated against a DTD is Valid XML.
RSS feed for comments on this post · TrackBack URI
Leave a reply