I need to parse non well-formed xml data (HTML)

Posted by Daziplqa on Stack Overflow See other posts from Stack Overflow or by Daziplqa
Published on 2010-04-01T13:49:02Z Indexed on 2010/04/01 13:53 UTC
Read the original article Hit count: 390

Filed under:
|
|
|

Hi,

I have some non well-formed xml (HTML) data in JAVA, I used JAXP Dom, but It complains.

The Question is :Is there any way to use JAXP to parse such documents ??

I have a file containing data such as :

<employee>
 <name value="ahmed" > <!-- note, this element is not closed, So it is not well-formed xml-->
</employee>

© Stack Overflow or respective owner

Related posts about jaxp

Related posts about Xml