You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by dave <ce...@yahoo.com> on 2008/01/03 04:04:59 UTC
how to get jdom Document from XmlObject efficiently?
I have an XmlObject type document object produced out
of XmlBeans processing. What is efficient way to
convert this XmlObject type to org.jdom.Document ?
Thanks
-D
____________________________________________________________________________________
Looking for last minute shopping deals?
Find them fast with Yahoo! Search. http://tools.search.yahoo.com/newsearch/category.php?category=shopping
---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: user-help@xmlbeans.apache.org
Re: how to get jdom Document from XmlObject efficiently?
Posted by Jacob Danner <ja...@gmail.com>.
AFAIK there isn't a convenience API to go from XmlObject to JDom Document.
However, you can go from XmlObject to org.w3c.dom Node Object using
XmlObject.newDomNode(). One thing to note that I particularly enjoy is that
XMLBeans provides a DOM2 Level API/Implementation so you can go seamless
from
DOM <-> XmlCursor <-> XmlObject
Once this feature was implemented I stopped using JDom, but I'm sure there
is some kind of convenience method to go from org.w3c DOM to JDom.
Best of luck,
-jacobd
On Jan 2, 2008 7:04 PM, dave <ce...@yahoo.com> wrote:
>
> I have an XmlObject type document object produced out
> of XmlBeans processing. What is efficient way to
> convert this XmlObject type to org.jdom.Document ?
>
> Thanks
> -D
>
>
>
> ____________________________________________________________________________________
> Looking for last minute shopping deals?
> Find them fast with Yahoo! Search.
> http://tools.search.yahoo.com/newsearch/category.php?category=shopping
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@xmlbeans.apache.org
> For additional commands, e-mail: user-help@xmlbeans.apache.org
>
>