You are viewing a plain text version of this content. The canonical link for it is here.
Posted to c-users@xalan.apache.org by da...@us.ibm.com on 2004/11/01 02:19:40 UTC

Re: SimpleXPathAPI and XPathWrapper

> The two sample programs, SimpleXPathAPI and XPathWrapper,
> both read XML, find the context node and evaluate the given
> XPath expression. My question is what is the difference between
> these two samples.

XPathWrapper is a very old sample that uses internal interfaces.

> If I'm writing a program that evaluates a given XPath
> expression for a given XML document, which of the two
> programs should I use as reference.

Use SimpleXPathAPI, because it uses the newer, public interfaces.

Dave