Thursday, 30 October 2008

Xpath info - don't use "/" at the end of a xpath query

Xpath info - don't use "/" at the end of a xpath query, otherwise
you'll get this error:

javax.xml.transform.TransformerException: A location step was expected
following the '/' or '//' token.


http://p2p.wrox.com/topic.asp?TOPIC_ID=8429

"A path expression never ends in "/", except for "/" used on its own
to refer to the root node."