metadata.add(name, att.getValue());
} else if (node instanceof Text) {
Text text = (Text) node;
metadata.add(name, text.getText());
} else if (node instanceof Comment) {
Comment com = (Comment) node;
metadata.add(name, com.getText());
} else if (node instanceof ProcessingInstruction) {
ProcessingInstruction pi = (ProcessingInstruction) node;
metadata.add(name, pi.getData());
} else if (node instanceof EntityRef) {
EntityRef er = (EntityRef) node;