Re: [xml] correct way to output HTML without the <?xml...
- From: Daniel Veillard <veillard redhat com>
- To: John Hockaday ga gov au
- Cc: xml gnome org, nferrier tapsellferrier co uk
- Subject: Re: [xml] correct way to output HTML without the <?xml...
- Date: Tue, 23 May 2006 22:18:33 -0400
On Wed, May 24, 2006 at 09:11:20AM +1000, John Hockaday ga gov au 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/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]