Return-Path: Delivered-To: apmail-hc-httpclient-users-archive@www.apache.org Received: (qmail 88601 invoked from network); 30 Oct 2008 00:33:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Oct 2008 00:33:13 -0000 Received: (qmail 50511 invoked by uid 500); 30 Oct 2008 00:33:18 -0000 Delivered-To: apmail-hc-httpclient-users-archive@hc.apache.org Received: (qmail 50482 invoked by uid 500); 30 Oct 2008 00:33:18 -0000 Mailing-List: contact httpclient-users-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpClient User Discussion" Delivered-To: mailing list httpclient-users@hc.apache.org Received: (qmail 50470 invoked by uid 99); 30 Oct 2008 00:33:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Oct 2008 17:33:17 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of raykroeker@gmail.com designates 209.85.146.182 as permitted sender) Received: from [209.85.146.182] (HELO wa-out-1112.google.com) (209.85.146.182) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 00:32:04 +0000 Received: by wa-out-1112.google.com with SMTP id j37so166930waf.22 for ; Wed, 29 Oct 2008 17:32:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:sender :to:subject:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references :x-google-sender-auth; bh=oMTwLItCziZWz2+89Gsbi6qxd54fJOyFH/ex5jJcVvk=; b=qbV0eSW7rhBkdKw+Zm9BcguWmAiNEPOIk9vOQmyfAuEYPP22edgtZGo3bBwqDPkJEy ohsw7+daIKB1NUmd0KTz79bvgURJ3dhbTTB5nYxKt/7MR7LLGkjV2N3XUnEdVS9g0FW+ 26BtFygJaWR4jm+Fr3qtQ+bLHoGhDIeOIriTw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:sender:to:subject:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references:x-google-sender-auth; b=FWxAuMwBjCMMaaWPThIGoGpjIAViB/3KA+Ue1oi4yJbWHIPt6+KHBSzxONF0/V1Cm+ fpeIaNyIAhCIFBKLm+Yacj9mOyXRhFg7kuzZG91mZ5Bcsps0k91H62R8aTF92Utmt6je XL838U5BbjIfBtSzkjopgOI2q9rMWrmvz2jVQ= Received: by 10.114.24.5 with SMTP id 5mr7793681wax.160.1225326764998; Wed, 29 Oct 2008 17:32:44 -0700 (PDT) Received: by 10.115.19.17 with HTTP; Wed, 29 Oct 2008 17:32:44 -0700 (PDT) Message-ID: Date: Wed, 29 Oct 2008 17:32:44 -0700 From: "Raymond Kroeker" Sender: raykroeker@gmail.com To: "HttpClient User Discussion" Subject: Re: httpclient and xpath In-Reply-To: <67c857860810290805i2d1a152diac8185bffa07be94@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <67c857860810290805i2d1a152diac8185bffa07be94@mail.gmail.com> X-Google-Sender-Auth: e4fc38d5cb274993 X-Virus-Checked: Checked by ClamAV on apache.org Lior, I've had excellent results using dom4j. Just load the xml into an object and you can query the nodes using xpath expressions. Raymond On Wed, Oct 29, 2008 at 08:05, lior grinfeld wrote: > i know it may not be the right place to ask this but maybe one of you faces > this issue before. > > i want to validate the response that i get from my web application and i > thought about xpath. > did anybody tried this before? > > i want to parse the response into document and then do > xpath.getvalue(myxpath) and validate the data. > first is there a response handler that can do this? > or does someone can recommend a package than can do it? > > > > -- > > Regards > Lior Grinfeld > -- --------------------------------------------------------- Raymond Kroeker --------------------------------------------------------------------- To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org For additional commands, e-mail: httpclient-users-help@hc.apache.org