This content has been marked as final. Show 4 replies
You're using selectNodeList so I presume you're looking for more than one <question> node. Otherwise you could just use selectSingleNode and it will return the node and not an array of nodes.
If you want the array and you need to get the childnodes of each element, then just use its childNodes property.
And I agree the XPathAPI is a shocker. I was trying to figure out something today too. I couldn't get the AND comparison working for attribute checking. Gave up in the end.
That is, if I have 2 <module> nodes with <question> children, I have no way to get to one or the other.
I just downloaded the xfactorstudio XPATH api, I'm going to experiment with that now and see if it is something about Flash's simple API that is giving me headaches.
Yes, I've not used the xfactorstudio one, but from what I've read its much more comprehensive. The original flash one is very very limited in terms of what's implemented.