Join David Gassner for an in-depth discussion in this video Parsing a read-only XML file with JDOM, part of Android SDK: Local Data Storage.
I've previously described how to parse XML files using the XML Pull Parser, a…streaming parser that's included with the Android SDK.…I'm now going to describe an alternative approach using a parser called JDOM.…JDOM is a third-party open-source, free solution that works well in both generic…Java applications and in Android apps.…You can download the binaries for JDOM, but I've included the JAR file.…That is the library that you need to include in your application in…the exercise files.…
I'll get out of the browser and I'll go to my Exercise Files folder.…Under the Assets folder, there's a subfolder called Software, and there's a…file there called jdom-2.0.3.jar.…You can use this or any later version.…I'll copy the JAR file to the clipboard. Then I'll go back to Eclipse.…Within Eclipse, I'll go to the libs folder of my new project, XMLJDOMParser.…I'll go to that libs folder and I'll paste the file into place.…
In addition to adding the JAR file to the libs folder, you can also explicitly…add the JAR file to the build path for the application, and that will ensure…
- Exploring local data storage options
- Creating an Android virtual device
- Starting a new project
- Defining preferences with Java and activities
- Creating and reading JSON and XML data files
- Creating a new SQLite database
- Inserting and retrieving data in the database
Skill Level Intermediate
1. Getting Started
2. Using Application Preferences
3. Using Internal and External File Storage
4. Working with SQLite Databases
5. Managing and Displaying SQLite Data
Improving the data display9m 29s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.