Re: TIDY XML output problem.

Bjoern Hoehrmann <[email protected]>
Newsgroups gmane.comp.web.html-tidy.user
Message-ID <[email protected]>
* 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:[email protected] · 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/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.