Adding New property

2015-01-02 Thread jeevi tesh
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
del
www.dell.com
Please help me to resolve the same
Thanks


Adding CData to xml property

2015-01-06 Thread jeevi tesh
Hi,

Need to add CDATA into XML Property element, but special character are
getting added. Here is my code. Please give your thoughts on the same.

Here is the code.

String cDataTagStart="\\