Manage your torrents from your Android device
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
702 B

package de.timroes.axmlrpc.xmlcreator;
/**
* This is a very simple xml creator. It allows creating an xml document
* containing multiple xml tags. No attributes are supported.
*
* @author Tim Roes
*/
public class SimpleXMLCreator {
private XmlElement root;
/**
* Set the root element of the xml tree.
*
* @param element The element to use as root element in this tree.
*/
public void setRootElement(XmlElement element) {
this.root = element;
}
/**
* Return the string representation of the xml tree.
* @return String representation of the xml tree.
*/
@Override
public String toString() {
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" + root.toString();
}
}