Muutke küpsiste eelistusi

E-raamat: Java XML and JSON: Document Processing for Java SE

  • Formaat - EPUB+DRM
  • Hind: 80,26 €*
  • * hind on lõplik, st. muud allahindlused enam ei rakendu
  • Lisa ostukorvi
  • Lisa soovinimekirja
  • See e-raamat on mõeldud ainult isiklikuks kasutamiseks. E-raamatuid ei saa tagastada.

DRM piirangud

  • Kopeerimine (copy/paste):

    ei ole lubatud

  • Printimine:

    ei ole lubatud

  • Kasutamine:

    Digitaalõiguste kaitse (DRM)
    Kirjastus on väljastanud selle e-raamatu krüpteeritud kujul, mis tähendab, et selle lugemiseks peate installeerima spetsiaalse tarkvara. Samuti peate looma endale  Adobe ID Rohkem infot siin. E-raamatut saab lugeda 1 kasutaja ning alla laadida kuni 6'de seadmesse (kõik autoriseeritud sama Adobe ID-ga).

    Vajalik tarkvara
    Mobiilsetes seadmetes (telefon või tahvelarvuti) lugemiseks peate installeerima selle tasuta rakenduse: PocketBook Reader (iOS / Android)

    PC või Mac seadmes lugemiseks peate installima Adobe Digital Editionsi (Seeon tasuta rakendus spetsiaalselt e-raamatute lugemiseks. Seda ei tohi segamini ajada Adober Reader'iga, mis tõenäoliselt on juba teie arvutisse installeeritud )

    Seda e-raamatut ei saa lugeda Amazon Kindle's. 

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

Who This Book Is For

Intermediate and advanced Java programmers who are developing applications that must access data stored in XML or JSON documents. The book also targets developers wanting to understand the XML language and JSON data format.
About the Author xi
About the Technical Reviewer xiii
Acknowledgments xv
Introduction xvii
Part I: Exploring XML 1(184)
Chapter 1 Introducing XML
3(32)
What Is XML?
3(2)
Language Features Tour
5(12)
XML Declaration
5(2)
Elements and Attributes
7(3)
Character References and CDATA Sections
10(2)
Namespaces
12(5)
Comments and Processing Instructions
17(1)
Well-Formed Documents
17(1)
Valid Documents
18(16)
Document Type Definition
19(7)
XML Schema
26(8)
Summary
34(1)
Chapter 2 Parsing XML Documents with SAX
35(32)
What Is SAX?
35(1)
Exploring the SAX API
36(11)
Obtaining a SAX 2 Parser
36(1)
Touring XMLReader Methods
37(5)
Touring the Handler and Resolver Interfaces
42(5)
Demonstrating the SAX API
47(12)
Creating a Custom Entity Resolver
59(6)
Summary
65(2)
Chapter 3 Parsing and Creating XML Documents with DOM
67(46)
What Is DOM?
67(1)
A Tree of Nodes
68(3)
Exploring the DOM API
71(6)
Obtaining a DOM Parser/Document Builder
71(2)
Parsing and Creating XML Documents
73(4)
Demonstrating the DOM API
77(8)
Parsing an XML Document
77(5)
Creating an XML Document
82(3)
Working with Load and Save
85(17)
Loading an XML Document into a DOM Tree
86(4)
Configuring a Parser
90(6)
Filtering an XML Document While Parsing
96(4)
Saving a DOM Tree to an XML Document
100(2)
Working with Traversal and Range
102(9)
Performing Traversals
102(5)
Performing Range Operations
107(4)
Summary
111(2)
Chapter 4 Parsing and Creating XML Documents with StAX
113(26)
What Is StAX?
113(1)
Exploring StAX
114(24)
Parsing XML Documents
115(10)
Creating XML Documents
125(13)
Summary
138(1)
Chapter 5 Selecting Nodes with XPath
139(26)
What Is XPath?
139(1)
XPath Language Primer
139(6)
Location Path Expressions
140(3)
General Expressions
143(2)
XPath and DOM
145(9)
Advanced XPath
154(10)
Namespace Contexts
154(2)
Extension Functions and Function Resolvers
156(5)
Variables and Variable Resolvers
161(3)
Summary
164(1)
Chapter 6 Transforming XML Documents with XSLT
165(20)
What Is XSLT?
165(1)
Exploring the XSLT API
166(4)
Demonstrating the XSLT API
170(9)
Going Beyond XSLT 1.0 and XPath 1.0
179(4)
Downloading and Testing SAXON-HE 9.9
179(1)
Playing with SAXON-HE 9.9
180(3)
Summary
183(2)
Part II: Exploring JSON 185(274)
Chapter 7 Introducing JSON
187(18)
What Is JSON?
187(1)
JSON Syntax Tour
188(2)
Demonstrating JSON with JavaScript
190(5)
Validating JSON Objects
195(7)
Summary
202(3)
Chapter 8 Parsing and Creating JSON Objects with mJson
205(38)
What Is mJson?
205(1)
Obtaining and Using mJson
206(1)
Exploring the Json Class
206(36)
Creating Json Objects
207(6)
Learning About Json Objects
213(10)
Navigating Json Object Hierarchies
223(2)
Modifying Json Objects
225(7)
Validation
232(3)
Customization via Factories
235(7)
Summary
242(1)
Chapter 9 Parsing and Creating JSON Objects with Gson
243(56)
What Is Gson?
243(1)
Obtaining and Using Gson
244(1)
Exploring Gson
244(54)
Introducing the Gson Class
245(3)
Parsing JSON Objects Through Deserialization
248(10)
Creating JSON Objects Through Serialization
258(9)
Learning More About Gson
267(31)
Summary
298(1)
Chapter 10 Extracting JSON Values with JsonPath
299(24)
What Is JsonPath?
299(1)
Learning the JsonPath Language
300(4)
Obtaining and Using the JsonPath Library
304(2)
Exploring the JsonPath Library
306(15)
Extracting Values from JSON Objects
306(3)
Using Predicates to Filter Items
309(12)
Summary
321(2)
Chapter 11 Processing JSON with Jackson
323(82)
What Is Jackson?
323(2)
Obtaining and Using Jackson
324(1)
Working with Jackson's Basic Features
325(25)
Streaming
325(9)
Tree Model
334(6)
Data Binding
340(10)
Working with Jackson's Advanced Features
350(52)
Annotation Types
350(40)
Custom Pretty Printers
390(8)
Factory, Parser, and Generator Features
398(4)
Summary
402(3)
Chapter 12 Processing JSON with JSON-P
405(54)
What Is JSON-P?
405(6)
JSON-P 1.0
405(3)
JSON-P 1.1
408(2)
Obtaining and Using JSON-P
410(1)
Working with JSON-P 1.0
411(12)
Working with the Object Model API
411(7)
Working with the Streaming Model API
418(5)
Working with JSON-P 1.1's Advanced Features
423(33)
JSON Pointer
424(7)
JSON Patch
431(9)
JSON Merge Patch
440(7)
Editing/Transformation Operations
447(2)
Java SE 8 Support
449(7)
Summary
456(3)
Part III: Appendixes 459(60)
Appendix A: Answers to Exercises
461(58)
Chapter 1 Introducing XML
461(5)
Chapter 2 Parsing XML Documents with SAX
466(8)
Chapter 3 Parsing and Creating XML Documents with DOM
474(12)
Chapter 4 Parsing and Creating XML Documents with StAX
486(7)
Chapter 5 Selecting Nodes with XPath
493(4)
Chapter 6 Transforming XML Documents with XSLT
497(4)
Chapter 7 Introducing JSON
501(2)
Chapter 8 Parsing and Creating JSON Objects with mJson
503(3)
Chapter 9 Parsing and Creating JSON Objects with Gson
506(4)
Chapter 10 Extracting JSON Values with JsonPath
510(1)
Chapter 11 Processing JSON with Jackson
511(4)
Chapter 12 Processing JSON with JSON-P
515(4)
Index 519
Jeff Friesen is a freelance teacher and software developer with an emphasis on Java. In addition to authoring Java I/O, NIO, and NIO.2 (Apress), Java Threads and the Concurrency Utilities (Apress), and the first edition of this book, Jeff has written numerous articles on Java and other technologies (such as Android) for JavaWorld, informIT, Java.net, SitePoint, and other web sites. Jeff can be contacted via his web site at JavaJeff.ca or via LinkedIn (JavaJeff).