}
private static void addNoSchemaAttributes(XmlObject elem, List attrList)
{
XmlCursor cursor = elem.newCursor();
boolean hasAttributes = cursor.toFirstAttribute();
while (hasAttributes)
{
QName name = cursor.getName();
String namespaceURI = name.getNamespaceURI();
if ("".equals(namespaceURI) ||