Converting HTML to XML
html, xml
Solution
I was successful using `tidy` command line utility. On linux I installed it quickly with `apt-get install tidy`. Then the command:
`tidy -q -asxml --numeric-entities yes source.html >file.xml`
gave an xml file, which I was able to process with xslt processor. However I needed to set up xhtml1 dtds correctly.
This is their homepage: html-tidy.org (and the legacy one: HTML Tidy)
Problem
I have got hundereds of HTML files that need to be conveted in XML. We are using these HTML to serve contents for applications but now we have to serve these contents as XML. HTML files are contains, tables, div's, image's, p's, b or strong tags, etc.. I googled and found some applications but i couldn't achive yet. Could you suggest a way to convert these file contents to XML?