Does anyone know if it is possible to evaluate an xml node to see if it holds a specific value, and if so how?
I am trying to do something like this...
Set myChild = myRoot.evaluateXPathExpression("//collections/page/pnum")
if myChild(1) = 1 THEN
[do something else]
I keep getting a "Object does not support this property or method" error on the first line of the if statement.
If I placeXML into a text frame I can get the value of myChild(1), so I know the XPath is correct and there is something there, I just can't figure out how to use it.
That particular node should hold the value of 1.
I got it figured out. If anyone else cares to know, it goes like this...
if myChild(1).contents = 1 THEN