stega
12 years agoContributor
Property Transfer XPath problem
I want to get a value from a response with property transfer.
The response looks like this:
<Response xmlns="http://.../281">
<tag1>test20131108_1</tag1>
<tag2>281</tag2>
<tag3>NONE</tag3>
<tag4>2013-11-08T08:37:29.615+01:00</tag4>
<tag5>PUBLIC</tag5>
<tag6>CAPTURING</tag6>
<tag7>0</tag7>
</Response>
I tried the XPath: //Response//code
But i get "null". I have no clue, what is wrong.
If i try this code with a request which gives back more records, it works.
<Response>
<e>
<tag1>test20131108_1</tag1>
<tag2>281</tag2>
<tag3>NONE</tag3>
<tag4>2013-11-08T08:37:29.615+01:00</tag4>
<tag5>PUBLIC</tag5>
<tag6>CAPTURING</tag6>
<tag7>0</tag7>
</e>
<e>
<tag1>test20131108_3_mod_mod</tag1>
<tag1>282</tag2>
<tag1>NONE</tag3>
<tag1>2013-11-08T08:42:25.804+01:00</tag4>
<tag1>PUBLIC</tag5>
<tag1>CAPTURING</tag6>
<tag1>1</tag7>
</e>
</Response>
The response looks like this:
<Response xmlns="http://.../281">
<tag1>test20131108_1</tag1>
<tag2>281</tag2>
<tag3>NONE</tag3>
<tag4>2013-11-08T08:37:29.615+01:00</tag4>
<tag5>PUBLIC</tag5>
<tag6>CAPTURING</tag6>
<tag7>0</tag7>
</Response>
I tried the XPath: //Response//code
But i get "null". I have no clue, what is wrong.
If i try this code with a request which gives back more records, it works.
<Response>
<e>
<tag1>test20131108_1</tag1>
<tag2>281</tag2>
<tag3>NONE</tag3>
<tag4>2013-11-08T08:37:29.615+01:00</tag4>
<tag5>PUBLIC</tag5>
<tag6>CAPTURING</tag6>
<tag7>0</tag7>
</e>
<e>
<tag1>test20131108_3_mod_mod</tag1>
<tag1>282</tag2>
<tag1>NONE</tag3>
<tag1>2013-11-08T08:42:25.804+01:00</tag4>
<tag1>PUBLIC</tag5>
<tag1>CAPTURING</tag6>
<tag1>1</tag7>
</e>
</Response>