afreechart/src/main/java/org/afree/data/xml/CategoryDatasetHandler.java
/**
     * The start of an element.
     *
     * @param namespaceURI  the namespace.
     * @param localName  the element name.
     * @param qName  the element name.
     * @param atts  the element attributes.
     *
     * @throws SAXException for errors.
     */
The start of an element.
@param namespaceURI  the namespace.
@param localName  the element name.
@param qName  the element name.
@param atts  the element attributes.

@throws SAXException for errors.
The start of an element . @param namespaceURI the namespace . @param localName the element name . @param qName the element name . @param atts the element attributes . @throws SAXException for errors .
public void startElement(String namespaceURI,
                             String localName,
                             String qName,
                             Attributes atts) throws SAXException {
        DefaultHandler current = getCurrentHandler();
        if (current != this) {
            current.startElement(namespaceURI, localName, qName, atts);
        }
        else if (localName.equals(CATEGORYDATASET_TAG)) {
            this.dataset = new DefaultCategoryDataset();
        }
        else if (localName.equals(SERIES_TAG)) {
            CategorySeriesHandler subhandler = new CategorySeriesHandler(this);
            getSubHandlers().push(subhandler);
            subhandler.startElement(namespaceURI, localName, qName, atts);
        }
        else {
            throw new SAXException("Element not recognised: " + localName);
        }
    }
public void startElement ( String namespaceURI , String localName , String qName , Attributes atts ) throws SAXException { DefaultHandler current = getCurrentHandler ( ) ; if ( current != this ) { current . startElement ( namespaceURI , localName , qName , atts ) ; } else if ( localName . equals ( CATEGORYDATASET_TAG ) ) { this . dataset = new DefaultCategoryDataset ( ) ; } else if ( localName . equals ( SERIES_TAG ) ) { CategorySeriesHandler subhandler = new CategorySeriesHandler ( this ) ; getSubHandlers ( ) . push ( subhandler ) ; subhandler . startElement ( namespaceURI , localName , qName , atts ) ; } else { throw new SAXException ( "Element not recognised: " + localName ) ; } }
The start of an element.
The start of an element .