It should look at qname instead of local name since local name is null when namespace support is disabled in SAX parser.