In this tutorial you will learn about the XML Child and its application with practical example.
An XML Element for example element “B” is said to be child of element “A” 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 <from></from>,<subject></subject> and <body></body> element are said to be child element of <message></message> tag.