can SAX parser handle self closing tag? or will it cause an error?
eg <br/> or <hr/>
views:
262answers:
2
+1
A:
<br/> or <hr/>
are called empty tags. SAX parser will not give an error.
adatapost
2009-08-31 05:59:16
+1
A:
If you're using the SAX parser in XML rather than HTML mode then yes, it can handle self-closing tags. Note: self-closing tags are valid XML but technically not valid HTML.
Valid HTML: <br> <div></div>
Valid XML: <br/> <div></div> <div/>
cletus
2009-08-31 05:59:24
@cletus : what is ment my parser in html and xml mode. Can u giv me a link to basics and advanced SAX parser tutorials in java?
2009-08-31 14:59:50