|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface XMLWriter
Simple interface for building XML documents.
Method Summary | |
---|---|
void |
attribute(String qName,
String value)
Add an un-qualified attribute to an element. |
void |
attribute(String nsURI,
String localName,
String value)
Add an attribute to an element. |
void |
close()
Close this XMLWriter, and it's underlying stream. |
void |
closeTag(String name)
Closes an un-qualified element. |
void |
closeTag(String nsURI,
String qName)
Closes an element |
void |
declareNamespace(String nsURI,
String prefixHint)
Hints that a namespace is going to be used in a sub-tree. |
void |
openTag(String name)
Open a new unqualified XML tag. |
void |
openTag(String nsURI,
String localName)
Open a new namespace-qualified XML tag. |
void |
print(String data)
Prints some textual content in an element. |
void |
println(String data)
Prints some textual content, terminated with a newline character. |
void |
printRaw(String s)
Send raw data to the stream. |
Method Detail |
---|
void printRaw(String s) throws IOException
s
- a string of data to include verbatim in the XML stream
IOException
void openTag(String nsURI, String localName) throws IOException
nsURI
- A URI for the namespace to uselocalName
- The name of the tag
IOException
void openTag(String name) throws IOException
name
- The name of the tag.
IOException
void attribute(String nsURI, String localName, String value) throws IOException
openTag
command.
nsURI
- A URI for the namespace to uselocalName
- The name of the attributevalue
- The textual value of the attribute
IOException
void attribute(String qName, String value) throws IOException
openTag
command.
qName
- The name of the attribute to setvalue
- The textual value of the attribute
IOException
void print(String data) throws IOException
IOException
void println(String data) throws IOException
IOException
void closeTag(String nsURI, String qName) throws IOException
nsURI
- A URI for the namespace to useqName
- The name of the tag
IOException
void closeTag(String name) throws IOException
name
- The tag name
IOException
void declareNamespace(String nsURI, String prefixHint) throws IOException
nsURI
- The namespace to declareprefixHint
- A suggested prefix-string for this namespace.
IOException
void close() throws IOException
IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |