S
Sanjeev
dear gurus
i m reading XML file in the form of string.
below is the code.
private void parseDocument(String receivedMessage) {
//get a factory
SAXParserFactory spf = SAXParserFactory.newInstance();
try {
//get a new instance of parser
SAXParser sp = spf.newSAXParser();
//parse the file and also register this class for call backs
sp.parse(new InputSource(new
ByteArrayInputStream(receivedMessage.getBytes())), this);
}catch(SAXException se) {
}catch(ParserConfigurationException pce) {
}catch (IOException ie) {
}
}
In this code i m getting error on line started with "sp.parse(..."
could any one help why i m getting this error..
thanking in advance
Regards
Sanjeev
i m reading XML file in the form of string.
below is the code.
private void parseDocument(String receivedMessage) {
//get a factory
SAXParserFactory spf = SAXParserFactory.newInstance();
try {
//get a new instance of parser
SAXParser sp = spf.newSAXParser();
//parse the file and also register this class for call backs
sp.parse(new InputSource(new
ByteArrayInputStream(receivedMessage.getBytes())), this);
}catch(SAXException se) {
}catch(ParserConfigurationException pce) {
}catch (IOException ie) {
}
}
In this code i m getting error on line started with "sp.parse(..."
could any one help why i m getting this error..
thanking in advance
Regards
Sanjeev