Join David Gassner for an in-depth discussion in this video Reading XML as a string, part of Java: XML Integration.
In most of this course, I describe how to use a variety of Java-based…XML APIs to handle the parsing of XML files for you.…But before we get into those APIs, it's a good idea to review how…to read a simple text file, from disk or any other location.…I'll start by creating a new Java project. Selecting File>New> Java Project and…I'll name it XML strings.…I'll click finish and then in the new project I'll go to the…source folder, right click and create a new class which I'll name main.…
I'll put it into a package called calm.example.XML strings.…I'll select the option to create main…method and click finish to create the class.…Now,…I want to use some of the capabilities of my data provider project.…In the previous movie I described how this data provider project works.…It has a lot of useful tools including the data provider…class, which is static and has some useful constants and methods.…And the stopwatch class, which can be used to time certain operations.…
I'm going to add this data provider project to…
Author
Released
11/8/2013- Choosing a Java-based XML API
- Reading XML as a string
- Comparing streaming and tree-based APIs
- Parsing XML with SAX
- Creating and reading XML with DOM
- Adding data to an XML document with JDOM
- Reading and writing XML with StAX
- Working with JAXB and annotated classes
- Comparing Simple XML Serialization to JAXB
Skill Level Intermediate
Duration
Views
Related Courses
-
Advanced Java Programming
with David Gassner3h 33m Advanced
-
Introduction
-
Welcome55s
-
What you should know1m 43s
-
Using the exercise files4m 48s
-
-
1. Getting Started
-
Reviewing XML terminology9m 56s
-
Reading XML as a string5m 42s
-
-
2. Parsing XML with SAX (Simple API for XML)
-
How SAX works6m 7s
-
-
3. Creating and Parsing XML with Document Object Model
-
How DOM works7m 56s
-
Creating a DOM document8m 5s
-
-
4. Creating and Parsing XML with JDOM
-
How JDOM works5m 52s
-
-
5. Creating and Parsing XML with StAX
-
How StAX works6m 11s
-
-
6. Creating and Parsing XML with JAXB
-
7. Creating and Parsing with Simple XML Serialization
-
Comparing Simple to JAXB3m 59s
-
-
Conclusion
-
Next steps1m 7s
-
- 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.
CancelTake 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.
Share this video
Embed this video
Video: Reading XML as a string