My suggestion would to just use a XML parser module like XML::LibXML.
Load the file up using the HTML loading functions and print it using the
XML printing functions ... since the only difference I can see between
HTML and XHMTL is that optional ending tags are no longer optional (per
XML spec) and single tags must be ended properly (per XML spec).
On Fri, 23 Aug 2002, Jonathan M. Hollin wrote:
> [OFF TOPIC]
>
> I am trying to find a module that can convert HTML to XHTML, but have
> drawn a blank on CPAN and GOOGLE. Is there anything out there to do
> this other than HTML TIDY?
>
> I am developing a mod_perl CMS application at the moment. All its
> output is compliant with XHTML Transitional. But its users can create
> content that isn't (and are likely to) and I'd like to parse this and
> convert it XHTML before it goes into the RDBMS if possible.
>
> If nothing exists along these lines - would anyone like to collaborate
> on the development of a module for this purpose? HTML::XHTML anyone?
>
>
>
--
//========================================================\\
|| D. Hageman <dhageman@dracken.com> ||
\\========================================================//
|