Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 7A1B973E7 for ; Wed, 23 Nov 2011 08:15:46 +0000 (UTC) Received: (qmail 64303 invoked by uid 500); 23 Nov 2011 08:15:46 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 64275 invoked by uid 500); 23 Nov 2011 08:15:46 -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 64267 invoked by uid 99); 23 Nov 2011 08:15:44 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 08:15:44 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of cschneider111@googlemail.com designates 209.85.214.45 as permitted sender) Received: from [209.85.214.45] (HELO mail-bw0-f45.google.com) (209.85.214.45) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 23 Nov 2011 08:15:39 +0000 Received: by bkbzu5 with SMTP id zu5so1458327bkb.32 for ; Wed, 23 Nov 2011 00:15:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=OjShy+hjBC8iWlWUBvaAX4XbC407D4rx3L7fkguvKnA=; b=c0MVbtJkGkYvb5xDe/avF/hiKf/GWSqsXV8Ld883OjmQbMAMO0E7HPqWIozmCDVmJA ZCMmhWZ0GvkbWmEpC7kx/aYSD6CVAdoATac+uEkFej4JTGSjUJ0WS9q+uTEHK4E2Llzw 8FJ5ltlyepY87oFrKqls62dirKIDohyBfiy34= Received: by 10.204.15.208 with SMTP id l16mr17418281bka.100.1322036118150; Wed, 23 Nov 2011 00:15:18 -0800 (PST) Received: from [10.0.0.104] (HSI-KBW-46-223-138-180.hsi.kabel-badenwuerttemberg.de. [46.223.138.180]) by mx.google.com with ESMTPS id e20sm21407983fab.2.2011.11.23.00.15.16 (version=SSLv3 cipher=OTHER); Wed, 23 Nov 2011 00:15:17 -0800 (PST) Sender: Christian Schneider Message-ID: <4ECCAB98.9010206@die-schneider.net> Date: Wed, 23 Nov 2011 09:15:20 +0100 From: Christian Schneider User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 To: users@camel.apache.org Subject: Re: How to write or append content to XML file without XML declaration References: <1322000024310-5014969.post@n5.nabble.com> In-Reply-To: <1322000024310-5014969.post@n5.nabble.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Hi Santosh, you should also be aware that a file like the following is no valid xml. XYZ au ABC ad An xml file has to contain exactly one root element. Christian Am 22.11.2011 23:13, schrieb santoshjoshi: > Environment > Camel:2.8.1 > java 6 > > i have a pojo like > > @XmlRootElement(name = "city") > public class City{ > > @XmlElement(name = "citycode", required = true) > protected String citycode; > > @XmlElement(name = "countrycode", required = true) > protected String countrycode; > > } > > > i am getting a list of the above cities from a web service Calls Like > *List cities * > > I want to split the above list and group the country related cities into a > single file > and for which i am using the below code > > > body > uri="file:/home/country-{body.countrycode}/?fileName=city.xml&fileExist=Append" > /> > > > the code works fine but it gives me the out like > > ** > > XYZ > au > > ** > > ABC > ad > > > > I just want to ignore all standalone="yes"?> while writing and appending to xml files. > > > Thanks > Santosh > > -- > View this message in context: http://camel.465427.n5.nabble.com/How-to-write-or-append-content-to-XML-file-without-XML-declaration-tp5014969p5014969.html > Sent from the Camel - Users mailing list archive at Nabble.com. -- Christian Schneider http://www.liquid-reality.de Open Source Architect Talend Application Integration Division http://www.talend.com