Hi, I have the below example XML, when i process this through spath i get the following fields with values created automatically
xpath "//table/elem/@key" outfield=name
The first is just the values
answer
question
The second contains the values of the answer and question.
xpath "//table/elem/" outfield=name
true
false
is it true or false
etc
I am trying to extract 2 fields based on the key="answer" and key="name"
any idea how i can achieve this using spath/xpath etc
`
true
is it true or false
true
is it true or false
false
is it true or false
`
Thanks
Found the solution
xpath "//table/table/elem[@key='answer']" outfield=AAA
Found the solution
xpath "//table/table/elem[@key='answer']" outfield=AAA
<table>
<elem key="answer">true</elem>
<elem key="name">Is it true or false</elem>
</table>
<table>
<elem key="answer">true</elem>
<elem key="name">Is it true or false</elem>
</table>
<table>
<elem key="answer">false</elem>
<elem key="name">Is it true or false</elem>
</table>
Adding sample xml