Iterator iter = soap_elem.getAllAttributes( );
while ( iter.hasNext( ) )
{
Name attrib_pqname = (Name) iter.next( );
// skip all xmlns:foo attributes (e.g. xmlns:xs="urn:schema")
if ( ( attrib_pqname.getPrefix( ) != null )
&& attrib_pqname.getPrefix( ).equals( XmlConstants.NSPREFIX_XMLNS ) )
{
continue;
}
// skip the xmlns attribute (e.g. xmlns="urn:default")
if ( ( attrib_pqname.getLocalName( ) != null )
&& attrib_pqname.getLocalName( ).equals( XmlConstants.NSPREFIX_XMLNS ) )
{
continue;
}
appendAttribute( buf,
nameToString( attrib_pqname ),
soap_elem.getAttributeValue( attrib_pqname ),
depth );
if ( ( ( attrib_pqname.getURI( ) != null ) && !( "".equals( attrib_pqname.getURI( ) ) ) )
&& ( ( attrib_pqname.getPrefix( ) != null ) && !( "".equals( attrib_pqname.getPrefix( ) ) ) )
&& ( soap_elem.getNamespaceURI( attrib_pqname.getPrefix( ) ) == null ) )
{
appendNamespaceDeclarationAttribute( buf, attrib_pqname, depth );
}
}
}