}
}
public void attribute(DocumentTableEntry entry) throws Exception {
int symID = entry.getValID();
QName qname = symbols.getQName(symID);
String uri = qname.getSAXURI();
StringBuffer sb = new StringBuffer();
do {
entry = processor.next();
if ( entry.getTypeID() == Constants.OBJ_TEXT ) {
int valID = entry.getValID();
sb.append(UTF8.toCharArray(table.getValue(valID)));
}
}
while ( entry.getTypeID() != Constants.OBJ_END_ATTRIBUTE );
String value = sb.toString();
if ( nsReporting && qname.isNamespaceDecl() ) {
Map prefixMap = (Map)prefixStack.peek();
String prefix = qname.getSAXPrefix();
prefixMap.put(prefix, value);
content.startPrefixMapping(prefix, value);
if ( nsPrefixes )
attrs.addAttribute(uri, qname.getLocalName(), qname.getName(), "", value);
}
else
attrs.addAttribute(uri, qname.getLocalName(), qname.getName(), "", value);
}