Hi James, I'm a newbie to jaxen, so bear me if i'm asking some obvious questions.
James Strachan wrote: > I get a bit confused about it from time to time as well. The easiest way I > find is to create an XPath expression, simplify it then do a toString() and > look at the expression tree. > Can i create XPath expression from xpath string? If yes, how can i do it? > e.g. in the org.jaxen.expr package, if you can get hold of an XPath object > and get the root expression. > > Expr expr = XPath.getRootExpr(); > How can i get hold of the XPath object? Here do you mean org.jaxen.expr.XPath object? > Then walk the expression or call toString() to get a textual representation > of the expression tree objects. Its mostly gonna be LocationPath objects > with Prediactes and stuff. Then through a few different XPath expressions > you should get a feel for what the Expr object hierrarchy looks like. > > (Though documentation would be better ;-) > > James If i can get hold of an XPath object and get the root expression, then how can i walk the expression? Thanks in advance, Son -- Canon Information Systems Research Australia Pty Ltd (CISRA), Phone: +61-2-9805-2699 Fax: +61-2-9805-2929 Address: 1 Thomas Holt Drive, North Ryde, Sydney, NSW 2113 Australia. "Copy from one, it's plagiarism; copy from two, it's research" Wilson Mizner (1876-1933) _______________________________________________ Jaxen-interest mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jaxen-interest