private static boolean isXMLString(XSDeclaration declaration) {
   return XML_SCHEMA.equals(declaration.getTargetNamespace())
       && XML_STRING.equals(declaration.getName());
 }
 private static boolean isXMLAnyType(XSDeclaration declaration) {
   return XML_SCHEMA.equals(declaration.getTargetNamespace())
       && XML_ANYTYPE.equals(declaration.getName());
 }