Java XML and JSON : document processing for Java SE /

Saved in:
Bibliographic Details
Author / Creator:Friesen, Jeff, author.
Edition:Second edition.
Imprint:[Berkeley, CA] : Apress, 2019.
Description:1 online resource (xviii, 528 pages) : illustrations
Language:English
Subject:
Format: E-Resource Book
URL for this record:http://pi.lib.uchicago.edu/1001/cat/bib/11781192
Hidden Bibliographic Details
ISBN:9781484243305
1484243307
9781484243312
1484243315
9781484243299
1484243293
Digital file characteristics:text file PDF
Notes:Includes bibliographical references and index.
Online resource; title from PDF title page (SpringerLink, viewed January 23, 2019).
Summary:Use this guide to master the XML metalanguage and JSON data format along with significant Java APIs for parsing and creating XML and JSON documents from the Java language. New in this edition is coverage of Jackson (a JSON processor for Java) and Oracle?s own Java API for JSON processing (JSON-P), which is a JSON processing API for Java EE that also can be used with Java SE. This new edition of Java XML and JSON also expands coverage of DOM and XSLT to include additional API content and useful examples. All examples in this book have been tested under Java 11. In some cases, source code has been simplified to use Java 11?s var language feature. The first six chapters focus on XML along with the SAX, DOM, StAX, XPath, and XSLT APIs. The remaining six chapters focus on JSON along with the mJson, GSON, JsonPath, Jackson, and JSON-P APIs. Each chapter ends with select exercises designed to challenge your grasp of the chapter's content. An appendix provides the answers to these exercises. What You'll Learn: Master the XML language Create, validate, parse, and transform XML documents Apply Java?s SAX, DOM, StAX, XPath, and XSLT APIs Master the JSON format for serializing and transmitting data Code against third-party APIs such as Jackson, mJson, Gson, JsonPath Master Oracle?s JSON-P API in a Java SE context.
Other form:Print version: Friesen, Jeff. Java XML and JSON : Document Processing for Java SE. Berkeley, CA : Apress L.P., ©2019 9781484243299
Standard no.:10.1007/978-1-4842-4330-5
Table of Contents:
  • Intro; Table of Contents; About the Author; About the Technical Reviewer; Acknowledgments; Introduction; Part I: Exploring XML; Chapter 1: Introducing XML; What Is XML?; Language Features Tour; XML Declaration; Elements and Attributes; Character References and CDATA Sections; Namespaces; Comments and Processing Instructions; Well-Formed Documents; Valid Documents; Document Type Definition; XML Schema; Summary; Chapter 2: Parsing XML Documents with SAX; What Is SAX?; Exploring the SAX API; Obtaining a SAX 2 Parser; Touring XMLReader Methods; Setting Features and Properties
  • Touring the Handler and Resolver InterfacesTouring ContentHandler; Touring DTDHandler; Touring ErrorHandler; Touring EntityResolver; Touring LexicalHandler; Demonstrating the SAX API; Creating a Custom Entity Resolver; Summary; Chapter 3: Parsing and Creating XML Documents with DOM; What Is DOM?; A Tree of Nodes; Exploring the DOM API; Obtaining a DOM Parser/Document Builder; Parsing and Creating XML Documents; Demonstrating the DOM API; Parsing an XML Document; Creating an XML Document; Working with Load and Save; Loading an XML Document into a DOM Tree; Configuring a Parser
  • Filtering an XML Document While ParsingSaving a DOM Tree to an XML Document; Working with Traversal and Range; Performing Traversals; Performing Range Operations; Summary; Chapter 4: Parsing and Creating XML Documents with StAX; What Is StAX?; Exploring StAX; Parsing XML Documents; Parsing Documents with Stream-Based Readers; Parsing Documents with Event-Based Readers; Creating XML Documents; Creating Documents with Stream-Based Writers; Creating Documents with Event-Based Writers; Summary; Chapter 5: Selecting Nodes with XPath; What Is XPath?; XPath Language Primer; Location Path Expressions
  • General ExpressionsXPath and DOM; Advanced XPath; Namespace Contexts; Extension Functions and Function Resolvers; Variables and Variable Resolvers; Summary; Chapter 6: Transforming XML Documents with XSLT; What Is XSLT?; Exploring the XSLT API; Demonstrating the XSLT API; Going Beyond XSLT 1.0 and XPath 1.0; Downloading and Testing SAXON-HE 9.9; Playing with SAXON-HE 9.9; Summary; Part II: Exploring JSON; Chapter 7: Introducing JSON; What Is JSON?; JSON Syntax Tour; Demonstrating JSON with JavaScript; Validating JSON Objects; Summary; Chapter 8: Parsing and Creating JSON Objects with mJson
  • What Is mJson?Obtaining and Using mJson; Exploring the Json Class; Creating Json Objects; Learning About Json Objects; Navigating Json Object Hierarchies; Modifying Json Objects; Validation; Customization via Factories; Summary; Chapter 9: Parsing and Creating JSON Objects with Gson; What Is Gson?; Obtaining and Using Gson; Exploring Gson; Introducing the Gson Class; Parsing JSON Objects Through Deserialization; Customized JSON Object Parsing; Creating JSON Objects Through Serialization; Customized JSON Object Creation; Learning More About Gson; Annotation Types; Exposing and Hiding Fields