public void writeStartElement(String prefix, String localName, String namespaceURI) throws XMLStreamException {
closeStartTag();
elemBuffer.reset();
UnsyncByteArrayOutputStream buffWriter = null;
try{
if(prefix !=null && prefix.length() > 0){
buffWriter = elementNames[_depth].getUtf8Data();
writeStringToUtf8(prefix,buffWriter);
writeStringToUtf8(":",buffWriter);
writeStringToUtf8(localName,buffWriter);
_elementPrefix = prefix;
}else{
buffWriter = elementNames[_depth].getUtf8Data();
writeStringToUtf8(localName,buffWriter);
}
}catch(Exception ex){
throw new RuntimeException(ex);
}
//byte [] data = elemBuffer.toByteArray();
//byte [] data = elemBuffer.getBytes();
_ncContextState[_depth]=false;
_depth++;resize();
resizeElementStack();
try {
_stream .write('<');
_stream.write(buffWriter.getBytes(),0,buffWriter.getLength());
closeStartTag = true;
} catch (IOException ex) {
throw new RuntimeException(ex);
}
}