Return-Path: Delivered-To: apmail-camel-users-archive@www.apache.org Received: (qmail 3673 invoked from network); 23 Jan 2010 03:19:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Jan 2010 03:19:25 -0000 Received: (qmail 11628 invoked by uid 500); 23 Jan 2010 03:19:24 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 11498 invoked by uid 500); 23 Jan 2010 03:19:24 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 11487 invoked by uid 99); 23 Jan 2010 03:19:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 03:19:23 +0000 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 willem.jiang@gmail.com designates 209.85.223.199 as permitted sender) Received: from [209.85.223.199] (HELO mail-iw0-f199.google.com) (209.85.223.199) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 23 Jan 2010 03:19:15 +0000 Received: by iwn37 with SMTP id 37so1816998iwn.30 for ; Fri, 22 Jan 2010 19:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:references:in-reply-to :content-type:content-transfer-encoding; bh=L8ar4W/xnbvqTUVNRYnDveoKJT8QKpG5NRwR+NLfr9w=; b=O4cCV5P4EsyDYmzYJKTY8T09ky7tDRhhWJv5rw2bqgoeV7SSBIGKclajuPk7LQPUl4 sojMx72STQr3IwGaxiLb+828MbavrUbOaJ3uITTsxs6zdSRdbgHZq8t0+dxI4/jEG5qs nUQ3lVuEqjb3XlucfQOqWmRt2AGwqZpaxxQbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; b=kNYfYJ3yZ0cY9aMZlpYSghLKKmVvT7yrFn0BG+TgdGmWPRMcWAPnG4EM1VErCunNcP bL1VsBI8Q8mp2mfCf+Azsac/TfmvGNKz9sOmDHpDhpuXJmXAWSpWDIBYxhjgEohvZy/8 NVpuxjJlA6WukI6DmEDdDRJMeovfff2xUe4iw= Received: by 10.231.151.207 with SMTP id d15mr1156092ibw.44.1264216734947; Fri, 22 Jan 2010 19:18:54 -0800 (PST) Received: from ?192.168.0.158? ([125.34.13.148]) by mx.google.com with ESMTPS id 20sm2277933iwn.9.2010.01.22.19.18.52 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 22 Jan 2010 19:18:53 -0800 (PST) Message-ID: <4B5A6A99.40308@gmail.com> Date: Sat, 23 Jan 2010 11:18:49 +0800 From: Willem Jiang User-Agent: Thunderbird 2.0.0.23 (Macintosh/20090812) MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: Validate Xml References: <27276794.post@talk.nabble.com> In-Reply-To: <27276794.post@talk.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi, I think you can do it with camel validation component. You can find more information about how to use it here[1] [1] http://camel.apache.org/validation.html Willem jpcook wrote: > Hi, > > I noticed you had a validation component for validating xml against xsds. > But I wondered if there was a nice way to test if the message body was well > formed xml. > > I have a scenario where I am pulling a xml feed via http but when the feed > is unavailable you get back an html page which I also retrieve successfully > but want to test if it is valid/well formed xml before passing the message > on. I could obviously do this quite easily with a processor or bean class by > loading into a dom object but I wondered if there was something neat in > Camel that would help. > > Thanks