|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
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 |
public void printRaw(String s)
throws IOException
s - a string of data to include verbatim in the XML stream
IOException
public void openTag(String nsURI,
String localName)
throws IOException
nsURI - A URI for the namespace to uselocalName - The name of the tag
IOException
public void openTag(String name)
throws IOException
name - The name of the tag.
IOException
public 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
public void attribute(String qName,
String value)
throws IOException
openTag command.
value - The textual value of the attribute
IOException
public void print(String data)
throws IOException
IOException
public void println(String data)
throws IOException
IOException
public void closeTag(String nsURI,
String qName)
throws IOException
nsURI - A URI for the namespace to use
IOException
public void closeTag(String name)
throws IOException
name - The tag name
IOException
public void declareNamespace(String nsURI,
String prefixHint)
throws IOException
nsURI - The namespace to declareprefixHint - A suggested prefix-string for this namespace.
IOException
public void close()
throws IOException
IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||