S
shayhazan
I'm using digester to parse xml and I want to validate the xml with
xsd file.
I didn't find an example of how to do it
I tried to use:
digester.register("\\adasdascvcvcvc\\ssss\\XMLSchema","//WEB-NF//classes//schema.xsd");
String strXSDPath = "//WEB-INF//classes// schema.xsd";
digester.setSchema(strXSDPath);
digester.setValidating(true);
anybody know what is the problem ? ? ?
By the way, my xml doesn't have namespace.
Thanks in advance,
xsd file.
I didn't find an example of how to do it
I tried to use:
digester.register("\\adasdascvcvcvc\\ssss\\XMLSchema","//WEB-NF//classes//schema.xsd");
String strXSDPath = "//WEB-INF//classes// schema.xsd";
digester.setSchema(strXSDPath);
digester.setValidating(true);
anybody know what is the problem ? ? ?
By the way, my xml doesn't have namespace.
Thanks in advance,