
Java and XML
Description
Alles über E-Books | Antworten auf Fragen rund um E-Books, Kopierschutz und Dateiformate finden Sie in unserem Info- & Hilfebereich.
More details
Other editions
Additional editions

Content
- Intro
- Table of Contents
- Preface
- Organization
- Conventions Used in This Book
- Using Code Examples
- We'd Like Your Feedback!
- Safari® Books Online
- Acknowledgments
- Brett D. McLaughlin
- Justin Edelson
- 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...
- 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
- 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
- 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
- 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
- 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
- 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
- Reading and Writing XML with DOM
- 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
- 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
- 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
- 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
- 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 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
- Field-level annotations
- 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
- 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
- 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
- Looking Forward
- XML Appliances
- XML Databases
- XQuery
- Fast Infoset
- And Many More.
- 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
- Symbols
- A
- Index
- A
- B
- C
- D
- E
- F
- G
- H
- I
- J
- L
- M
- N
- O
- P
- Q
- R
- S
- T
- U
- V
- W
- X
- Y
- Z
System requirements
File format: ePUB
Copy protection: Adobe-DRM (Digital Rights Management)
System requirements:
- Computer (Windows; MacOS X; Linux): Install the free reader Adobe Digital Editions prior to download (see eBook Help).
- Tablet/smartphone (Android; iOS): Install the free app Adobe Digital Editions or the app PocketBook before downloading (see eBook Help).
- E-reader: Bookeen, Kobo, Pocketbook, Sony, Tolino and many more (not Kindle).
The file format ePub works well for novels and non-fiction books – i.e., „flowing” text without complex layout. On an e-reader or smartphone, line and page breaks automatically adjust to fit the small displays.
This eBook uses Adobe-DRM, a „hard” copy protection. If the necessary requirements are not met, unfortunately you will not be able to open the eBook. You will therefore need to prepare your reading hardware before downloading.
Please note: We strongly recommend that you authorise using your personal Adobe ID after installation of any reading software.
For more information, see our ebook Help page.