public final class XMLDocBuilder extends Object
Modifier and Type | Method and Description |
---|---|
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
|
public XMLDocBuilder addNamespace(String prefix, String namespaceURI)
prefix
- The prefix of the namespacenamespaceURI
- The URI of the namespacepublic XMLDocBuilder addDefaultNamespace(String defaultNamespaceURI)
<html xmlns="http://www.w3.org/1999/xhtml">
defaultNamespaceURI
- URI to use as default when tags are not prefixedCopyright © 2008–2014 Mathieu Carbou. All rights reserved.