Sign in
|
Register
|
Mobile
Home
Browse
About us
Help/FAQ
Advanced search
Home
>
Browse
>
Beginner's Guide
>
XML: A Beginner's Guide
CITATION
Holzner, Steven
.
XML: A Beginner's Guide
.
US
: McGraw-Hill Osborne Media, 2008.
Add to Favorites
Email to a Friend
Download Citation
XML: A Beginner's Guide
Authors:
Steven Holzner
Published:
December 2008
eISBN:
9780071606271 0071606270
|
ISBN:
9780071606264
Open eBook
Book Description
Table of Contents
Contents
Acknowledgments
Introduction
1 Creating Well-Formed XML
All about Markup Languages
Using HTML
Using XML
Formatting XML
Extracting Data from XML
Applications: XML Dialects
Well-Formed and Valid XML Documents
Writing a Well-Formed XML Document
Start with an XML Declaration
Putting in a Prolog
Adding Comments
Handling Processing Instructions
Checking Syntax with a DTD
Storing Your Data in XML Elements
Adding XML Attributes
Use Only the Predefined Entity References
CDATA Sections
2 Creating Valid XML Documents: Document Type Definitions
Validating XML Documents
Creating a DTD
Declaring Elements in DTDs
Content Model: ANY
Content Model: Child Elements
Content Model: Text
Content Model: Multiple Children
Content Model: EMPTY
Choices in DTDs
Handling Attributes in DTDs
Setting Default Values
Setting Attribute Types
External DTDs
Divide and Conquer: Namespaces
3 Creating Valid XML Documents: XML Schemas
Creating an XML Schema
Declaring Elements
Declaring Simple Elements
Declaring Complex Elements
Specifying the Minimum and Maximum Number of Times an Element Can Occur
Declaring Anonymous Types
Declaring Elements by Reference
4 XML Schemas: Creating Your Own Types
Declaring Attributes
Specifying Attribute Use
Restricting Simple Types
Making Selections with XML Schema Choices
Creating Empty Elements
Creating Element Groups
Creating Attribute Groups
Creating All Groups
Schemas and Namespaces
Annotating Schemas
5 Formatting XML with Cascading Style Sheets
Using The Jungle Book
Introducing CSS
Connecting a Style Sheet to an XML Document
Understanding Style Sheets
Creating Style Sheet Selectors
Selecting by Element
Grouping Elements
Selecting by Pseudo-Element
Selecting by ID
Selecting by Class
Using Inline Styles
Using CSS Styles
Creating Block Elements
Formatting Text
Styling with Colors
Styling with Margins, Indentations, and Alignments
Styling into Lists
Styling with Borders
6 Finding Your Way with XSLT and XPath
Creating a Sample XML Document
First Formatting of the Sample XML Document
Creating Our First XSLT Style Sheet: Replacing the Entire Document
Applying XSLT Templates
Replacing <friend> Elements
Applying New Templates
Extracting the Value of <name> Elements
Using <xsl:value-of>
Extracting Multiple Elements Values
7 Formatting XML with XSL Transformations
Working with the Match Attribute
Matching the Root Node
Matching Element Nodes
Matching Child Element Nodes
Matching Attributes
Matching by ID
Matching XML Comments
Matching XML Processing Instructions
Matching Either/Or Expressions
Matching with [ ]
Using XPath
XPath Axes
XPath Node Tests
XPath Predicates
Some XPath Examples
8 Extending XML with XHTML
Getting Started with XHTML
Validating XHTML
Understanding XHTML
The Differences Between HTML and XHTML
Using <html>, the Document Element
Using <head> to Create Head Sections
Using <title> to Hold the Document’s Title
Using <body> to Hold the Document’s Body
Using Headings: <h1> Through <h6>
Using Plain Text
Using <b> to Make Text Bold
Using <i> to Make Text Italic
Using <font> to Specify Text Font
Using <img> to Display Images
Creating Tables
9 XML and Data Binding
Getting Started with DSOs
Storing Data in HTML Format
Binding Data in HTML Format
Navigating from Record to Record
Binding XML Data
Using XML Data Islands
Extracting Data from DSOs Yourself
Binding XML Data into HTML Tables
Handling Nested Records
10 XML and JavaScript
Reading XML and Extracting Data from It
Creating a DOMDocument Object
Getting a Document’s Document Element
Searching for XML Elements by Name
Extracting Data from XML Attributes
Using XML Data Islands
11 XML and Java
Working with Java and XML
Creating a Document Builder Factory
Creating a Document Builder
Parsing an XML Document
Accessing XML Data That You’ve Read in
Extracting All the Data in an XML Document Yourself
Walking over XMLNodes
Handling the Root Node
Handling the Opening Tag of Element Nodes
Handling Attribute Nodes
Handling CDATA Nodes
Handling Text Nodes
Handling Processing Instruction Nodes
Handling the Closing Tag of Element Nodes
12 Ajax and XQuery
Getting Started with Ajax
Understanding ajax.html
Creating an XMLHttpRequest Object
Opening an XMLHttpRequest Object
Connecting to the Server
Displaying the Download
Making the Download Happen
Downloading Some XML
Writing ajaxxml.html
Configuring XMLHttpRequest Objects to Handle XML
Recovering the Downloaded XML
Using XQuery
Putting XQuery to Work
Using XQuery Functions
Index