*/
private static void printDiagnostics(XSDSchema schema) {
EList diagnositcs = schema.getAllDiagnostics();
System.out.println("diagnositcs.size() = " + diagnositcs.size());
for (int i = 0; i < diagnositcs.size(); i++) {
XSDDiagnosticImpl diag = (XSDDiagnosticImpl) diagnositcs.get(i);
System.out.println(diag.getMessage());
if (diag.getNode() != null) {
System.out.println("\tnode name : " + diag.getNode().getLocalName());
NamedNodeMap map = diag.getNode().getAttributes();
for (int j = 0; j < map.getLength(); j++) {
System.out.println("\t\t" + map.item(j));
}
}
}