Roberto wrote:
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"));
JXPath doesn't resolve URLs. You'll need to load and parse the XML yourself. JXPath supports both the W3C DOM and JDOM, as well as arbitrary beans, so how you parse it (and into what) is up to you...
Hope that helps, Vil.
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
