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
Post a Comment