public void startElementBuilder(final String tagName,
                                    final Attributes attrs) {

        this.attrs = attrs;

        this.characters = new StringBuilder();

        final Element element = this.document.createElement( tagName );

        //final DefaultConfiguration config = new DefaultConfiguration( tagName );

        final int numAttrs = attrs.getLength();

        for ( int i = 0; i < numAttrs; ++i ) {
            element.setAttribute( attrs.getLocalName( i ),
                                  attrs.getValue( i ) );
        }

        if ( this.configurationStack.isEmpty() ) {
            this.configurationStack.addLast( element );
        } else {
            ((Element) this.configurationStack.getLast()).appendChild( element );
            this.configurationStack.addLast( element );
        }
    }
public void startElementBuilder ( final String tagName , final Attributes attrs ) { this . attrs = attrs ; this . characters = new StringBuilder ( ) ; final Element element = this . document . createElement ( tagName ) ; final int numAttrs = attrs . getLength ( ) ; for ( int i = 0 ; i < numAttrs ; ++ i ) { element . setAttribute ( attrs . getLocalName ( i ) , attrs . getValue ( i ) ) ; } if ( this . configurationStack . isEmpty ( ) ) { this . configurationStack . addLast ( element ) ; } else { ( ( Element ) this . configurationStack . getLast ( ) ) . appendChild ( element ) ; this . configurationStack . addLast ( element ) ; } }
Start a configuration node.

@param tagName
Tag name.
@param attrs
Tag attributes.