Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Java Programming for Beginners

You're reading from   Java Programming for Beginners Learn the fundamentals of programming with Java

Arrow left icon
Product type Paperback
Published in Oct 2017
Publisher Packt
ISBN-13 9781788296298
Length 318 pages
Edition 1st Edition
Languages
Arrow right icon
Author (1):
Arrow left icon
SkillSprints Inc., Mark Lassoff SkillSprints Inc., Mark Lassoff
Author Profile Icon SkillSprints Inc., Mark Lassoff
SkillSprints Inc., Mark Lassoff
Arrow right icon
View More author details
Toc

XML

Say we would like to store information that has a structure that is meaningful to our program. Also, we would like this information to be human-readable to some degree and sometimes even human-editable. To accomplish this, we very often turn to XML.

Java provides us with powerful tools for manipulating, reading, and writing XML raw text and files. However, as is the case with many powerful tools, there's a bit of a knowledge overhead for us to learn how to use them. In this chapter, we'll first look at how to use Java to load an XML file into a Java object. Next, we'll walk through how to parse XML data using Java. Finally, we'll see the Java code to write and modify XML data.

We'll cover the following topics in this chapter:

  • Java code for reading XML data
  • Parsing XML data
  • Writing and modifying XML data
...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime