SAX Exception

Problems with WiFi, SQLite ,Bluetooth, WiMax, Proxies, etc...

SAX Exception

Postby barney » Tue Jul 28, 2009 3:12 am

Hi guys,

I've been getting this xml.sax.SAXException when trying to parse a URL I've tried a million different URLs and I finally got a URL that didn't return a malformed URL exception. But now I've been getting the SAX Exception that I have no idea how to fix. Here's the snippet of code I'm trying to debug:

SAXParserFactory spf = SAXParserFactory.newInstance();
SAXParser sp = spf.newSAXParser();
XMLReader xr = sp.getXMLReader();
xr.setContentHandler(this);
InputStream s = url.openStream();
InputSource i = new InputSource(s);
xr.parse(i);

Where the url points to "http://www.engadgetmobile.com/rss.xml"

Been stuck on this with no solution. Any help would be appreciated.

Thanks,

Barney
barney
Junior Developer
Junior Developer
 
Posts: 14
Joined: Tue Apr 28, 2009 5:40 am

Top

Return to Networking & Database Problems

Who is online

Users browsing this forum: No registered users and 5 guests