[jdom-interest] DOMOutputter and other thoughts
Kevin Regan
kevinr at valicert.com
Sun Jun 11 18:17:42 PDT 2000
I've been taking a look at the DOMOutputter class
and it seems that this will need to take a
org.w3c.dom.DOMImplementation rather than a
org.w3c.dom.Document. A couple of other issues are present:
1) There is no way to implement the Document.getElementById() method
in the DOM -- there seems to be no support for or recognition of
IDREF in JDOM.
2) Even if #1 was implemented, there does not seem to be any way to
access ID information directly from a DOM tree (without additional
DTD knowledge). Therefore, ID information can not be moved from
a DOM to a JDOM.
3) Do we want to handle CDATASections from DOM in some way, or simply
pass the text over as a String in JDOM?
One other thought, just a pie-in-the-sky idea, was to have the
JDOM classes implement the DOM interface so that they could be
used directly by DOM applications:
Pros:
-----
-- Could use the JDOM in places where a DOM is called for.
Cons:
-----
-- More coding needed.
-- Larger jdom.jar footprint.
I'm not sure if this is a good idea. I just thought I would
throw it out and get some opinions...
--Kevin
More information about the jdom-interest
mailing list