Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XML using JSP 1

Status
Not open for further replies.

devendrap

Programmer
Aug 22, 2001
50
US
Hi,

I am very new to JSP. Can you please let me know, How can we add/delete XML file records using JSP in Unix machine?

Thanks,
Dave
 
Do you mean delete the xml files on a server, or edit the actual <elements> ?

If the first, use some embedded Java code -
Code:
 new File(&quot;myfile.xml&quot;).delete();
.

If the second, you need to look at a DOM and SAX API -

You will then be able to parse the XML, and then build a DOM from it, and manipulate it from there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top