No it's not.

http://xmlsoft.org/html/libxml-tree.html#xmlDoc

http://xmlsoft.org/html/libxml-tree.html#xmlNode

xmlDoc has int compression instead of xmlNode's xmlNs

On Mon, 2013-04-29 at 07:48 +0400, Nikolay Sivov wrote:
> On 4/29/2013 07:30, Nikita Churaev wrote:
> > #include <libxml/parser.h>
> > #include <libxml/tree.h>
> > #include <stdio.h>
> >
> > int
> > main (int argc, char** argv)
> > {
> >    xmlDocPtr doc = xmlReadMemory("<doc/>", 6, "egg.xml", NULL, 0);
> >
> >                    /* XmlNode */            /* XmlDoc */
> >    printf("%s\n", (doc->children->parent == doc) ? "true" : "false");
> >    return 0;
> > }
> >
> > This gives out "true"... Why? xmlNode.parent is xmlNodePtr... So I can't
> > just rely on xmlNode pointers to actually point to xmlNode?
> Just take a look what xmlDocPtr actually is - document is also a node.
> >   I looked all
> > around the API reference and tutorials and found nothing on this topic.
> >
> > _______________________________________________
> > xml mailing list, project page  http://xmlsoft.org/
> > [email protected]
> > https://mail.gnome.org/mailman/listinfo/xml
> >
> 
> _______________________________________________
> xml mailing list, project page  http://xmlsoft.org/
> [email protected]
> https://mail.gnome.org/mailman/listinfo/xml


_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
https://mail.gnome.org/mailman/listinfo/xml

Reply via email to