String contentType = uc.getContentType();
// Maybe should popup a choice when content/unknown!
if (contentType.equals("text/plain")
|| contentType.equals("content/unknown")) {
inputStream = uc.getInputStream();
SAXSource source = new SAXSource(new PlainTextXMLReader(
inputStream), new InputSource());
xr = XMLResource.load(source);
} else if (contentType.startsWith("image")) {
String doc = "<img src='" + uri + "'/>";
xr = XMLResource.load(new StringReader(doc));