AnsweredAssumed Answered

How do i use xpath within JavaScript... An Example would help

Question asked by lewidm on Jun 25, 2014
Latest reply on Jul 23, 2014 by Tom_Kouhsari

I am trying to use xpath to work with xml data that does not have an element always in every node. I need to put in arrays for each node.

The problem is i am not getting the xpath to give results at all

 

I get this and example xml .. Element <EQ> will allways be present

 

<The>

<instance>

<Add>One</Add>

<EQ>Three</EQ>

</instance>

<instance>

<Sub>Two</Sub>

<EQ>Four</EQ>

</The>

 

I want to then create a file that has this

"Add","Sub,"EQ"

"One","","Three"

"","Two","Four"

 

I tried to start getting the data with some of this to no effect and about 1000 variation on this.

list = applyXPath(Process[Opname].SoapSesponceBody,"/The/instance/Sub");

Outcomes