public class XMLBuffer extends Object
| Constructor and Description |
|---|
XMLBuffer() |
| Modifier and Type | Method and Description |
|---|---|
XMLBuffer |
closeTag(String tagName)
Close top tag from stack.
|
XMLBuffer |
openTag(String tagName)
Open a tag; save on stack.
|
XMLBuffer |
tag(String tagName,
CharSequence content)
Add a complete tag with content.
|
String |
toString()
Convert the buffer to a string, closing any open tags
|
public XMLBuffer openTag(String tagName)
tagName - name of the tagpublic XMLBuffer closeTag(String tagName)
tagName - name of the tag to closeIllegalArgumentException - if the tag names do not matchpublic XMLBuffer tag(String tagName, CharSequence content)
tagName - name of the tagcontent - content to put in tag, or empty content, if an empty tag should be usedCopyright © 1998-2019 Apache Software Foundation. All Rights Reserved.