commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shirasu hiroyuki <hi...@s9.dion.ne.jp>
Subject [JXPath] On failure of selecting nodes
Date Wed, 05 Jan 2005 02:50:36 GMT
Dear JXPath users and developers,

I have started working with JXPath,
and I have a few questions relating to XPath queries.
I cannot understand failure of selecting nodes.

For example, I read in a XML document of

  <doc><x/></doc>

into DOM/JDOM and select nodes using
JXPathContext#selectSingleNode("//y") and
JXPathContext#selectSingleNode("/doc/y").
The first returns 'null' and the second raises JXPathException.
Please show me the difference in a reason in which
two queries fail.

Thank you in advance,
--
shirasu hiroyuki(hirsh@s9.dion.ne.jp)

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org


Mime
View raw message