What is the best way to convert HTML to XML, separating the content(data) from presentation in HTML? Are there any Java API's that we can make use of?
Thijs Stalenhoef adds:
There aren't really any APIs specifically for doing this. What do you want to do with the HTML-data after it has been converted to XML? If all you want to do is display it again using different style-sheets you should consider converting the HTML to XHTML. XHTML is simply an XML compliant form of HTML