Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries [Thread Prev] >Thread Next - Re: Xpath and axis navigation using libxml Xpath and axis navigation using libxmlTo: NULL Date: 11/11/2008 5:11:00 AM
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.
| ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
