Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Xpath and axis navigation using libxml

From: Alfie Noakes <AlfieNoakes@----------.--.-->
To: 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>


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent