RE: Updating source doc after XPath search

2006-10-10 Thread Wing Yew Poon
Robert, you can accomplish what you want using XmlObject.selectPath(). Take a look at the samples under XQueryXPath, in particular, org.apache.xmlbeans.samples.xquery.SelectPath. - Wing Yew -Original Message- From: Robert W. Wade [mailto:[EMAIL PROTECTED] Sent: Monday, October 09, 2006

RE: Updating source doc after XPath search

2006-10-10 Thread Cezar Andrei
Robert, .selectPath returns live objects from the original tree which was executed on. .execPath will always return new documents, sometimes copies of the original. In order to avoid loosing the results once you modify the document you should: 1. run select path with a cursor: