[jdom-interest] How to get a org.jdom.Document from a org.w3c .dom.Element ?

Keith Thomas K at XOL.com
Wed Aug 16 09:08:59 PDT 2000


Thanks Dave, that's just what I needed. 

Regards,
Keith Thomas

-----Original Message-----
From: Bolt, Dave [mailto:boltd at atsc.army.mil]
Sent: Wednesday, August 16, 2000 11:00 AM
To: Keith Thomas; 'jdom-interest at jdom.org'
Subject: RE: [jdom-interest] How to get a org.jdom.Document from a
org.w3c .dom.Element ?


Couldn't you use the getOwnerDocument() method of your element to get
the containing Document and then use DOMBuilder to process that document.

As another approach, it would be possible to add new functionality to
JDOM that handles this impedence mismatch. I think the DOMBuilder classes
are just a first cut.

Dave Bolt
ATSC/SPAWAR ASAT Team
Bolt's Law of Bandwidth - There is always plenty of network bandwidth, just
none for you.


-----Original Message-----
From: Keith Thomas [mailto:K at XOL.com]
Sent: Wednesday, August 16, 2000 11:14 AM
To: 'jdom-interest at jdom.org'
Subject: RE: [jdom-interest] How to get a org.jdom.Document from a
org.w3c .dom.Element ?


I assume by the (usual) deafening silence that I'll have to write my own
routine to chain through my org.w3c.dom.Element and build my jdom document
step by step. I think this kinda defeats the object of the exercise and
renders jdom ineffective for my requirements. Doesn't this lack of function
make jdom unsuitable for anyone else also using org.w3c.dom.Element based
input ? Am I just missing the point here ?

Regards,
Keith Thomas

-----Original Message-----
From: Keith Thomas [mailto:K at xol.com]
Sent: Tuesday, August 15, 2000 5:52 PM
To: jdom-interest at jdom.org
Subject: [jdom-interest] How to get a org.jdom.Document from a
org.w3c.dom.Element ?


Hi,

A lot my inputs reach me as Xerces Elements. I want to be able to convert
them to jdom documents or jdom root elements as efficiently as possible. Any
suggestions most welcome.

Thanks,
Keith Thomas
XTRA On-Line
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com
_______________________________________________
To control your jdom-interest membership:
http://lists.denveronline.net/mailman/options/jdom-interest/youraddr@yourhos
t.com



More information about the jdom-interest mailing list