1 Reply Latest reply on Mar 5, 2012 3:37 PM by BigGunN

    evaluating XML data for comparison

    BigGunN Level 1

      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]


           [do something else]

      End if


      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 am using VB and CS5.5, but javascript answers/ examples are fine.