[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lon-capa-dev
Subject:    Re: [LON-CAPA-dev] HTML to XHTML
From:       Guy Albertelli II <guy () albertelli ! com>
Date:       2002-08-26 22:17:23
Message-ID: 200208262217.g7QMHNkR025550 () mileva ! nscl ! msu ! edu
[Download RAW message or body]

Hi Gerd,

> I saw this (see below) float by on the modperl mailing list. One of these days
> I need to try out how good this might be for autoconversion "cleanup" of HTML
> to XML:
> 
> 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).

That might work, but I was thinking Tidy would be a much better idea,
it's goal is to tidy up bad html, supported by w3c, it is free and it
supports all of the standards.

-- 
guy@albertelli.com          BM: n^20 t20 z20 qS 
Guy Albertelli -7-8-4-  O-
    I would love to but . . . I have some real hard words to look
    up in the dictionary. 

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic