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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

need help with editing an XML file with Java

Status
Not open for further replies.

Pesho318i

Programmer
Jun 16, 2006
13
0
0
NL
Hello all,

I guess my question is simple, but I'm not experienced enough with Java and XML.

What I want to do is read an XML file then change some of the attributes and finally output it to a file again. (if possible using the DOM Java parser)

I don't know which Java tools to use about changing the content of an XML file.

hope you know the solution,
Best,
Pesho
 
Can you post your xml here and what attribute you wan to change. May be I can show you how to do it with Java xslt technique when I have free time. Do your program run in Microsoft windows?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top