I need some Java help.
I have got a class like this
public class Thing {
    private String name;
    private int price;
public Thing(String name, int price) {
    this.name = name;
    this.price = price;
}
public String getName() {
    return name;
}
public void setName(String name) {
    this.name = name;
}
public int getPrice() {
    return price;
}
public void setPrice(int price) {
    this.price = price;
}
}
And my main looks like this
public class Main {
public static void main(String[] args) {
    Thing Bowl = new Thing("Bowl", 20);
} }
What I would like to do is make a simple XML-document database. So I can add different kind of things in my database. How can I implement this kind of database in my system?
 
     
    