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

XML Elements are Extensible

Started by ben2ong2, October 05, 2006, 05:03:02 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

ben2ong2

XML documents can be extended to carry more information.
Look at the following XML NOTE example:
<note><to>Tove</to><from>Jani</from><body>Don't forget me this weekend!</body></note>
Let's imagine that we created an application that extracted the <to>, <from>, and <body> elements from the XML document to produce this output:
MESSAGE To: ToveFrom: JaniDon't forget me this weekend!
Imagine that the author of the XML document added some extra information to it:
<note><date>2002-08-01</date><to>Tove</to><from>Jani</from><heading>Reminder</heading><body>Don't forget me this weekend!</body></note>
Should the application break or crash?
No. The application should still be able to find the <to>, <from>, and <body> elements in the XML document and produce the same output.
XML documents are Extensible.
You are not allowed to view links. Register or Login
You are not allowed to view links. Register or Login