How can I save and read information from java to XML using XmlJsonParser?

import parser.XmlJsonParser;

public class Main
{
  public static void main(String[] args)
  {
    XmlJsonParser parser = new XmlJsonParser();
    GradeList grades = new GradeList(15);
    grades = parser.toXml(grades, "grades.xml");

    System.out.println("File: " + );
  }
}

What I did so far is I tried to create an array Object and save the information on an .xml file, but IntelliJ shows a red underline under .toXml in the code snippet. Can you show me how an .xml file stores data with XmlJsonParser?

Leave a Reply

Your email address will not be published. Required fields are marked *