Hi Pablo,
Two things:
1. Can you please set your mail program to send plain text, instead of
HTML?
2. Can you reproduce this with a minimal document and post that
document? Without seeing your source document, it's impossible to
determine what sort of exception Xerces is throwing. You could also try
parsing the file with one of the Xerces sample applications, which might
give you more information. The SimpleXPathAPI is just a sample program,
and does not have robust error reporting.
Dave
"Pablo Yabo"
<[EMAIL PROTECTED] To:
<xalan-c-users@xml.apache.org>
.ar> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Exception using xpath
api
05/13/2003 06:14
PM
Hi,
I've been trying to use Xpath api but I had a lot of problems and until
now, I wasn't able to evaluate any expression.
As I've sent some days ago, I've tried to run the sample XPathWrapper, but
it throws a assertion failed (I explained in another mail).
I'm using xerces 2.2 and xalan 1.5 (windows NT).
Then, I've tried to use the SimpleXPathAPI sample. First, I've run the
binary with the same parameters of the sample in the page:
SimpleXPathAPI foo.xml / '//name[position()="4"]/@first'
the result is:
//name[position()="4"]/@first
the exact xpath expression.
Then, I've tried compiling the sample and it throws a exception in line:
XalanDocument* const theDocument =
theLiaison.parseXMLStream(theInputSource);
I suppose that the problen is in xerces, but I'm using version 2.2 as the
page says.
I really don't know what can I do with this.
Please help me,
Thanks in advance,
Pablo