On Wed, May 24, 2006 at 09:11:20AM +1000, [EMAIL PROTECTED] wrote: > Nic, > > An XML document instance must have an xml declaration otherwise it is not > valid XML.
I disagree with this statement: ----------- <!DOCTYPE foo [ <!ELEMENT foo EMPTY> ]> <foo/> ----------- it has no XMLDecl but is valid. > > I want to output it as well-formed HTML, preferably with the HTML4 > > transitonal DTD but no xml declaration, eg: It's possible, use the xmlsave.h APIs with the XML_SAVE_NO_DECL option. 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
