Posted By:
karthi_forum
Posted On:
Saturday, January 6, 2007 12:28 AM
Hi, This is karthi.i need a java code using dom to insert(dynamically) a new tag to the existing xml file.The new tag is available with me as string . for example let us take Sample.xml file <?xml version="1.0" encoding="utf-8"?> 3453454 98776765 karthi In the above file i need to insert a tag "hello welcome" dynamically between 'message-id' and 'target'tags.This new tag is available for me as a java String object.The file also should contain the new tag.After some times am reading the same xml file with new tag.Pls suggest some solution for this.If anybody having code
More>>
Hi,
This is karthi.i need a java code using dom to insert(dynamically) a new tag to the existing xml file.The new tag is available with me as string .
for example let us take Sample.xml file
<?xml version="1.0" encoding="utf-8"?>
3453454
98776765
karthi
In the above file i need to insert a tag
"hello welcome"
dynamically between 'message-id' and 'target'tags.This new tag is available for me as a java String object.The file also should contain the new tag.After some times am reading the same xml file with new tag.Pls suggest some solution for this.If anybody having code for similar process send it.
thanks in advance..
karthi
java.karthi@gmail.com
Please use html tags to format code blocks.
<<Less