Hi all.
I just found out out thie interesting confusion. I don;t know i am write or wrong, but can anyone explain this concept of "Siblings".
If i have xml file like this:
</GrandParent>
<Parent1>
<Child1>
name1
</Child1>
<Child2>
name2
</Child2>
</Parent1>
<Parent2>
<Child3>
name3
</Child3>
<Child4>
name4
</Child4>
</Parent2>
</GrandParent>
When i am using JAXP DOM parser, and my node is poiting to "Child1" of "Parent1", and i use node.getNextSibling() points me to "name1", not to "Child2"
Isn't it confusing.
Isn't "name1" is child of "Child1"
Can anyone explain this concept.
TIA
L Goundalkar.
------------------