public String getAttribute(String attribute){
Integer codeInt = (Integer)code;
String URI = codeInt.toString();
NodeList res = ProgramData.productsRoot.getElementsByTagNameNS(URI, "Product");
return DOMUtil.getSimpleElementText((Element)res.item(0), attribute);
}
public void setAttribute(String attribute, String text){
Integer codeInt = (Integer)code;
String URI = codeInt.toString();
NodeList res = ProgramData.productsRoot.getElementsByTagNameNS(URI, "Product");
Element item = (Element)res.item(0);
NodeList res2 = item.getElementsByTagName(attribute);
Element attr = (Element)res2.item(0);
attr.setTextContent(text);
}