| java.lang.Object org.apache.tools.ant.util.DOMUtils
DOMUtils | public class DOMUtils (Code) | | Some utility methods for common tasks when building DOM trees in memory.
In this documentation <a> means an
org.w3c.dom.Element Element instance with name a .
since: Ant 1.6.3 |
appendCDATA | public static void appendCDATA(Element parent, String content)(Code) | | Adds a nested CDATA section.
This means
appendCDATA(<a>, "b")
creates
<a><[!CDATA[b]]></a>
Parameters: parent - element that will receive the new element as child. Parameters: content - text content. since: Ant 1.6.3 |
appendCDATAElement | public static void appendCDATAElement(Element parent, String name, String content)(Code) | | Adds a nested CDATA section in a new child element.
This means
appendCDATAElement(<a>, "b", "c")
creates
<a>
<b><![CDATA[c]]></b>
</a>
Parameters: parent - element that will receive the new element as child. Parameters: name - of the child element. Parameters: content - text content. since: Ant 1.6.3 |
appendText | public static void appendText(Element parent, String content)(Code) | | Adds nested text.
This means
appendText(<a>, "b")
creates
<a>b</a>
Parameters: parent - element that will receive the new element as child. Parameters: content - text content. since: Ant 1.6.3 |
appendTextElement | public static void appendTextElement(Element parent, String name, String content)(Code) | | Adds nested text in a new child element.
This means
appendTextElement(<a>, "b", "c")
creates
<a>
<b>c</b>
</a>
Parameters: parent - element that will receive the new element as child. Parameters: name - of the child element. Parameters: content - text content. since: Ant 1.6.3 |
createChildElement | public static Element createChildElement(Element parent, String name)(Code) | | Creates a named Element and appends it to the given element,
returns it.
This means
createChildElement(<a>, "b")
creates
<a>
<b/>
</a>
and returns <b> .
Parameters: parent - element that will receive the new element as child. Parameters: name - name of the new element. the new element. since: Ant 1.6.3 |
newDocument | public static Document newDocument()(Code) | | Get a new Document instance,
the document. since: Ant 1.6.3 |
|
|