XML Reading org.xml.sax.SAXParseException: Expecting end of file.

Posted by vivekbirdi on Stack Overflow See other posts from Stack Overflow or by vivekbirdi
Published on 2010-03-18T00:09:07Z Indexed on 2010/03/18 0:11 UTC
Read the original article Hit count: 901

Filed under:

Hi,

I am getting problem while parsing XML File using JDE 4.6.

FileConnection fconn = (FileConnection)Connector.open ("file:///SDCard/Dictionary.xml",Connector.READ_WRITE);

InputStream din= fconn.openInputStream();

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); DocumentBuilder builder = factory.newDocumentBuilder(); Document document = builder.parse(din);

here I am getting Exception at Document document = builder.parse(din);

org.xml.sax.SAXParseException: Expecting end of file.

please give me some solution.

Thanks

© Stack Overflow or respective owner

Related posts about blackberry-jde