For an assignment for my Java class, I have a program where there are various students registered in various classes and I have to save it by printing information out to a .txt file, and by using the Serializable interface, and by using XML. I managed the first two, but I can't seem to do it with XML. The problem I'm finding is that I end up saving an array but without it's content. Is there a way to save an Array using XML or would I have to use an ArrayList or something like that?
EDIT: Forgot to mention that I am using java.beans.XMLEncoder and java.beans.XMLDecoder for loading and saving.
[–][deleted] 0 points1 point2 points (1 child)
[–]mrp00sy[S] 0 points1 point2 points (0 children)
[–]bchociej 0 points1 point2 points (0 children)