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/
[EMAIL PROTECTED] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
xml mailing list, project page http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml