ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/host/java/XMLFormatter.java
(Generate patch)

Comparing projects/cms/source/host/java/XMLFormatter.java (file contents):
Revision 1.4 by ab11, Fri Dec 8 12:21:11 2000 UTC vs.
Revision 1.6 by ab11, Mon Mar 19 17:30:17 2001 UTC

# Line 5 | Line 5 | import java.util.*;
5  
6   /**
7   * Formats data into valid XML
8 < * By calling either addElement() or addNest() you can use this
9 < * class to create valid xml. When all elements have been added
10 < * calling returnXML() will return a string containing the xml.
8 > * By calling either addElement() or addNest() you can use
9 > * this class to create valid xml. When all elements have
10 > * been added calling returnXML() will return a string
11 > * containing the xml.
12   *
13   *
14   * @author  $Author$
# Line 60 | Line 61 | class XMLFormatter {
61          xmlData = new String();
62          hostInfo = null;
63      }        
63
64    /**
65    * Public Constructor for the class
66    * Takes a second parameter containing the root attributes.
67    */
68    public XMLFormatter(String rootInfo, String rootAttributes){
69        myStack = new Stack();
70        xmlData = new String();
71        xmlData = "<"+rootInfo+" "+rootAttributes+">";
72        hostInfo = rootInfo;
73    }
64  
65   //---PUBLIC METHODS---
66  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines