On Thursday, 11/20/2003 at 03:41 PST, "Marius Constantin"
> Is there a way to use XPath to create nodes in a xml document?

No. That's XSLT's job.

> And another question: is there an equivalent of the StringTokenizer for
XPaths?
> Some class that, fed an XPath, gives back its constituents (different
node
> selectors?)

We do have an XPath parser in Xalan, of course. But it isn't exposed in
that form -- it yields our internal semantic model of the XPath rather than
to string fragments -- and as far as I know it isn't considered part of our
public API.

Shouldn't be hard to write your own, if you just want the strings back; the
XPath spec documents the language's grammar.

Reply via email to