RE: [xml] help: how to get content of an element via XPath in lib xml2



  You understand that 
xmlXPathEvalExpression(document,"/record/field"))
returns a node set, that a node set may potentially contain 0, 1 or N 
nodes. A nodeset is not a node, you can't xmlGetContent() the result !

I understand the difference between nodesets and nodes.

Actually xmlXPathEvalExpression
returns an xmlXPathObjectPtr.
I am having trouble figuring out
how that maps into a xmlNodeSetPtr.






[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]