Re: DTD loading
Daniel Veillard <[email protected]> Fri, 30 Aug 2002 11:20:49 -0400
| Newsgroups | gmane.comp.gnome.gdome |
|---|---|
| Message-ID | <[email protected]> |
On Fri, Aug 30, 2002 at 04:40:30PM +0200, Luca Padovani wrote: > Hi. > > On Fri, 2002-08-30 at 13:48, Daniel Veillard wrote: > > Hum, there isn't really a concept of "document fragment" in libxml2 > > at least no such node is ever generated. > > however libxml2 provides this method: > > xmlNodePtr xmlNewDocFragment(xmlDocPtr doc); > > so it _can_ generate a document fragment. I believe that to have a Okay, the XML_DOCUMENT_FRAG_NODE was defined while looking at the DOM spec but no known code (except gdome apparently) ever produced such nodes. > correct cloning in libxml2 it is just a matter of moving > > case XML_DOCUMENT_FRAG_NODE: > > in xmlStaticCopyNode a few lines up (say just below XML_ELEMENT_NODE). A > document fragment node is just a "node" which has a different semantics > when inserted in a document, but that has nothing to do with cloning, so > I believe the patch is really simple. Please correct me if I'm missing > something. Yeah, should work for this. Well I didn;t know anybody used the node type, I hope the rest of the code base don't have too many problems with it, Daniel -- Daniel Veillard | Red Hat Network https://rhn.redhat.com/ [email protected] | libxml GNOME XML XSLT toolkit http://xmlsoft.org/ http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/