Parsing XML with XPath Navigator [modified]
-
Hi All, While parsing an xml document using Xpath navigator how we can check whether a node has child nodes or not. Tried using both HasChildern and IsEmptyChild but no luck. I should be able to differentiate between No child child 1 child 2 How to diff between node1 (no children) and node2 (which has children) Thanks in advance. Regards Mahe -- modified at 1:57 Wednesday 11th April, 2007
-
Hi All, While parsing an xml document using Xpath navigator how we can check whether a node has child nodes or not. Tried using both HasChildern and IsEmptyChild but no luck. I should be able to differentiate between No child child 1 child 2 How to diff between node1 (no children) and node2 (which has children) Thanks in advance. Regards Mahe -- modified at 1:57 Wednesday 11th April, 2007
-
Has child nodes should work fine! Check your xpath correctly, for best examples with xpath refer w3schools!
Gautham
Hi, Thank you for your response. My XML file is Singapore
IA 20
My Xpath is selecting country element. So how can i differentiate between name element and Address element. Thanks, Pani