NamespaceContext context){
prefix=checkPrefix(prefix);
StartElementEvent e=
new StartElementEvent(new QName(namespaceUri,localName,prefix));
while(attributes != null && attributes.hasNext())
e.addAttribute((Attribute)attributes.next());
while(namespaces != null && namespaces.hasNext())
e.addNamespace((Namespace)namespaces.next());
e.setNamespaceContext(context);
return e;
}