xsw.writeStartElement(prefix,localName,uri);
if(parentNS.containsKey(prefix)){
xsw.writeNamespace(prefix, uri);
}
for(int i=0;i<attrNSList.size();i++){
AttributeNS attrNs = (AttributeNS)attrNSList.get(i);
xsw.writeNamespace(attrNs.getPrefix(),attrNs.getUri());
}
for(int i=0;i<attrList.size();i++){
StAXAttr attr = (StAXAttr) attrList.get(i);
if(parentNS.containsKey(attr.getPrefix())){
xsw.writeNamespace(attr.getPrefix(),parentNS.get(attr.getPrefix()));