Yeah.. that's not going to work for most/any sites. The output of the average brainless HTML-monkey will not parse with a proper XML parser - which is why Google themselves saw fit to use TagSoup internally for HTML rendering (its used for instance to "render" HTML in TextView:s).
You can include TagSoup in your app, you'll get a few warnings in Eclipse since its already in the platform (but hidden as usual). On 8 Apr, 11:43, harsh chandel <[email protected]> wrote: > hi > you can use the saxparser or dom parser you can find example > on android developer. > to put the whole data in your application and then use it. > > On Apr 6, 8:52 pm, Neutron_boy <[email protected]> wrote: > > > I am fairly new to Android, but have some experience reading and > > understanding code, including Java. > > My question is: If I want to parse a URL such as a calender from a web > > page, how do I go about this? > > > My thoughts: To pull the XML, do I use text? > > i.e.: > > > try { > > URL text = new URL( http:// and here is where I am not sure what to > > have. The script below is the source for the calender in the XML of > > the website > > <script type="text/javascript" > > src="9278a6f3de5f9e54f2aeeb74ac1f0a7eembedcompiled__en.js"></script>) > > > Do I then follow with XmlPullParserFactgory parserCreator = > > XmlPullParserFactory.newInstance(); > > XmlPullParser parser = parserCreator.newPullParser(); > > > parser.setInput(text.openStream(), null); Do I still use an open > > stream here? > > > rest of code....... > > > Thanks in advance for the help and insoght -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

