Yes, you can do this. There have been several previous discussions about this on this list, and the xalan-c user's list, so you might want to search the archives for more info.
It involves using the Xerces DOM and Xalan's wrapper around it, so it's much less efficient. Here's a post from the archives to get you started: http://marc.theaimsgroup.com/?l=xalan-c-users&m=101552175609344&w=2 When I have some spare time ;-), I'd like to do a sample for this, but I'm really backed-up right now. Dave |---------+---------------------------> | | "Sergey | | | Petrunia" | | | <[EMAIL PROTECTED]| | | > | | | | | | 04/24/2002 12:08| | | PM | | | Please respond | | | to xalan-dev | | | | |---------+---------------------------> >---------------------------------------------------------------------------------------------------------------------------| | | | To: <[EMAIL PROTECTED]> | | cc: (bcc: David N Bertoni/Cambridge/IBM) | | Subject: Is there any way to evaluate Xpath on a writeable document? | >---------------------------------------------------------------------------------------------------------------------------| Hello, I am using Xalan in application that needs to 1. evaluate an XPath expression on document 2. modify the source document 3. repeat steps 1-2 several times. The problem is that parsing the source document the way it is done in XPath API samples gives a readonly document, so in step 3 I have to construct a new document and feed it back to Xalan, which makes code slow and complicated. Is there any way to evaluate Xpath expressions on a writeable document in Xalan? BR --Sergey Petrunia
