Return-Path: Delivered-To: apmail-jakarta-commons-user-archive@www.apache.org Received: (qmail 64324 invoked from network); 14 Jun 2005 08:26:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jun 2005 08:26:57 -0000 Received: (qmail 66852 invoked by uid 500); 14 Jun 2005 08:26:51 -0000 Delivered-To: apmail-jakarta-commons-user-archive@jakarta.apache.org Received: (qmail 66823 invoked by uid 500); 14 Jun 2005 08:26:49 -0000 Mailing-List: contact commons-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Jakarta Commons Users List" Reply-To: "Jakarta Commons Users List" Delivered-To: mailing list commons-user@jakarta.apache.org Received: (qmail 66801 invoked by uid 99); 14 Jun 2005 08:26:49 -0000 X-ASF-Spam-Status: No, hits=0.1 required=10.0 tests=FORGED_RCVD_HELO X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from mx-out.forthnet.gr (HELO mx-out-01.forthnet.gr) (193.92.150.103) by apache.org (qpsmtpd/0.28) with ESMTP; Tue, 14 Jun 2005 01:26:47 -0700 Received: from mx-av-02.forthnet.gr (mx-av.forthnet.gr [193.92.150.27]) by mx-out-01.forthnet.gr (8.12.11/8.12.11) with ESMTP id j5E8QEfl022892 for ; Tue, 14 Jun 2005 11:26:14 +0300 Received: from mx-as-03.forthnet.gr (mx-as.forthnet.gr [193.92.150.226]) by mx-av-02.forthnet.gr (8.12.11/8.12.11) with ESMTP id j5E8QEeY002133 for ; Tue, 14 Jun 2005 11:26:14 +0300 Received: from forthnet.gr (athmta01.forthnet.gr [193.92.150.23]) by mx-as-03.forthnet.gr (8.12.11/8.12.11) with ESMTP id j5E8QETl030264 for ; Tue, 14 Jun 2005 11:26:14 +0300 Received: from chimaera.rd.forthnet.gr (chimaera.rd.forthnet.gr [212.251.99.170]) by forthnet.gr (8.12.11/8.12.11) with ESMTP id j5E8QDUJ029437 for ; Tue, 14 Jun 2005 11:26:13 +0300 From: Markos Charatzas Organization: FORTHnet A.E. To: commons-user@jakarta.apache.org Subject: Re: [jxpath] retrieving sub xml Date: Tue, 14 Jun 2005 11:26:11 +0300 User-Agent: KMail/1.7.2 References: <200506131236.47929.xarm@forthnet.gr> In-Reply-To: <200506131236.47929.xarm@forthnet.gr> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-7" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200506141126.11916.xarm@forthnet.gr> X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Maybe it requires some clarification. When I say rich formattted text, I get all the values evaluated by the xpath expression, but without the tags. Just tab, return characters and values of tags. e.g. in an xml of foo 20 bar 25 foobar 20 I want to retrieve just all elements with age = 20 (xpath "persons/person[age=20]") Is it feasible using the jxpath API? Thanks in advance, Markos On Monday 13 June 2005 12:36, Markos Charatzas wrote: > Hi there, > > Is it possible to retrieve a subset of an XML document using the jxpath > api? The JXPathContext#getValue(String) method returns it in rich formatted > text. > > Thanks in advance, > Markos Charatzas > > --------------------------------------------------------------------- > To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: commons-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-user-help@jakarta.apache.org