TreKing wrote: > On Fri, Feb 19, 2010 at 11:43 AM, CMF <[email protected] > <mailto:[email protected]>> wrote: > > the myfile.xml is placed at res/xml/ > I would like to get all the node( but don't know how many) attribute > "name", as well as the corresponding content. > > > See Mark's original response: > > On Fri, Feb 19, 2010 at 8:50 AM, Mark Murphy <[email protected] > <mailto:[email protected]>> wrote: > > You cannot read res/values/strings.xml as XML. If you want XML > resources, put them in res/xml and use the Resources object to get an > XmlPullParser. > > > So look up XmlPullParser and learn how it works and how to use it to get > the data you need.
BTW, as with most third-party stuff poured into the Android SDK, you can find more documentation at the third-party site: http://xmlpull.org/v1/download/unpacked/doc/quick_intro.html -- Mark Murphy (a Commons Guy) http://commonsware.com | http://twitter.com/commonsguy Android Training...At Your Office: http://commonsware.com/training -- 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

