Altova Mailing List Archives>Archive Index >comp.text.xml Archive Home >Recent entries >Thread Prev - Re: Xpath and axis navigation using libxml >Thread Next - Re: Xpath and axis navigation using libxml Re: Xpath and axis navigation using libxmlTo: NULL Date: 11/11/2008 12:42:00 PM There's no XSLT being used, though I have an XSD to validate against when the XML is loaded by the libxml library. After loading I need to build SQL command strings to add each row to a mySQL database. I'm going to have another crack at it today. On Tue, 11 Nov 2008 13:01:12 +0100, Martin Honnen <mahotrash@y...> wrote: >Alfie Noakes wrote: > >> 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? > > >Are you using XSLT? Then you can do > <xsl:for-each select="//table[@name='animals']/row"> > <xsl:for-each select="field"> > ... > </xsl:for-each> > </xsl:for-each> | ||||||
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | Mobile | Full Site | |||
|
