org.apache.tools.ant.util
public class XMLFragment extends ProjectComponent implements DynamicElementNS
This is useful for tasks that want to deal with the "real" XML from the build file instead of objects.
Code heavily influenced by code written by Dominique Devienne.
Since: Ant 1.7
Nested Class Summary | |
---|---|
class | XMLFragment.Child
An object to handle (recursively) nested elements. |
Constructor Summary | |
---|---|
XMLFragment()
Constructor for XMLFragment object. |
Method Summary | |
---|---|
void | addText(String s)
Add nested text, expanding properties as we go |
Object | createDynamicElement(String uri, String name, String qName)
Creates a nested element. |
DocumentFragment | getFragment() |
Parameters: s the text to add
Parameters: uri the uri of the nested element name the localname of the nested element qName the qualified name of the nested element
Returns: an object that the element is applied to
Returns: the DocumentFragment that corresponds to the nested structure.