}
w.write(localPart);
for (Iterator i = getAttributeNames(); i.hasNext();)
{
QName qName = (QName) i.next();
w.write(' ');
if ((p = getPrefix(qName.getNamespace())) != null && p.length() > 0)
{
w.write(p);
w.write(':');
}
w.write(qName.getLocalPart());
final Object attr = getAttributeValue(qName);
// handle @Resource specially
if(attr instanceof AtResource)
{