--- projects/cms/source/host/java/XMLFormatter.java 2000/12/07 18:25:53 1.2 +++ projects/cms/source/host/java/XMLFormatter.java 2000/12/07 23:22:17 1.3 @@ -10,8 +10,8 @@ import java.util.*; * calling returnXML() will return a string containing the xml. * * - * @author $Author: ab11 $ - * @version $Id: XMLFormatter.java,v 1.2 2000/12/07 18:25:53 ab11 Exp $ + * @author $Author: tdb $ + * @version $Id: XMLFormatter.java,v 1.3 2000/12/07 23:22:17 tdb Exp $ */ class XMLFormatter { @@ -20,7 +20,7 @@ class XMLFormatter { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.2 $"; + public final String REVISION = "$Revision: 1.3 $"; //---STATIC METHODS--- @@ -32,7 +32,6 @@ class XMLFormatter { * an example for rootInfo would be "Host" */ public XMLFormatter(String rootInfo){ - myStack = new Stack(); xmlData = new String(); xmlData = "<"+rootInfo+">"; @@ -49,6 +48,16 @@ class XMLFormatter { hostInfo = null; } + /** + * Public Constructor for the class + * Takes a second parameter containing the root attributes. + */ + public XMLFormatter(String rootInfo, String rootAttributes){ + myStack = new Stack(); + xmlData = new String(); + xmlData = "<"+rootInfo+" "+rootAttributes+">"; + hostInfo = rootInfo; + } //---PUBLIC METHODS---