public interface ContentWriter
| Modifier and Type | Method and Description |
|---|---|
ContentWriter |
cdata(String content)
Write CDATA content of the currently opened tag.
|
void |
close()
Close the XML document.
1.
|
ContentWriter |
comment(String comment)
Write XML comment into current position.
|
ContentWriter |
end()
End currently opened tag.
|
ContentWriter |
flush()
Flush the content using underlying writer.
|
ContentWriter |
instruction(String name,
String content)
Write XML processing instruction.
|
ElementWriter |
tag(String name)
Start writing opening tag with provided tag name.
|
ElementWriter |
tag(String nsPrefix,
String name)
Start writing opening tag with provided XML namespace prefix and tag name.
|
ContentWriter |
text(String content)
Write text content of the currently opened tag.
|
ContentWriter instruction(String name, String content)
name - Processing instruction name (e.g. xml-stylesheet).content - Content of the processing instruction tag.ElementWriter tag(String name)
name - Tag name.ElementWriter tag(String nsPrefix, String name)
nsPrefix - XML namespace prefix.name - Tag name.ContentWriter text(String content)
content - Text content to be written.ContentWriter cdata(String content)
content - CDATA content to be written.ContentWriter comment(String comment)
comment - Content of the comment. Only escape invalid characters.ContentWriter end()
void close()
ContentWriter flush()
Copyright © 2018. All rights reserved.