Methods Summary |
---|
public void | addText(java.lang.String s)Add nested text, expanding properties as we go
addText(fragment, s);
|
private void | addText(org.w3c.dom.Node n, java.lang.String s)Add text to a node.
s = getProject().replaceProperties(s);
//only text nodes that are non null after property expansion are added
if (s != null && !s.trim().equals("")) {
Text t = doc.createTextNode(s.trim());
n.appendChild(t);
}
|
public java.lang.Object | createDynamicElement(java.lang.String uri, java.lang.String name, java.lang.String qName)Creates a nested element.
Element e = null;
if (uri.equals("")) {
e = doc.createElement(name);
} else {
e = doc.createElementNS(uri, qName);
}
fragment.appendChild(e);
return new Child(e);
|
public org.w3c.dom.DocumentFragment | getFragment()
return fragment;
|