My xpathExression is "\\Genre\GenreName"In my client application, it's no problemBut it will throw a TransformerException in jspI don't know why ?Could you help me ? javax.xml.transform.TransformerException: A location path was expected, but the following token was encountered: \
something is wrong with your xslt, can you show the xslt?
from the error message, it appears that your xpath expression is wrong, but also, 1. before calling XPathAPI.selectNodeIterator, write out both doc and xpathExpression to make sure they are right if you are constructing them dynamically2. make sure the right jar files (if you have multiple versions on the same machine) are on the classpath for JSP engine
javax.xml.transform.TransformerException: A location path was expected, but the following token was encountered: \