protected void setAttribute(String name, String attName, String attValue) { Element elt = getElement(name); if (elt == null) { elt = doc.createElement(name); docElt.appendChild(elt); } elt.setAttribute(attName, attValue); }
private void create() { try { tracks = new Vector(); hash = new Hashtable(); createDOM(); doc = db.newDocument(); docElt = doc.createElement(docElementName); doc.appendChild(docElt); } catch (Exception e) { e.printStackTrace(); } }