List of utility methods to do XML Attribute Add
void | addAllElementsWithAttrId(final List add All Elements With Attr Id if (elementHasId(element, namespace)) { list.add(element); NodeList children = element.getChildNodes(); for (int i = 0; i < children.getLength(); i++) { Node child = children.item(i); if (child instanceof Element == false) { continue; ... |
void | addArrayAnyTypeAttribute(Element element, Collection> col) Helper methods for adding an array. addArrayAnyTypeAttribute(element, col.size()); |
void | addArrayOffsetAttribute(Element element, int offset) add Array Offset Attribute element.setAttribute("SOAP-ENC:offset", new StringBuilder("[").append(offset).append("]").toString()); |
void | addAttrDirect(Map add Attr Direct NamedNodeMap attrs = el.getAttributes(); for (int i = 0; i < attrs.getLength(); i++) { Node attr = attrs.item(i); values.put(attr.getNodeName(), attr.getNodeValue()); |
void | addAttribute(Document doc, Element node, String name, String value) add Attribute Attr attribute = doc.createAttribute(name); attribute.setValue(value); node.getAttributes().setNamedItem(attribute); |
void | addAttribute(Document doc, Element node, String name, String value) add Attribute Attr attribute = doc.createAttribute(name); attribute.setValue(value); node.getAttributes().setNamedItem(attribute); |
Attr | addAttribute(Document doc, Element parent, String attribute, Object value) add Attribute Attr attr = doc.createAttribute(attribute);
attr.setValue(String.valueOf(value));
parent.setAttributeNode(attr);
return attr;
|
void | addAttribute(Document doc, Node parentNode, String name, String content) add Attribute Attr attNode = doc.createAttribute(name); attNode.setNodeValue(content); parentNode.getAttributes().setNamedItem(attNode); |
Node | addAttribute(Document doc, org.w3c.dom.Element e, String index, String value) add Attribute e.setAttribute(index, value);
return e;
|
void | addAttribute(Document doc, String name, Element e, String value) add Attribute Node attrNode = doc.createAttribute(name); attrNode.setNodeValue(value); NamedNodeMap attrs = e.getAttributes(); attrs.setNamedItem(attrNode); |