search for books and compare prices
Tables of Contents for Professional Php4 Xml
Chapter/Section Title
Page #
Page Count
Introduction
1
10
Introducing XML
1
2
Introducing PHP
3
1
XML and PHP
3
1
Useful Resources
4
1
Book Roadmap
5
6
PHP Fundamentals
11
36
Basic PHP Syntax
11
1
Variables
12
9
Variable Types
12
8
Assignment
20
1
Constants
21
1
Operators
21
4
Arithmetic Operators
22
1
Assignment, Increment, and Decrement Operators
22
1
Comparison Operators
23
1
Logical Operators
23
1
Bitwise Operators
24
1
String Operators
25
1
Error Handler Operator
25
1
Control Structures
25
4
Conditional Structures
26
1
Loops
27
2
Functions
29
3
User-Defined Functions
30
1
Returning Values
31
1
Variable Functions
32
1
Classes and Objects
32
8
Procedural vs. Object-Oriented Programs
33
1
Classes
34
6
File and Directory Access
40
4
Summary
44
3
XML Fundamentals
47
42
Data Representation
47
1
Meta Data
48
1
Markup Languages
49
1
XML Syntax
50
9
The XML Body
50
9
Reviewing the XML Structure of a Document
59
2
The XML Prolog
59
1
The XML Epilog
60
1
Summary of the XML 1.0 Specification
61
1
Designing XML Documents
62
1
Vocabularies
62
1
Validating XML Documents
62
1
DTDs and Schemas
63
22
DTDs
63
12
Using DTDs
75
2
The Shortcomings of DTDs
77
1
Schemas
78
7
Namespaces
85
2
Summary
87
2
XML Derivatives
89
40
Functional Classification of XML Derivatives
90
1
Common Patterns for XML Processing
90
2
Generic Derivatives
92
7
DOM
92
1
SAX
93
2
XPath
95
1
XSLT
96
3
Presentation Vocabularies
99
9
XHTML
99
2
WML
101
2
SVG
103
3
VoiceXML
106
1
XUL/XBL
106
2
The Semantic Web
108
6
RDF
108
2
RSS
110
4
XLink and XPointer
114
4
XLink
114
2
XPointer
116
2
Validating XML Documents
118
5
RELAX NG
118
2
Schematron
120
3
Web Services
123
3
XML-RPC
123
1
SOAP
124
2
Summary
126
3
SAX
129
54
Parsing XML
129
2
Types of Parsers
130
1
What Is SAX?
131
1
How Does SAX Work?
131
4
Advantages
133
1
Disadvantages
134
1
Expat
135
21
Installing Expat on Windows and UNIX
135
1
Parsing an XML Document with Expat
136
1
Expat Functions
137
8
Putting it Together
145
5
Additional Expat Functions
150
6
An Object-Oriented Approach
156
17
The eXtremePHP Framework
157
2
The SaxParser Framework
159
1
Writing the Parser
160
12
Additional SaxParser Methods
172
1
Problem Data
173
8
Handling Whitespace
173
4
Non Well-Formed XML Content
177
3
The Ampersand
180
1
Summary
181
2
DOM
183
64
What is the Document Object Model (DOM)?
183
6
Advantages and Disadvantages
186
2
SAX vs. DOM
188
1
Getting Started
189
3
Installing DOM On Windows
189
1
Installing DOM On UNIX
190
2
DOM Objects and Methods
192
32
The DOM Architecture
193
2
Tree Construction Methods
195
3
The DomDocument Class
198
7
The DomNode Class
205
16
The DomElement Class
221
3
Parsing XML Documents
224
5
Adding XML Content
229
7
Deleting XML Content
236
3
Limitations
239
6
Incomplete DOM Level 1 and Level 2 Standard
239
1
Unsound Architecture
240
4
Object-Oriented Capability
244
1
Summary
245
2
XPath
247
36
XPath Defined
248
1
How XPath Works
249
6
XPath Syntax
250
1
Nodes
251
2
The XPath Representation of a Document
253
2
XPath Expressions
255
4
Writing XPath Expressions
255
1
Location Paths
255
1
Selecting Elements
256
1
Selecting Text
257
1
Selecting Processing Instructions
257
1
Selecting Comments
257
1
Selecting Attributes
257
1
Wildcards
258
1
Extended Syntax
259
1
Axes
259
5
Predicates
264
10
Attributes in Predicates
265
1
XPath Functions
266
3
Applying a Function to an XPath Expression
269
1
Useful Predicates
270
4
Using XPath from PHP
274
6
Using XPath from the DOM Extension
275
3
Using XPath from XSLT
278
2
Summary
280
3
XSL
283
80
Transforming vs. Parsing
284
1
XSL
285
56
The XSLT Processor
286
6
The XSL Language
292
1
Creating XSL Documents
293
1
A Simple Example
294
6
Using the XSLT PHP Extension
300
2
Precedence Rules and Predefined Templates
302
2
Named Templates
304
5
Using XPath for Calculations
309
5
XSL Instructions
314
17
Creating Resultant XML Documents
331
10
Sablotron Functions
341
9
Output the Target Document to a File
341
1
Using Variables Instead of Files
342
2
An Object-Oriented Approach
344
5
Ensuring Forward Compatibility
349
1
Useful XSL Applications
350
5
Multi-Tiered Applications
350
1
Introduction of New Languages
351
1
Document Conversion
352
2
Publishing
354
1
XSLT As a Functional Language
355
3
Supporting Legacy Applications
358
2
Summary
360
3
XML Classes
363
28
Generic XML Parser Class
363
7
Parsing the File
364
2
Displaying the Results
366
1
A Trimmed Down Bug List
367
3
XMLFile
370
6
A Trimmed-Down List Revisited
372
2
A Simplified XML File
374
2
XML Transformer
376
5
Using the XML Transformer Class
377
4
XPath with phpXML
381
7
One Last Trimmed-Down List
381
2
A Searchable Bug List
383
5
Summary
388
3
Putting It Together
391
48
Programming XML Applications
392
1
Transforming XML
393
18
Using DOM for XML Transforming
395
1
Using XSLT for XML Transforming
395
7
Using SAX for XML Transforming
402
8
Choosing a Transformation Strategy
410
1
Abstracting XML Transformations
411
1
Modifying XML
411
9
Using DOM To Modify XML Files
412
3
Using SAX To Modify a Document
415
3
Using XSLT To Modify a Document
418
2
Abstracting the Modifications To an XML Document
420
1
Creating Objects from XML Files
420
4
Using SAX To Create PHP Objects from XML
422
2
Querying XML
424
7
Using DOM To Query an XML Document
425
1
Using XPath To Query a Document
426
2
Using XSLT To Query a Document
428
1
Using SAX To Query a Document
429
1
Other Querying Alternatives
430
1
Abstraction Again
431
1
Caching Strikes Back
431
1
Choosing a Querying Strategy
431
1
Writing XML
431
6
Manual Writing
432
3
Using DOM To Write XML Data
435
1
Using SAX To Write XML Data
436
1
Summary
437
2
Syndicated Content
439
24
RSS
440
2
RSS Structure
440
2
The PEAR RSS Parser Class
442
1
A Simple RSS Application
443
3
Multiple Sources and Cached Content
446
8
A Simple RSS Generation Class
454
7
Summary
461
2
XML to DB, DB to XML
463
26
Basic XML Storage
464
2
Flat Files
464
1
Simple Database Storage
465
1
XML to Database
466
14
Database to XML
480
6
Non-Nested Query
481
2
A Nested Query
483
3
Summary
486
3
XML Storage
489
48
Analysis of an XML Storage Solution
489
1
Building our Own Storage Solution
490
26
Storing XML Documents
491
12
Organizing XML Documents
503
3
APIs
506
10
Using a Product for XML Storage
516
18
Relational Databases
516
1
Native XML Databases
517
17
Summary
534
3
PHP As a Client
537
52
WDDX
537
9
PHP and TCP/IP
546
4
Jabber
550
4
PHP and Web Services
554
9
SOAP
563
23
Future of Web Services and PHP
586
1
Summary
587
2
SVG
589
42
SVG
589
1
SVG User Agents
590
1
SVG Basics
591
25
MIME Type, File Extensions, Prolog, DTD, Namespace, and Document Structure
591
2
Embedding SVG in HTML
593
1
Errors
594
2
Container Elements
596
1
Coordinate System
597
6
Style
603
2
Creating Shapes
605
7
Creating Basic Text
612
2
Basic Animation
614
2
PHP SVG Class
616
2
A Bar Chart Using SVG
618
10
Summary
628
3
XML-RPC
631
36
What Are RPCs?
631
1
What Is XML-RPC?
632
1
What Are Web Services?
632
1
The XML-RPC Protocol
633
16
The Basic XML-RPC Protocol
633
1
Extending the XML-RPC Protocol
634
2
The Protocol Details
636
13
XML-RPC in PHP
649
15
Using the XML-RPC Library from Usefulinc
650
5
The Library Details
655
2
Service Descriptions
657
7
Resources
664
1
Summary
664
3
Case Study: A Calendar Server Using XML-RPC
667
64
The Calendar Application
667
4
Methodology
668
1
Technologies To Be Used
668
1
Communication Protocol
669
1
Web Server Application
670
1
Server-Side Programming Language
670
1
Storage
670
1
The Server Application (Iteration 1)
671
20
The Database
672
3
User Management
675
1
Initializing the Server
676
1
Server Functions
677
13
Server Exceptions
690
1
Installing the Server
691
1
The Client Application
691
22
Interface Design
692
1
Application Design
692
1
Developing the Client Application
693
20
Installing the Client
713
1
The Command-Line Client
713
2
New Requirements (Iteration 2)
715
9
Modifying the Server
717
2
Modifying the Web Client
719
5
Future Requirements
724
4
Summary
728
3
Appendix A: PHP4 XML Language Reference
731
16
Common Steps When Employing XML Parser
732
1
The PHP XML API
733
10
XML Parsing Error Codes
743
4
Appendix B: Installing PHP4 and Apache
747
26
Windows Installation
749
11
Installing on UNIX-Like Systems
760
10
Further Resources
770
1
Summary
771
2
Appendix C: SAX 2.0: The Simple API for XML
773
54
Class and Interface Hierarchies
774
53
Appendix D: The XML DOM (Document Object Model)
827
14
Fundamental Interfaces
827
11
Extended Interfaces
838
3
Appendix E: XSLT Reference
841
38
Elements
841
32
Functions
873
6
Appendix F: XPath Reference
879
20
Axes
880
4
Node Tests
884
2
Functions
886
13
Appendix G: Object-Oriented Programming
899
20
Objects and Classes
900
17
Members
900
1
Methods
900
1
Constructor
901
1
Instances
902
1
Calling Instance Methods
903
1
Inheritance
904
13
Summary
917
2
Index
919