Hi cocoon developers,
Im trying to use JXPath to read the value of xml file in a flow, like that:
 
    var context = org.apache.commons.jxpath.JXPathContext.newContext("cocoon:/xmldata/users.xml");
    var value = toString(context.getValue("autentication/users/[EMAIL PROTECTED]'1']/pwd"));
The xml file is:
 
<autentication>
<users>
<user id="1">
<userName type="internal" lang="it">Roberto</userName>
<pwd>pippo</pwd>
</user>
</autentication>
 
The problem is that the value variable is null. What's wrong with me?
 
Thanx in advance
Cheers
Roberto

Reply via email to