com.mycila.xmltool
public final class XMLDocBuilder extends Object
Method Summary | |
---|---|
XMLDocBuilder | addDefaultNamespace(String defaultNamespaceURI)
Set the default namespace to use in the document declaration. |
XMLDocBuilder | addNamespace(String prefix, String namespaceURI)
Add a namespace to the document that will be created
|
XMLTag | addRoot(String tagName)
Create a root node for this XML document
|
<html xmlns="http://www.w3.org/1999/xhtml">
Parameters: defaultNamespaceURI URI to use as default when tags are not prefixed
Returns: this
Parameters: prefix The prefix of the namespace namespaceURI The URI of the namespace
Returns: this
Parameters: tagName Name of the element
Returns: XMLDoc instance to build and navigate in the document