Basic functions:
- hasAttribute= attributes.containsKey("attribute name");
- Get attribute value= attributes.get("attribute name");
- Add attribute= attributes.put("attribute name", "attribute value");
- Get child= children.get(i);
- Add child= children.add(child);
Note that string values must not be null: empty strings are used instead.