Hi Richard,
The SerializeNodeSet sample is designed to serialize a node set. If you
want to extend it for all the XPath types, then you need to use
XPathEvaluator::evaluate(), examine the type of the XObject returned, and
act accordingly. You are getting an exception because no other XPath 1.0
data types can be converted to a node-set.
Dave
"Liu, Richard"
<[EMAIL PROTECTED] To:
<[email protected]>
ing.com> cc: (bcc: David N
Bertoni/Cambridge/IBM)
Subject: Do we have a more
general function that can handle all the XPATH Query
02/17/2004 06:57
AM
Please respond
to xalan-c-users
Hi,
I have a question related to the demo "SerializeNodeSet".
This demo handles many xpath queries. However, if an xpath query is
count(....) of something, it returns an "exception caught". Because some
of the xPath queries do not deal with serialize node set.
The problem is that we do not know what an xpath may be like ?
I would like to know do we have any more general xalan functions, which
can handle "ALL" the xpath query? or should we just call another function
like "selectSingleNode" in the exception catch block in the
"SerializeNodeSet" to handle some xpath query like count(..) of something ?
Thanks a lot !
Sincerely
Richard Liu
- Do we have a more general function that can handle all the... Liu, Richard
- david_n_bertoni
