void showPublicTimeline(){ try { JAXBContext con = JAXBContext.newInstance(Statuses.class); URL u = new URL("http://twitter.com/statuses/public_timeline.xml"); Statuses sts = (Statuses) con.createUnmarshaller().unmarshal(url); for(Status s : sts.statusList){ System.out.println(s.user.screenName + ":" + s.text); } } catch (MalformedURLException ex) { ex.printStackTrace(); } catch (JAXBException ex)