Hello,

The following is the clearer requirement description regarding the usage of Xalan library.

 

“The application will load the xml document to the XercesDOM Tree and process each node.

It is required by the application to process inner XercesDOMNodes relatively and apply XPath query on it.

Thus we need find a way that  Xalan can evaluate Xpath expressions using XercesDOM Node as the starting point.”

 

Thanks,

Anand

 

 


From: Bharadwaj, Anand (ELS) [mailto:[EMAIL PROTECTED]
Sent: Monday, September 04, 2006 5:34 PM
To: [email protected]
Cc: Abeykoon, Dharshana (ELS-OXF)
Subject: Using DOM Objects for Evaluating XPath expressions in Xalan

 

Hello,

 

We are trying to use Xalan library for processing XPath queries on the XML document.

 

The application will load the xml document to the DOM Tree and process each node.

It is required by the application to process inner DOMNodes relatively and apply XPath query on it.

 

In order to utilize the Xalan library for this, we did initial analysis on the mechanism to map

the DOM objects to the Xalan objects, and observed the following:

(The libraries considered for implementation are: Xerces 2.7.0 and Xalan 1.10.0)

 

  1. Through the “XercesParserLiaison” interface though it was possible to get handle to the XALANDocument from the DOMDocument, it was not possible to convert the inner DOMNodes to the XalanNodes and apply relatively constructed XPath queries appropriately.

 

  1. The manual refers “XercesDocumentBridge” interface as the mechanism for this case, but this interface has been deprecated. Kindly suggest alternative available interface.

 

  1. There are some Wrapper interfaces (for Ex. XercesDocumentWrapper). Kindly suggest if we can directly use these interfaces or it should be through an available main handler interface.

 

We look forward for the inputs in this respect.

 

Thanks and Regards,

Anand

 

 

Reply via email to