Hi,
Sorry the code was not completely copied. I am using DOM parser.
Here is the code I used -
==========================================================
public static void main (
String args[])
{
try
{
DOMParser parser = new DOMParser();
parser.setFeature("http://apache.org/xml/features/validation/schema", true);
parser.setProperty(
"http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation",
"Latest_DWS.xsd");
//ErrorChecker errors = new ErrorChecker();
//parser.setErrorHandler(errors);
parser.parse("promotionPlanChangeMA_ALL.xml");
System.out.print("Successful");
}
catch (Exception e)
{
System.out.print("Problem parsing the file.");
e.printStackTrace();
}
}
==========================================================
Please let me know how to proceed.
Thanks in advance!!!