Validar xml contra esquema con xerces/DOM
Publicado por vanesa (2 intervenciones) el 10/03/2004 22:15:25
Necesito validar un fichero con su xml en java utilizando xerces y el DOMParser
El código que tengo es:
DOMParser parser = new DOMParser();
try {
parser.setFeature("http://xml.org/sax/features/namespaces",true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setFeature("http://xml.org/sax/features/validation", true);
El código que tengo es:
DOMParser parser = new DOMParser();
try {
parser.setFeature("http://xml.org/sax/features/namespaces",true);
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setFeature("http://xml.org/sax/features/validation", true);
Valora esta pregunta


0