Source: libxml++2.6 Severity: wishlist Tags: patch Please apply attached patch. It makes Document(xmlDoc*) constructor protected as requested by lightspark developers. lightspark uses libxml++ XML parser and that would be make it more tollerant about malformed xml. This change is already included in 2.35.1 upstream release.
More info at: https://bugzilla.gnome.org/show_bug.cgi?id=668980
Description: Document: Make the Document(xmlDoc*) constructor protected. * libxml++/document.h: This was requested in bug #668980 (A. Pignotti). Origin: http://git.gnome.org/browse/libxml++/patch/?id=4a71a9a74affadbc4a6f779f3fa86ca0e30e7a35 Author: Murray Cumming <[email protected]> --- a/libxml++/document.h +++ b/libxml++/document.h @@ -41,7 +41,7 @@ class Document; //TODO: Make Document inherit from Node, when we can break ABI one day? // -//libxml might intend xmlDox to derive (theoretically) from xmlNode. +//libxml might intend xmlDoc to derive (theoretically) from xmlNode. //This is suggested because the XmlNodeSet returned by xmlXPathEval (see the Node::find() implementation) can contain either xmlNode or xmlDocument elements. /** * Represents an XML document in the DOM model. @@ -61,6 +61,11 @@ class Document : NonCopyable public: explicit Document(const Glib::ustring& version = "1.0"); + +protected: + Document(_xmlDoc* doc); + +public: virtual ~Document(); /** @return The encoding used in the source from which the document has been loaded. @@ -185,7 +190,6 @@ private: static Init init_; - Document(_xmlDoc* doc); _xmlDoc* impl_; };

