Skip to Content.
Sympa Menu

xom-interest - [XOM-interest] Append in XML file

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Narjis Malik" <narjismalikster AT gmail.com>
  • To: xom-interest AT lists.ibiblio.org
  • Subject: [XOM-interest] Append in XML file
  • Date: Fri, 2 Mar 2007 10:58:42 +0100

Hello,


I am working on XML files using nux and xPath, I want to append xml
doucument at a particular location, how can I do it....

I will demonstrate my question with the following example

i have a xml document
___________________________________________________________________________________

<?xml version="1.0" encoding="UTF-8"?>

<service name="GetFutureSybmolization">

<synonym name="bvcvcvc">

</synonym>

</service>

_____________________________________________________________________________________

now what i need , i want to append this xml file with new element :

as i scan this xml and when there is service element with name =
"GetFutureSybolization"

then i want to add new element <synonym name="XYZDGD"></synonym>

please help me how can i do it...

as i tried to do it but it append at the end of file but i cant append in
some where else



waiting for a reply




Archive powered by MHonArc 2.6.24.

Top of Page