Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 74800 invoked from network); 2 Aug 2004 15:04:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 2 Aug 2004 15:04:22 -0000 Received: (qmail 32386 invoked by uid 500); 2 Aug 2004 15:04:10 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 32331 invoked by uid 500); 2 Aug 2004 15:04:10 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: list-post: Reply-To: users@cocoon.apache.org Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 32318 invoked by uid 99); 2 Aug 2004 15:04:10 -0000 X-ASF-Spam-Status: No, hits=0.9 required=10.0 tests=FORGED_RCVD_HELO,RCVD_IN_NJABL_RELAY X-Spam-Check-By: apache.org Received: from [217.153.4.163] (HELO pac.pl) (217.153.4.163) by apache.org (qpsmtpd/0.27.1) with ESMTP; Mon, 02 Aug 2004 08:04:06 -0700 Received: from 192.168.1.2 (pe99.warszawa.sdi.tpnet.pl [213.25.211.99]) by pac.pl (Postfix) with ESMTP id 06426A1211 for ; Mon, 2 Aug 2004 17:03:55 +0200 (CEST) Date: Mon, 2 Aug 2004 17:04:12 +0200 From: =?Windows-1250?B?R3J6ZWdvcnogIkdvbGlhdHVzIiBUYfFjenlr?= X-Mailer: The Bat! (v2.00) CD5BF9353B3B7091 Reply-To: =?Windows-1250?B?R3J6ZWdvcnogIkdvbGlhdHVzIiBUYfFjenlr?= Organization: Warsztat X-Priority: 3 (Normal) Message-ID: <13620773450.20040802170412@warsztat.pac.pl> To: users@cocoon.apache.org Subject: Parse XML inside XSP MIME-Version: 1.0 Content-Type: text/plain; charset=Windows-1250 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N 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