I have the following XML document that I'm using for a test case:
<root>
<a>hi</a>
<b>bye</b>
</root>
I want to get all of the child elements of <root> using //root/*. This is returning a single DocumentNode.
I was expecting a vector of DocumentNodes like I would get if all of the child elements were <a> and the
xpath was //root/a.
I have the following XML document that I'm using for a test case:
I want to get all of the child elements of
<root>
using//root/*
. This is returning a singleDocumentNode
. I was expecting a vector ofDocumentNode
s like I would get if all of the child elements were<a>
and the xpath was//root/a
.