W3C home > Mailing lists > Public > html-tidy@w3.org > January to March 2007

Re: TIDY XML output problem.

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Sun, 18 Feb 2007 16:22:22 +0100
To: "John Schroeder" <tesoroytresor@hotmail.com>
Cc: html-tidy@w3.org
Message-ID: <ukrgt290vvn6958k1lsvj4dq6gbd1u1r9l@hive.bjoern.hoehrmann.de>

* John Schroeder wrote:
>Input file:  XML with HTML embedded in the data.
>Desired Output:  Well-formed XML that includes embedded HTML code.
>Issue:  Well-formed XML isn't being generated. HTML tags like <p> and <BR> 
>not being closed by TIDY.

Tidy is not capable of doing this; Tidy has essentially two parsing
modes, one for HTML and one for XML. The XML parser can handle your
myxmltag but cannot handle HTML elements, at least not if you forgot
to close some elements or have similar errors. The HTML parser cannot
handle myxmltag, unless you declare it using the --new-*-tags options,
but most likely those won't do what you want.
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Sunday, 18 February 2007 15:22:23 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:38:56 UTC