A
Alfie Noakes
Using this Xpath expression,
//table[@name='animals']/row
I have a nodeset result from a Xpath query which returns all the <row>
elements for the given table in the following simeple XML
structure.....
<database>
[ other tables occur first ]
<table name="animals">
<row>
<field name="name">Monkey</field>
<field name="size">Biggish</field>
</row>
<row>
<field name="name">Whale</field>
<field name="size">Massive</field>
</row>
etc ...
My question is, what is the best way to step through all the field
elements in each row? I can do it in the software stepping through the
sibling and child nodes but these seems cumbersome. I suspect there's
something I can do using axis. Am I right?
Regards to all.
//table[@name='animals']/row
I have a nodeset result from a Xpath query which returns all the <row>
elements for the given table in the following simeple XML
structure.....
<database>
[ other tables occur first ]
<table name="animals">
<row>
<field name="name">Monkey</field>
<field name="size">Biggish</field>
</row>
<row>
<field name="name">Whale</field>
<field name="size">Massive</field>
</row>
etc ...
My question is, what is the best way to step through all the field
elements in each row? I can do it in the software stepping through the
sibling and child nodes but these seems cumbersome. I suspect there's
something I can do using axis. Am I right?
Regards to all.