ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/i-scream/projects/cms/source/util/uk/org/iscream/cms/util/XMLStringParser.java
(Generate patch)

Comparing projects/cms/source/util/uk/org/iscream/cms/util/XMLStringParser.java (file contents):
Revision 1.9 by tdb, Sat Mar 10 02:03:55 2001 UTC vs.
Revision 1.10 by tdb, Sat Mar 10 04:03:52 2001 UTC

# Line 4 | Line 4 | package uk.ac.ukc.iscream.util;
4   //---IMPORTS---
5   import java.io.*;
6   import java.util.ArrayList;
7
7   import org.xml.sax.*;
8   import org.xml.sax.helpers.*;
9 < import javax.xml.parsers.SAXParserFactory;
11 < import javax.xml.parsers.ParserConfigurationException;
12 < import javax.xml.parsers.SAXParser;
9 > import javax.xml.parsers.*;
10  
11   /**
12   * XMLStringParser - Used to assist in creating XMLPacket objects.
# Line 46 | Line 43 | public class XMLStringParser extends DefaultHandler {
43  
44   //---PUBLIC METHODS---
45  
49    /**
50     * Accessor to the XMLPacket.
51     */
52    public XMLPacket getXMLPacket() {
53        return _packet;
54    }
55
46      //===========================================================
47      // SAX DocumentHandler methods
48      //===========================================================
# Line 76 | Line 66 | public class XMLStringParser extends DefaultHandler {
66              }
67          }
68      }
69 <
69 >    
70      /**
71       * When an XML element is finished with, we must remove
72       * the tag name from the tagList and decrement the indent
# Line 86 | Line 76 | public class XMLStringParser extends DefaultHandler {
76              _tagList.remove(_tagList.size() - 1);    
77          _indentLevel--;
78      }
79 <
90 <
79 >    
80      /**
81       * Any text falling within a pair of terminal tags must
82       * be added to the XMLPacket.  Trim leading and trailing
# Line 136 | Line 125 | public class XMLStringParser extends DefaultHandler {
125      }
126  
127   //---ACCESSOR/MUTATOR METHODS---
128 +
129 +    /**
130 +     * Accessor to the XMLPacket.
131 +     */
132 +    public XMLPacket getXMLPacket() {
133 +        return _packet;
134 +    }
135  
136   //---ATTRIBUTES---
137  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines