All Downloads are FREE. Search and download functionalities are using the official Maven repository.

de.timroes.axmlrpc.xmlcreator.SimpleXMLCreator Maven / Gradle / Ivy

There is a newer version: 1.14.0
Show newest version
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 "\n" + root.toString();
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy