|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||
element() and end().
See:
Description
| Class Summary | |
|---|---|
| InstanceBuilder | Given an existing xml, creates a Sugar4Xml subclass that writes that very xml
again. |
| Schema2Package | Given an existing w3c XSD schema document, creates a Sugar4Xml subclass for
type-safe creating instance documents of that schema. |
| Sugar4Xml<T extends Sugar4Xml<?>> | Writes arbitrary xml to a Writer destination using only the two methods
element() and end(). |
| Sugar4Xml.Default | Default, type-argument less implementation. |
Writes arbitrary xml using only the two methods element() and end().
element() starts an element, end() ends the last written
element.
element() expects its parameters as follows:
For nested elements, it is suggested to nest the element() and end()
calls as well. This way, the java code resembles the look of structured xml.
Example:
element("html");
{
element("body");
{
}
end();
}
end();
|
||||||||||
| PREV PACKAGE NEXT PACKAGE | FRAMES NO FRAMES | |||||||||