XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] convert dom4j.Document to net.sf.saxon.om.NodeInfo

Have you tried using org.dom4j.dom.DOMDocumentFactory? If you use that, your org.dom4j.Document objects can be cast to org.w3c.dom.Document objects. It's not exactly what you're asking but possibly better in that you're not creating extra objects just for the sake of moving from API to API.

On 9/26/06, Brian Caruso <bdc34@cornell.edu> wrote:
I'd like to evaluate a xpath 2.0 type expression some xml info
that I have as a dom4j.Document object.

Right now I'm dumping the dom4j.Document to a String
using asXml() and then reparsing it.

Is there a simple way to convert the dom4j.Document to
a net.sf.saxon.om.NodeInfo?

Thanks.
--
Brian Caruso
Programmer/Analyst
Albert R. Mann Library
Cornell University
Ithaca, NY 14853
(607)255-7705

_______________________________________________________________________

XML-DEV is a publicly archived, unmoderated list hosted by OASIS
to support XML implementation and development. To minimize
spam in the archives, you must subscribe before posting.

[Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
subscribe: xml-dev-subscribe@lists.xml.org
List archive: http://lists.xml.org/archives/xml-dev/
List Guidelines: http://www.oasis-open.org/maillists/guidelines.php




[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS