[XOM-interest] How to get access to XOM ContentHandlers?

Elliotte Harold elharo at metalab.unc.edu
Sat Aug 25 07:03:42 EDT 2007


Thomas Hicks wrote:
> No reply to my post....but I suppose it's my fault: I didn't
> phase it as an interrogative. I really meant to ask some questions:
> 
> 1) Is my analysis of the situation incorrect or incomplete?
> 2) Is there some other way to do this? (a workaround)?
> 3) What's the motive for hiding access to XOM's content handlers?
> 4) Might this be changed anytime in the future?
> 

I'm a little confused abut exactly what you're trying to do. I expect 
there's way to do it, just not through the approach you're taking, but 
I'm not sure.

Generally when access to something is hidden in XOM it's either :

A. Because it might change in the future
B. Because access to it would allow the creation of malformed documents.

In this case, I think it's the latter.

To convert to JDOM you can use a XOM SAXConverter to feed data into 
JDOM. To convert from JDOM you can use a JDOM SAXOutputter to send 
events to XOM.

-- 
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