public void writeStartElement(String localName) throws XMLStreamException {
  if (localName == null || localName.length() == 0) {
    throw new XMLStreamException("Local Name cannot be null or empty");
  }
  _state=STATE_ELEMENT;
  if (_currentEle != null && _currentEle.getState() == ELEMENT_STARTTAG_OPEN) {
    closeStartTag();
  }
  _currentEle=new Element(_currentEle,localName,false);
  openStartTag();
  _writer.write(localName);
}

public void writeStartElement ( String localName ) throws XMLStreamException { if ( localName == null || localName . length ( ) == 0 ) { throw new XMLStreamException ( "Local Name cannot be null or empty" ) ; } _state = STATE_ELEMENT ; if ( _currentEle != null && _currentEle . getState ( ) == ELEMENT_STARTTAG_OPEN ) { closeStartTag ( ) ; } _currentEle = new Element ( _currentEle , localName , false ) ; openStartTag ( ) ; _writer . write ( localName ) ; }
writes a start tag to the output .
