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.8 by tdb, Tue May 21 16:47:12 2002 UTC

# Line 1 | Line 1
1 + /*
2 + * i-scream central monitoring system
3 + * http://www.i-scream.org.uk
4 + * Copyright (C) 2000-2002 i-scream
5 + *
6 + * This program is free software; you can redistribute it and/or
7 + * modify it under the terms of the GNU General Public License
8 + * as published by the Free Software Foundation; either version 2
9 + * of the License, or (at your option) any later version.
10 + *
11 + * This program is distributed in the hope that it will be useful,
12 + * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 + * GNU General Public License for more details.
15 + *
16 + * You should have received a copy of the GNU General Public License
17 + * along with this program; if not, write to the Free Software
18 + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
19 + */
20 +
21   //---PACKAGE DECLARATION---
22  
23   //---IMPORTS---
# Line 5 | Line 25 | import java.util.*;
25  
26   /**
27   * Formats data into valid XML
28 < * By calling either addElement() or addNest() you can use this
29 < * class to create valid xml. When all elements have been added
30 < * calling returnXML() will return a string containing the xml.
28 > * By calling either addElement() or addNest() you can use
29 > * this class to create valid xml. When all elements have
30 > * been added calling returnXML() will return a string
31 > * containing the xml.
32   *
33   *
34   * @author  $Author$
# Line 60 | Line 81 | class XMLFormatter {
81          xmlData = new String();
82          hostInfo = null;
83      }        
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    }
84  
85   //---PUBLIC METHODS---
86  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines