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,062
  • 6
  • 32
  • 56

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,341
  • 10
  • 65
  • 111