[EMAIL PROTECTED] wrote:

> > 1.  Does the current implementation of XPath module have the validation
> > test ie test to see the XPath expression is a valid expression or not?
>
> It throws an exception if the expression is not valid.

What method(s) can i use to check the validity of XPath expression?


> > 3. Is it possible for me to access any location step in an XPath
> > expression?

> You mean, in the expression itself?  It is possible, but not a great idea,
> since the op-map currently built by Xalan will be replaced pretty soon by
> an AST tree.
>
> Or in the execution tree?  What is it that you want to do?

Either in the expression itself or in the execution tree is fine with me, but 
it must be in a sequential
order. Currently, i'm trying to implement a small subset of XPath specs to do 
the selection on the
encoded XML file (in binary format). If i know each location step incrementally 
then i can search only
the necessary parts of the encoded XML file and skip the rest. So hopefully the 
search will be faster.

Son

Reply via email to