Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Ilya Zakharevich
May 12, 2006, 11:05 am
rate this thread
Re: HTML to XML in Perl?
Question: I use XML, not XHTML, at home, and use XML::Twig to convert it
to HTML. I can use xsltproc if I want to on the XML file.
You might want to traverse the parse tree HTML::TreeBuilder generates.
Also, not 100% sure, but it might me that HTML tidy can do the XHTML
conversion for you:
"Validator fixes errors in HTML and XHTML. Converts HTML to XHTML. Free
Sounds like it does :-D.
John Bokma Freelance software developer
Experienced Perl programmer: http://castleamber.com/