Re: parsing xHTML

Jacob Kjome <[email protected]> Mon, 15 Sep 2003 02:10:16 -0500
Newsgroups gmane.comp.java.enhydra.xmlc
Message-ID <[email protected]>
Sure, if you are using actual HTML.  Doing stuff like <img/> in an html 
document is going to confuse JTidy to an extent that it's fixup won't 
work.  It will generally fixup stuff like <div><b>a bold 
sentence</div></b>, but including XHTML tags into an HTML document is just 
not going to give you good results.  I suggest that your developers verify 
their documents against a validator like the w3c's before using it with XMLC.

With XHTML (using the -dom xhtml -parser xerces options), you will be able 
to verify this an compile time instead of hoping JTidy fixes things up 
right.  That is the beauty of XML over HTML.

Jake

At 11:01 PM 9/14/2003 -0700, you wrote:
>Is there a way that XMLC can intelligently handle either well formed or 
>non-well formed HTML?  I'm starting a project where I may or may not be 
>the only HTML monkey.  If someone else were to use an HTML authoring tool, 
>I'd like for them to be able to save their HTML and have XMLC do the Right 
>Thing with it.  Is that possible, or should all authoring tools be HTML 
>4.0 compliant and declare the proper DTD and everything in the source?
>   Thanks,
>     -M@
>
>_______________________________________________
>XMLC mailing list
>[email protected]
>http://www.enhydra.org/mailman/listinfo.cgi/xmlc