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;
metadata.add(name, er.toString());
}
}
} catch (JaxenException e) {
logger.error(e.getMessage());
}