Chilkat parsing XML - Looping problem -


i'm using chilkat parse xml response external api. works when xml formed follows:

<response> <field1>data1a</field1> <field2>data2a</field2> <field3>data2a</field2> </response> <response> <field1>data1b</field1> <field2>data2b</field2> <field3>data2b</field2> </response> 

using .nextsibling() loop through nodes; however, when xml formed follows:

<response> <data field1="data1a" field2="data2a" field3="data3a"/> <data field1="data1b" field2="data2b" field3="data3b"/> </response> 

only first node captured (using .chilkatpath extract attributes) , .nextsibling() has no effect.

what should using loop though these nodes?

thanks help

i'm throwing shot in dark here, there chance you're parsing "response" field instead of "data" field ?

on first example response has sibling (2 tags), on second example there's 1 "response" tag, maybe explains why there's no siblings it.

shai.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -