startElement method not Called
Hi All,
I am trying to parse an XML by extending DefaultHandler.
...
InputSource input = new InputSource(new ByteArrayInputStream(fileContent));
SAXParserFactory spf = SAXParserFactory.newInstance();
spf.setValidating (false);
XMLReader xmlReader = null;
SAXParser sp = spf.newSAXParser();
xmlReader = sp.getXMLReader();
xmlReader.setContentHandler(this);
xmlReader.setErrorHandler(new MyErrorHandler(System.err));
input.setSystemId("file:///d:\\srm52\\dtd\\ContractData.dtd");
xmlReader.parse(input);
the startDocument method is called, but after that the code exit without parsing any Elements. It doesn't enter the startElement method.
I am running this code in Weblogic.
please let me know what could be wrong.
any help will be appreciated(asap).
thanks in adv
ashok

