Well, I need to step through the whole xml file and build up a json block 
based on it, the problem is that I have to keep hierarchy intact, and the 
locations can be anywhere, it's not a static xml.

On Friday, October 17, 2014 9:47:19 AM UTC-4, [email protected] wrote:
>
> Marcus,
>
> You need to search for the nodes you want. For example if you want to find 
> all the "DATA" nodes
> under the root of "XDOC" you search for xmlSearch(xmlvar, "/XDOC/DATA") - 
> which should give
> you an array of those nodes.
>
> If you want ALL the DATA nodes and don't know the path or don't care where 
> they are located, then
> just xmlSearch(xmlvar, "//DATA") - which should find them all.
>
> Thanks,
> Alan Cole
> (PGP Key ID: 0x82D8E0C7)
>  
>

-- 
-- 
online documentation: http://openbd.org/manual/
 http://groups.google.com/group/openbd?hl=en

--- 
You received this message because you are subscribed to the Google Groups "Open 
BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to