Java and XML Solutions to Real World Problems 3rd Edition by Brett McLaughlin, Justin Edelson – Ebook PDF Instant Download/Delivery. 0596552289, 9780596552282
Full download Java and XML Solutions to Real World Problems 3rd Edition after payment
Product details:
ISBN 10: 0596552289
ISBN 13: 9780596552282
Author: Brett McLaughlin, Justin Edelson
Java and XML, 3rd Edition, shows you how to cut through all the hype about XML and put it to work. It teaches you how to use the APIs, tools, and tricks of XML to build real-world applications. The result is a new approach to managing information that touches everything from configuration files to web sites. After two chapters on XML basics, including XPath, XSL, DTDs, and XML Schema, the rest of the book focuses on using XML from your Java applications. This third edition of Java and XML covers all major Java XML processing libraries, including full coverage of the SAX, DOM, StAX, JDOM, and dom4j APIs as well as the latest version of the Java API for XML Processing (JAXP) and Java Architecture for XML Binding (JAXB). The chapters on web technology have been entirely rewritten to focus on the today’s most relevant topics: syndicating content with RSS and creating Web 2.0 applications. You’ll learn how to create, read, and modify RSS feeds for syndicated content and use XML to power the next generation of websites with Ajax and Adobe Flash. Topics include: The basics of XML, including DTDs, namespaces, XML Schema, XPath, and Transformations The SAX API, including all handlers, filters, and writers The DOM API, including DOM Level 2, Level 3, and the DOM HTML module The JDOM API, including the core and a look at XPath support The StAX API, including StAX factories, producing documents and XMLPull Data Binding with JAXB, using the new JAXB 2.0 annotations Web syndication and podcasting with RSS XML on the Presentation Layer, paying attention to Ajax and Flash applications If you are developing with Java and need to use XML, or think that you will be in the future; if you’re involved in the new peer-to-peer movement, messaging, or web services; or if you’re developing software for electronic commerce, Java and XML will be an indispensable companion.
Java and XML Solutions to Real World Problems 3rd Table of contents:
1. Introduction
XML 1.0
The Root Element
Elements
Attributes
Namespaces
Entity References
Unparsed Data
XML 1.1
XML Transformations
XSL
XSL and trees
Formatting objects
XSLT
XPath
Template matching
Looping
Performing a transform
And More…
2. Constraints
DTDs
DTD Semantics
Elements
Attributes
Entities
Generating DTDs from XML Instance Documents
Validating XML Against a DTD
XML Schema
XML Schema Definitions
Elements and attributes
Simple types
Extending base types
Generating XML Schemas from Instance Documents
Generating XML Schemas from a DTD
Validating XML Against an XML Schema
Referencing a schema for nonnamespaced documents
Referencing a schema for namespaced documents
Validating against a schema
RELAX NG
Constraining XML with RELAX NG
Elements
Cardinality and recurrence
Attributes
Data types
Generating RELAX NG from an XML Instance
Converting DTDs to RELAX NG Schemas
Converting XML Schemas to RELAX NG Schemas
Validating XML Against a RELAX NG Schema
3. SAX
Setting Up SAX
Callbacks and Event-Based Programming
The SAX API
SAX Parsing Setup
Parsing with SAX
Instantiating a Reader
Parsing the Document
Using InputSource for input
Not much going on…
Content Handlers
The Document Locator
The Beginning and the End of a Document
Processing Instructions
Namespace Callbacks
Element Callbacks
Element Data
Sequencing mixups
Whitespace
Ignorable Whitespace
Entities
The Results
Error Handlers
Warnings
Nonfatal Errors
Fatal Errors
Breaking the Data
4. Advanced SAX
Properties and Features
Setting Properties and Features
Error Handling
Resolving Entities
Notations and Unparsed Entities
The DefaultHandler Class
Extension Interfaces
LexicalHandler
DeclHandler
Attributes2, Locator2, and EntityResolver2
Filters and Writers
XMLFilters
XMLWriter
5. DOM
The Document Object Model
DOM Levels and Modules
DOM Concepts
When SAX Sucks
Serialization
Getting a DOM Parser
The DOM Document Object
Serializer Preliminaries
Working with Nodes
Document nodes
Accessing the XML declaration
Element nodes
Text and CDATA nodes
Comment nodes
Processing instruction nodes
DocumentType nodes
Entity Reference nodes
The Results
Modifying and Creating XML
Setting Up an Input Servlet
Creating a New DOM Tree
Bootstrapping with DOM Level 3
Modifying a DOM Tree
Traversing a DOM Tree
Namespaces
6. DOM Modules
Checking for Module Support
Requesting Feature Support in DOM Level 3
DOM Level 2 Modules
Traversal
Selecting nodes
Walking filtered DOM trees
Range
Events, Views, and Style
Events
Views
Style
HTML
DOM Level 3 Modules
Load and Save
Reading XML documents
Writing XML documents
Validation
Node types supporting validation
Enforcing validity as you work
Checking for valid operations
Checking for state validity
7. JAXP
More Than an API
XML Parsing and Validation
XSL Processing
XPath
Parsing XML
Reading XML with SAX
Creating a parser factory
Configuring the factory
Obtaining a parser
Parsing with JAXP and SAX
Accessing XMLReader directly
From SAXParserFactory to DOMBuilderFactory
DOM factory configuration options
Changing the Parser Implementation
Processing XSL
Basic Transformations
Creating a transformer
The Identity Transformation
Caching Transformation Instructions
Changing the Processor Implementation
XPath
Creating an XPath Instance
XPath Examples
Namespaces in XPath
XPath Variables
XPath Functions
XML Validation
Creating a SchemaFactory
Representing a Constraint Model in Java
Validating XML
Fixing errors as they occur
Using ValidatorHandler to customize validation processing
A Big Fat Caveat About JAXP Validation
8. Pull Parsing With StAX
StAX Basics
StAX Event Types
Obtaining a StAX Implementation
StAX Factories
Parsing with StAX
Creating a Reader
XMLStreamReader
The START_DOCUMENT event
Parsing the rest of the document
Getting character data
Whitespace handling
Two more events
XMLEventReader
XMLEventReader advantages
Other Traversal Options
nextTag()
require()
peek()
StAX Filters
Document Output with StAX
XMLStreamWriter
Namespace support
XMLEventWriter
Factory Properties
Boolean Properties of XMLInputFactory
Object Properties of XMLInputFactory
XMLResolver
XMLReporter
XMLEventAllocator
XMLOutputFactory
Common Issues with StAX
XmlPull
9. JDOM
The Basics
Java Collections Support
Concrete Classes and Factories
Useful Return Values
Input and Output
The JDOM Distribution
PropsToXML
Java Properties Files
Converting to XML
Creating XML with JDOM
Outputting XML with JDOM
The Format class
Other uses of XMLOutputter
XMLProperties
Storing XML
Loading XML
Taking a Test Drive
Backtracking
More JDOM Classes
The Namespace Class
XSL Transformations with JDOM
XPath and JDOM
JDOM Filters
ElementFilter
ContentFilter
NegateFilter
OrFilter and AndFilter
The EntityRef Class
JDOM and Factories
Creating a Factory
Building with Custom Classes
UncheckedJDOMFactory
Common Issues with JDOM
What Parser Am I Using?
JDOM Isn’t DOM
Null Return Values
Nodes Have Only One Parent
More on Subclassing
Creating Invalid XML
10. dom4j
Overview
Core dom4j
Factories
dom4j Features
XPath support
Support for Visitor Pattern
Object-orientated transformation API
The dom4j Distribution
Reading and Writing with dom4j
Parsing a Document
Creating a Document Object
Namespaces and qualified names
Document Output
Formatting options
Outputting to other APIs
Document Traversal
Iterator, Lists, and Index-Based Access
XPath
Using the Visitor Pattern
Transformations
TrAX
Rule-Based Transformations
Special-Purpose Factories
DOMDocumentFactory
IndexedDocumentFactory
BeanDocumentFactory
11. Data Binding with JAXB
Data Binding Basics
Data Binding and Schemas
When to (and When Not to) Use Data Binding
Introducing JAXB
JAXB 1.0
JAXB 2.0
JAXB Reference Implementations
Java WSDP
Downloading Java WSDP
Downloading JAXB 2.0 reference implementation
Contents
Using JAXB
JAXBContext
Compiling a Schema
Compiling with xjc
JAXB 1.0-generated files
JAXB 2.0-generated files
JAXB Annotations
Class-level annotations
XmlRootElement
XmlAccessorType
XmlType
Field-level annotations
XmlElement
XmlAttribute
Package-level annotations
Schema generation
Marshalling
Bidirectional DOM support
Marshaller properties
Unmarshalling
Unmarshall-time validation
Unmarshaller properties
Validation
Validation events
Schema Compilation Customization
Inline declarations
External declaration
Binding declarations
JAXB Callbacks
Class-defined callbacks
External listener
Other Binding Frameworks
XMLBeans
Castor
12. Content Syndication with RSS
What Is RSS?
RSS Variants
RSS Modules
Dublin Core
Syndication
Content
CommentAPI
iTunes
Atom
Creating an RSS Feed
Introducing ROME
ROME data models
Outputting a ROME feed
Creating a Feed with ROME
Reading an RSS Feed
Feed Input with ROME
Building a Simple Aggregator
Modules with ROME
Creating a Podcast RSS Feed
iTunes categories
Creating a ROME Module
The ICBM module
13. XML As Presentation
XML and the Model-View-Controller Pattern
XML in MVC Web Applications
Transforming to HTML with JSP
JSTL XML Tags
Using XSLT
Performing Client-Side Transformations
Using processing instructions
Transforming with JavaScript
Performing Server-Side Transformations
Transforming in a filter
Transforming with JSTL
Ajax
XMLHttpRequest
Using DOM with Ajax
Using XSLT with Ajax
Posting XML to the Server
Creating an XML document in JavaScript
Submitting the XML document
Flash
ActionScript
Flex
XML in ActionScript 3.0
E4X
XML data providers
Sending and loading XML
Using Flash XML sockets
Cross-Domain Access
14. Looking Forward
XML Appliances
XML Databases
XQuery
Fast Infoset
And Many More…
1. SAX Features and Properties
Core Features
External General Entity Processing
External Parameter Entity Processing
Standalone
Parameter Entity Reporting
Namespace Processing
Namespace Prefix Reporting
Absolute URI Declaration Resolution
String Interning
Unicode Normalization Checking
Attributes2 Usage
Locator2 Usage
EntityResolver2 Usage
Validation
Report Namespace on xmlns Attributes
XML 1.1 Support
Core Properties
Declaration Handler
Document Version
DOM Node
Lexical Handler
Literal (XML) String
People also search for :Java and XML Solutions to Real World Problems 3rd
java & xml
java and xml
java and xml compiler
java and xml in android
java and xml pdf