Re: [xml] correct way to output HTML without the <?xml...

On Wed, May 24, 2006 at 09:11:20AM +1000, John Hockaday ga gov au wrote:

An XML document instance must have an xml declaration otherwise it is not
valid XML. 

  I disagree with this statement:

<!DOCTYPE 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 Veillard      | Red Hat
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]