0

I am looking for an effective HTML to XHTML library in Java. I have tried HTML Tidy but it causes this error:

XML Parsing Error: mismatched tag. Expected: </meta>.

Do you recommend any better library?

I appreciate your help.

mohammad
  • 2,142
  • 7
  • 35
  • 60

1 Answers1

4

what do you mean by "accurate" results? html is not valid legal xml so making it into xml will obviously change it. have you tried tagsoup ? i've used it before to xml-ize html.

also, you might want to look at a few similar questions that have been asked here before

Community
  • 1
  • 1
radai
  • 23,949
  • 10
  • 71
  • 115