You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Grzegorz Goliatus TaĆczyk <go...@warsztat.pac.pl> on 2004/08/02 17:04:12 UTC
Parse XML inside XSP
Witajcie!
What is the easiest way to get value of xpath from some xml
included to xsp in this way:
XSPUtil.includeString(xml, this.manager, this.contentHandler);
XPathProcessor xpathProcessor = (XPathProcessor)this.manager.lookup(XPathProcessor.ROLE);
SAXParser parser = (SAXParser)this.manager.lookup(SAXParser.ROLE);
stream = new StringBufferInputStream(xml);
Element element = DOMUtil.getDocumentFragment(parser, new InputStreamReader(stream)).getOwnerDocument().getDocumentElement();
I try to do it this(^) way but:
DOMUtil.getValueOf(element, "/root/value");
returns null.
--
Pozdrowienia,
Grzegorz mailto:goliatus@warsztat.pac.pl
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org