hii
the following is my xml file..

<?xml version="1.0" encoding="UTF-8" ?>
- <categories>
- <medicines>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\2.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\3_001.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\3.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114126\4.html</url>
</medicines>
- <treatment>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114723\anemia-treatment-with-home-remedies.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421114723\ayurveda-encyclopedia-w.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421141322\alternative-treatments.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421141322\aromatherapy.html</url>
<url>C:\Users\pcnet\Desktop\ayurveda_pages\20100421141322\free-home-remedy.html</url>
</treatment>
</categories>

i want someone to help me to tell how to add a new url to the already existing xml file...new urls and categories will be stored in a file.I have to read that file,get the url and add it to the url node as its value under the particular node.pls help me in doing this..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.