Hi all,
Can we access the XML Node directly using XmlDocument.GetElementsByTagName('ABC/XYZ')?
Last time automation time, I can use '/', but in DotNet seem like not work anymore.
Yes you can. If you want to select all nodes with specific name just use xmlnodelist = XmlDocument.GetElementsByTagName('XYZ') - will get all nodes from XML document with name XYZ.
You may use xpath to define from where nodes should be retrieved, like xmlnodelist = XmlDocument.GetElementsByTagName('<path>\NodeName')
Answers
You may use xpath to define from where nodes should be retrieved, like xmlnodelist = XmlDocument.GetElementsByTagName('<path>\NodeName')
Blog - rockwithnav.wordpress.com/
Twitter - https://twitter.com/RockwithNav
Facebook - https://facebook.com/rockwithnav/