| Evaluates simple XPath expressions to follow paths through a document generated by XStream which uses
"reference" elements to handle circular and duplicate references. For example, an XML document
generated from XStream might look like the following:
hello
In the above case, the XPath expression /test/a would result in the "hello" text but the
XPath expression /test/b/a would result in the empty string. However, if the evaluator below is mapped
as an XPath function, than it could be used as follows on the second expression to produce the desired result of "hello":
xstreamsafe('/test/b/a', root())
author: ewestfal |