-2

I am new to java and I would like to update the dates to existing xml file but not sure ho to do it lets say the file is File.xml and I need to change the date in: So I need to update the start and end date. Thanks

MUS
  • 47
  • 2

1 Answers1

0

My suggestion there will be to go through this tutorial or use XStream library to manipulate your xml file.

XStream is super easy.

FileReader reader = new FileReader("file.xml")
Data newJoe = (Data)xstream.fromXML(reader);

You need to create Data class that need correspond to xml document that you have.

RMachnik
  • 3,598
  • 1
  • 34
  • 51