|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Represents a service that accepts a programaticly generated XML document.
| Method Summary | |
void |
attribute(String name,
String value)
Add an attribute to the current element using the element namespace. |
void |
attribute(String prefix,
String name,
String value)
Add an attribute to the current element. |
void |
close()
End the output. |
void |
comment(String content)
Write a comment to the output. |
void |
endElement()
End the current element. |
void |
instruction(String target,
String data)
Add a processing instruction to the output. |
void |
namespace(String prefix,
String name)
Write a namespace node to the output |
void |
startElement(String name)
Start a new element in the output using the default namespace |
void |
startElement(String prefix,
String name)
Start a new element in the output |
void |
text(String text)
Add character data to the output. |
| Method Detail |
public void startElement(String name)
name - The element name
XmlOutputException - If the element name is invalid.
public void startElement(String prefix,
String name)
prefix - The namespace prefixname - The element name
XmlOutputException - If the element name is invalid.
public void namespace(String prefix,
String name)
prefix - The alias to use for this namespace within the document.
use the empty string or null to denote the default namespace.name - The namespace name
public void attribute(String name,
String value)
name - The attribute namevalue - The attribute value
XmlOutputException - If the output is not currently within an
element start tag or the element name is invalid.
public void attribute(String prefix,
String name,
String value)
prefix - The namespace prefixname - The attribute namevalue - The attribute value
XmlOutputException - If the output is not currently within an
element start tag or the element name is invalid.public void endElement()
XmlOutputException - If there are no open entities.public void text(String text)
text - The text to add as XML character data
XmlOutputException - If there is no open element.
public void instruction(String target,
String data)
target - The name of the PI target.data - The PI data - may not contain '?>'
XmlOutputException - If the data contains '?>' or the target name
has invalid characters.public void comment(String content)
content - The content of the comment.
XmlOutputException - If the comment text contains '-->' or ends
in '-'.public void close()
XmlOutputException - If there are any open entities.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||