Return-Path: X-Original-To: apmail-commons-user-archive@www.apache.org Delivered-To: apmail-commons-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B34A210AD0 for ; Fri, 2 Jan 2015 18:52:03 +0000 (UTC) Received: (qmail 77174 invoked by uid 500); 2 Jan 2015 18:52:03 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 77055 invoked by uid 500); 2 Jan 2015 18:52:03 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 77042 invoked by uid 99); 2 Jan 2015 18:52:00 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jan 2015 18:52:00 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jeevitesh.ms@gmail.com designates 209.85.213.177 as permitted sender) Received: from [209.85.213.177] (HELO mail-ig0-f177.google.com) (209.85.213.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Jan 2015 18:51:55 +0000 Received: by mail-ig0-f177.google.com with SMTP id z20so16238igj.10 for ; Fri, 02 Jan 2015 10:50:49 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=4nnEFfPpYIi+uIMYLVH7a0sNlfPpjB9Qs1wOYNSl57Q=; b=Wj1v/a47SU8rPS6o+1aKZyUsK9i9zrxLJNRA7sW7GnJYo36McHCQcOZgWsY3w0dRSM /T8vHT83vGW0CZJ8dhbsbp6touky7eLcXgTIqBN3e1Cq74Zs7v0aO7ghw+OdYND6WPMr 93luYaK3joMk/BkFoe/JNI2TM/0V1r1Pbuk79PRIVnP13vhkxl0pyIQxjR8ljF+HGIcV K3fbsxbDQ9s2haawMSdrU/CMFbg3q1R6CrlaZ807rn0nVCXidsnLByczh+gfxEW6Q9aC p2WxXPFxeAk5J9YoF2t5mMFTgQCbkDsM4WWf2HSKL994N1+T4MLxoB+ZsRXkMGLS8k4Z 7fcg== MIME-Version: 1.0 X-Received: by 10.42.236.75 with SMTP id kj11mr58585164icb.47.1420224649825; Fri, 02 Jan 2015 10:50:49 -0800 (PST) Received: by 10.107.168.32 with HTTP; Fri, 2 Jan 2015 10:50:49 -0800 (PST) Date: Sat, 3 Jan 2015 00:20:49 +0530 Message-ID: Subject: Adding New property From: jeevi tesh To: user@commons.apache.org Content-Type: multipart/alternative; boundary=20cf30266982c1140f050bafd173 X-Virus-Checked: Checked by ClamAV on apache.org --20cf30266982c1140f050bafd173 Content-Type: text/plain; charset=UTF-8 Hi, I need to add a new property facing lots of issue suggestion required. Here is my XML format blackwoods ordermax I need to add new property like dell i Have tried like 1. addProperty("Resource.ResourceName") -> issue with this approach is it add within last element like ordermax dell 2. used setProperty("Resource.ResourceName") -> deletes all the existing property. so tried to read all items in xml and then use setproperty when i use save it saves only last elements. String temp2=+dell+"\n"+"\n"+www.dell.com+"\n"; 3. used addProperty("Resource"temp2); But this approach is adding special charters like below <ResourceName>del</ResourceName><ResourceURL> www.dell.com</ResourceURL> Please help me to resolve the same Thanks --20cf30266982c1140f050bafd173--