[xml] Re: xpath & node creation
- From: "Thomas Rokohl" <rokohl raygina de>
- To: xml gnome org
- Subject: [xml] Re: xpath & node creation
- Date: Mon, 1 Nov 2004 11:16:42 +0100
hi again,
is there a reason why the xmlXPathObject has no xmlNodePtr of the element?
( and why is xmlXPathObject not xmlNodePtr? )
i mean it's very costly to search the xmlNodePtr in the parent nodetab.
"Thomas Rokohl" <rokohl raygina de> schrieb im Newsbeitrag
news:cm3clc$aml$1 sea gmane org
thanx.
mhm one short question :
how i can create an node at a xmlXPathObjectPtr?!
if i have the xmlXPathObjectPtr to the last note which noteset isn't
empty, how i can get the xmlNotePtr for the
xmlNewChild function?!
i'm blind or must i search manual???
thanx again.
"Daniel Veillard" <veillard redhat com> schrieb im Newsbeitrag
news:20041031165723 GC26196 redhat com
On Sun, Oct 31, 2004 at 04:54:20PM +0100, Thomas Rokohl wrote:
hi,
is there an easy way to create nodes with a given XPath.
i have a given path and if this node and his parent's doesn't exist i
will
create it.
is there a solution in libxml?
not automatic. XPath is a query only engine. Closest example is
http://xmlsoft.org/examples/index.html#xpath2.c
Daniel
--
Daniel Veillard | Red Hat Desktop team http://redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]