On Fri, Mar 10, 2006 at 11:19:06PM -0500, Jason Viers wrote: > I've noticed that when parsing a doc the xmlDict is part of the > xmlParserCtxt, and when xmlNewDoc() is used there's no dictionary. Is > there any reason I wouldn't want to manually give a dict to the new doc > and use it when constructing nodes?
It's for compatibility, I assume there is a lot of existing code relying on non-dictionnary behaviour when the trees are created. > It seems to work with preliminary tests, but I'm not yet experienced > enough with libxml to tell whether using a xmlDict without an > xmlParserCtxt is bad voodoo. Should not be bad voodoo, as long as doc->dict is the dictionnary used to store the strings, otherwise you will get segfault when freeing the document. Daniel -- Daniel Veillard | Red Hat http://redhat.com/ [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
