hi!
this code:
// Create a builder factory
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(validating);
// Create the builder and set error handler class
DocumentBuilder builder = factory.newDocumentBuilder();
builder.setErrorHandler(new BasicErrHandler());
// Create the doc by parsing the file
Document doc = builder.parse(new File(filename));
returns a document that has a strange value of "[#document: null]"
the xml file is very simple and i know the builder finds it.
what is wrong ??
thanks
adi
this code:
// Create a builder factory
DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();
factory.setValidating(validating);
// Create the builder and set error handler class
DocumentBuilder builder = factory.newDocumentBuilder();
builder.setErrorHandler(new BasicErrHandler());
// Create the doc by parsing the file
Document doc = builder.parse(new File(filename));
returns a document that has a strange value of "[#document: null]"
the xml file is very simple and i know the builder finds it.
what is wrong ??
thanks
adi