-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

1
  • For example Commented May 16, 2016 at 21:00

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.