--- projects/cms/source/util/uk/org/iscream/cms/util/XMLStringParser.java 2001/03/16 01:33:46 1.12 +++ projects/cms/source/util/uk/org/iscream/cms/util/XMLStringParser.java 2002/03/13 12:44:55 1.14 @@ -1,5 +1,5 @@ //---PACKAGE DECLARATION--- -package uk.org.iscream.util; +package uk.org.iscream.cms.server.util; //---IMPORTS--- import java.io.*; @@ -13,7 +13,7 @@ import javax.xml.parsers.*; * XMLStringParser - Used to assist in creating XMLPacket objects. * * @author $Author: tdb $ - * @version $Id: XMLStringParser.java,v 1.12 2001/03/16 01:33:46 tdb Exp $ + * @version $Id: XMLStringParser.java,v 1.14 2002/03/13 12:44:55 tdb Exp $ */ public class XMLStringParser extends DefaultHandler { @@ -22,7 +22,7 @@ public class XMLStringParser extends DefaultHandler { /** * The current CVS revision of this class */ - public final String REVISION = "$Revision: 1.12 $"; + public final String REVISION = "$Revision: 1.14 $"; //---STATIC METHODS--- @@ -59,10 +59,10 @@ public class XMLStringParser extends DefaultHandler { * within the XMLPacket. */ public void startElement (String uri, String name, String qName, Attributes atts) { - _tagList.addLast(name); + _tagList.addLast(qName); if (atts != null) { for (int i = 0; i < atts.getLength (); i++) { - _packet.addParam(getPath()+".attributes."+atts.getLocalName(i), atts.getValue(i)); + _packet.addParam(getPath()+".attributes."+atts.getQName(i), atts.getValue(i)); } } } @@ -91,7 +91,7 @@ public class XMLStringParser extends DefaultHandler { * Overrides the {@link java.lang.Object#toString() Object.toString()} * method to provide clean logging (every class should have this). * - * This uses the uk.org.iscream.util.NameFormat class + * This uses the uk.org.iscream.cms.server.util.NameFormat class * to format the toString() * * @return the name of this class and its CVS revision