[gdal-dev] RE: CPLXMLNode, no GetChilds()'like method ?

Aurélien Kamel aurelien.kamel at magellium.fr
Wed Oct 15 10:28:19 EDT 2008


I found my answer. I can use the public attribute psNext that point to the
next sibling.

Sorry.
aurel

-----Message d'origine-----
De : Aurélien Kamel [mailto:aurelien.kamel at magellium.fr] 
Envoyé : mercredi 15 octobre 2008 16:24
À : 'gdal-dev at lists.osgeo.org'
Objet : CPLXMLNode, no GetChilds()'like method ?

Hello,

I have to parse a XML file in a driver I'm writing for OGR and I would like
to do a recursive method that would take a xml node as argument and then
call itself on each of the child of this node.

Is there a way to get the child list of a node with CPLXMLNode ? For the
moment I can't figure how I could do this with cpl_minixml...

http://www.gdal.org/cpl__minixml_8h.html

Thanks,
Cheers,
aurel





More information about the gdal-dev mailing list