while ( attrs.hasNext() )
{
Attribute attr = attrs.next();
XMLName attrName = attr.getName();
if ("http://www.w3.org/2001/XMLSchema-instance".equals(
attrName.getNamespaceUri() ))
{
String local = attrName.getLocalName();
if (local.equals( "type" ))
_xsiType = attr.getValue();
else if (local.equals( "nil" ))
_xsiNil = attr.getValue();
else if (local.equals( "schemaLocation" ))
_xsiLoc = attr.getValue();
else if (local.equals( "noNamespaceSchemaLocation" ))
_xsiNoLoc = attr.getValue();
}
}
// Emit the START
// TODO - should delay the aquisition of the name
_name = e.getName();
nextEvent( ValidatorListener.BEGIN );
// Emit the attrs
attrs = se.getAttributes();
while ( attrs.hasNext() )
{
Attribute attr = attrs.next();
XMLName attrName = attr.getName();
if ("http://www.w3.org/2001/XMLSchema-instance".equals(
attrName.getNamespaceUri() ))
{
String local = attrName.getLocalName();
if (local.equals( "type" ))
continue;
else if (local.equals( "nil" ))
continue;