In this documentation <a> means an Element instance with name a.
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static void | appendCDATA(Element
element that will receive the new element as child. parent, String text content. content)Adds a nested CDATA section. |
| public static void | appendCDATAElement(Element
element that will receive the new element as child. parent, String of the child element. name, String text content. content)Adds a nested CDATA section in a new child element. |
| public static void | appendText(Element
element that will receive the new element as child. parent, String text content. content)Adds nested text. |
| public static void | appendTextElement(Element
element that will receive the new element as child. parent, String of the child element. name, String text content. content)Adds nested text in a new child element. |
| public static Element | Returns: the new element.element that will receive the new element as child. parent, String name of the new element. name)Creates a named Element and appends it to the given element, returns it. |
| public static Document |
| DOMUtils | back to summary |
|---|---|
| private DOMUtils() | |
| appendCDATA | back to summary |
|---|---|
| public static void appendCDATA(Element parent, String content) Adds a nested CDATA section. This means appendCDATA(<a>, "b")creates <a><[!CDATA[b]]></a> | |
| appendCDATAElement | back to summary |
|---|---|
| public static void appendCDATAElement(Element parent, String name, String content) Adds a nested CDATA section in a new child element. This means appendCDATAElement(<a>, "b", "c")creates <a> <b><![CDATA[c]]></b> </a> | |
| appendText | back to summary |
|---|---|
| public static void appendText(Element parent, String content) Adds nested text. This means appendText(<a>, "b")creates <a>b</a> | |
| appendTextElement | back to summary |
|---|---|
| public static void appendTextElement(Element parent, String name, String content) Adds nested text in a new child element. This means appendTextElement(<a>, "b", "c")creates <a> <b>c</b> </a> | |
| createChildElement | back to summary |
|---|---|
| public static Element createChildElement(Element parent, String name) 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>.
| |
| newDocument | back to summary |
|---|---|
| public static Document newDocument() Get a new Document instance,
| |