[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: [xml] Difference btw. xmlNewDocNode and xmlNewNode
- From: Daniel Veillard <veillard redhat com>
- To: Trappel Martin <martin trappel ksengineers at>
- Cc: xml gnome org
- Subject: Re: [xml] Difference btw. xmlNewDocNode and xmlNewNode
- Date: Fri, 30 Mar 2007 08:36:53 -0400
On Fri, Mar 30, 2007 at 12:52:11PM +0200, Trappel Martin wrote:
> Greetings!
>
> I'm really a bit confused about xmlNewDocNode() vs. xmlDocNode() ...
> Can anyone explain to me what's the difference in using these two (or point
> me to where that kindo of basics would be explained)?
>
> xmlNodePtr xmlNewNode (xmlNsPtr ns, const xmlChar * name)
> Vs.
> xmlNodePtr xmlNewDocNode (xmlDocPtr doc, xmlNsPtr ns, const xmlChar * name,
> const xmlChar * content)
xmlNewNode allows to build a node outside of any document context
xmlNewDocNode also allow to initialize a text node child with the given
content if given
Daniel
--
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard | virtualization library http://libvirt.org/
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]