[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: convert dom4j.Document to net.sf.saxon.om.NodeInfo

  • From: "Michael Kay" <mike@s...>
  • To: "'Brian Caruso'" <bdc34@c...>,<xml-dev@l...>
  • Date: Tue, 26 Sep 2006 23:47:21 +0100

saxon dom4j

Saxon questions would be better asked on the saxon-help list or forum at
SourceForge. 

http://sourceforge.net/projects/saxon

There's a package in Saxon that allows you to wrap a DOM4J document in a
NodeInfo wrapper. Put saxon8-dom4j.jar on your classpath, and call

DocumentInfo n = new net.sf.saxon.dom4j.DocumentWrapper(doc, baseURI,
config);

Unfortunately the dom4j package has been omitted from the Javadoc
documentation. But the interface is very similar to the JDOM interface in
package net.sf.saxon.jdom - see
http://www.saxonica.com/documentation/javadoc/index.html  

Michael Kay
Saxonica Limited


> -----Original Message-----
> From: Brian Caruso [mailto:bdc34@c...] 
> Sent: 26 September 2006 21:36
> To: xml-dev@l...
> Subject:  convert dom4j.Document to net.sf.saxon.om.NodeInfo
> 
> 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@l...
> subscribe: xml-dev-subscribe@l... 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]


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.