@Override protected void attribute(final byte[] name, final byte[] value, final boolean standalone) { byte[] prefix = null; if (startsWith(name, XMLNS)) { if (name.length == 5) { prefix = EMPTY; } else if (name[5] == ':') { prefix = substring(name, 6); } } if (prefix != null) { namespaces.put(prefix, value); } else { attributes.add(name, value); } }