Nageswar, Jaya wrote:
Hi Dave,
Thanks for the reply. Do you mean to say that we need to give
prefix to the default namespace in the input xml file? Is that what you
mean by mapping a prefix to the default namespace?
Is there anyway with out modifying my input xml file?
If you read my original reply, you will see that I answered your question:
"You need to use a namespace prefix in your XPath expressions:
"//ns:message"
You'll also need to implement a PrefixResolver derivative and pass an
instance of that into the XPathEvaluator, so the XPath implementation can
map the namespace prefix to the proper namespace URI. You can look at the
existing PrefixResolver instances to see what's involved."
You have the source code, so please use it! In particular, you might see
what happens when you supply a XalanElement node in the call to evaluate
the XPath expression.
Dave