For the first of what will likely be many messages on here, I am hoping to locate certain elements in a an XML Schema document that are significant to my application. The issue is that while errors are reported with line and column numbers, I do not believe there is an equivalent capability for identifying locations in the document of correct data. I therefore figured XPath was the best option. Since it appears that Xerces (whose XSModel abstraction I have been using for the schema processing) has no XPath capabilities, I decided to look at Xalan which should, as a transformation engine, have XPath capabilities. It seems though that the XPathAPI class is only capable of locating a node given a context node and an XPath expression to be evaluated from the context. What I am looking for is similar but with the XPath input to be "exchanged" with the node output.
My question is this: Is there any way that I can retrieve the XPath expression for a node given the node itself and some context node from which the expression must be evaluated to locate the node in question. Or put perhaps more simply, if I provide a context node A and some other node B, can I retrieve the XPath expression that takes me from A to B? I appreciate any insights. Thanks very much. Neil ____________________________ Neil Chaudhuri Research Fellow Systems Development & Technology Support Logistics Management Institute (571) 633-7786 [EMAIL PROTECTED] www.lmi.org
