[XOM-interest] Exposing XMLHandler

Elliotte Harold elharo at metalab.unc.edu
Wed Sep 26 20:02:43 EDT 2007


Alan Gutierrez wrote:
> I have a program that builds an XML document by sending messages to a  
> content handler and lexical handler. I would like to build XML  
> documents in this way. XMLHandler would do this for me, but it has  
> package scope.
> 
> Why not make XMLHandler a public class?
> 

Because that would enable the creation of malformed documents.

Chances are that is another way to do whatever it is you want done. 
Possibly you need to look at the SAXConverter class instead.

http://xom.nu/apidocs/nu/xom/converters/SAXConverter.html


-- 
Elliotte Rusty Harold  elharo at metalab.unc.edu
Java I/O 2nd Edition Just Published!
http://www.cafeaulait.org/books/javaio2/
http://www.amazon.com/exec/obidos/ISBN=0596527500/ref=nosim/cafeaulaitA/


More information about the XOM-interest mailing list