In this tutorial you will learn about the XML Sibling and its application with practical example.
An XML Element is said to be sibling of another XML Element only when both the element have the same parent.
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 siblings of one another.