}
DocumentTable table = rs.getResult();
if ( table != null ) {
PullProcessor proc = new PullProcessor(table);
SymbolTable symbols = table.getSymbolTable();
while ( proc.hasNext() ) {
DocumentTableEntry entry = proc.next();
byte typeID = entry.getTypeID();
int valID = entry.getValID();
if ( Constants.isPayloadSymbol(typeID) ) {
if ( valID != Constants.NO_VALUE_ID ) {
QName qname = symbols.getQName(valID);
tb.addEntry(typeID, qname);
}
else
tb.addEntry(typeID);
}