In this tutorial you will learn about the XML Parent and its application with practical example.
An XML Element for example element “A” is said to be parent of element “B” if element “B” is directly defined inside element “A”.
Table Of Contents−
Example:
1 2 3 4 5 |
<message> <from>John</from> <subject>Test Message 1</subject> <body>Hello John!</body> </message> |
In the above example <message></message> is parent element for <from></from>,<subject></subject> and <body></body> element.