views:

19

answers:

0

public void parXML(InputStream is) { http = (HttpConnection) Connector.open(url); ...

        iStrm =  http.openInputStream();
    try {
        DocumentBuilderFactory doc_builder_factory = DocumentBuilderFactory. newInstance();
        DocumentBuilder doc_builder = doc_builder_factory.newDocumentBuilder();
        Document doc = doc_builder.parse(is);
        doc.getDocumentElement().normalize ();
        NodeList list = doc.getElementsByTagName("Row");
        int totalPersons = list.getLength();
        System.out.println(totalPersons);

    } catch (Exception e){
        responseMessage.append(e.toString());
    }

i got the exception saxparseexception in blackberry

please do reply me