|
|
1 | (10) |
|
|
1 | (2) |
|
|
3 | (1) |
|
|
3 | (1) |
|
|
4 | (1) |
|
|
5 | (6) |
|
|
11 | (36) |
|
|
11 | (1) |
|
|
12 | (9) |
|
|
12 | (8) |
|
|
20 | (1) |
|
|
21 | (1) |
|
|
21 | (4) |
|
|
22 | (1) |
|
Assignment, Increment, and Decrement Operators |
|
|
22 | (1) |
|
|
23 | (1) |
|
|
23 | (1) |
|
|
24 | (1) |
|
|
25 | (1) |
|
|
25 | (1) |
|
|
25 | (4) |
|
|
26 | (1) |
|
|
27 | (2) |
|
|
29 | (3) |
|
|
30 | (1) |
|
|
31 | (1) |
|
|
32 | (1) |
|
|
32 | (8) |
|
Procedural vs. Object-Oriented Programs |
|
|
33 | (1) |
|
|
34 | (6) |
|
File and Directory Access |
|
|
40 | (4) |
|
|
44 | (3) |
|
|
47 | (42) |
|
|
47 | (1) |
|
|
48 | (1) |
|
|
49 | (1) |
|
|
50 | (9) |
|
|
50 | (9) |
|
Reviewing the XML Structure of a Document |
|
|
59 | (2) |
|
|
59 | (1) |
|
|
60 | (1) |
|
Summary of the XML 1.0 Specification |
|
|
61 | (1) |
|
|
62 | (1) |
|
|
62 | (1) |
|
|
62 | (1) |
|
|
63 | (22) |
|
|
63 | (12) |
|
|
75 | (2) |
|
|
77 | (1) |
|
|
78 | (7) |
|
|
85 | (2) |
|
|
87 | (2) |
|
|
89 | (40) |
|
Functional Classification of XML Derivatives |
|
|
90 | (1) |
|
Common Patterns for XML Processing |
|
|
90 | (2) |
|
|
92 | (7) |
|
|
92 | (1) |
|
|
93 | (2) |
|
|
95 | (1) |
|
|
96 | (3) |
|
Presentation Vocabularies |
|
|
99 | (9) |
|
|
99 | (2) |
|
|
101 | (2) |
|
|
103 | (3) |
|
|
106 | (1) |
|
|
106 | (2) |
|
|
108 | (6) |
|
|
108 | (2) |
|
|
110 | (4) |
|
|
114 | (4) |
|
|
114 | (2) |
|
|
116 | (2) |
|
|
118 | (5) |
|
|
118 | (2) |
|
|
120 | (3) |
|
|
123 | (3) |
|
|
123 | (1) |
|
|
124 | (2) |
|
|
126 | (3) |
|
|
129 | (54) |
|
|
129 | (2) |
|
|
130 | (1) |
|
|
131 | (1) |
|
|
131 | (4) |
|
|
133 | (1) |
|
|
134 | (1) |
|
|
135 | (21) |
|
Installing Expat on Windows and UNIX |
|
|
135 | (1) |
|
Parsing an XML Document with Expat |
|
|
136 | (1) |
|
|
137 | (8) |
|
|
145 | (5) |
|
Additional Expat Functions |
|
|
150 | (6) |
|
An Object-Oriented Approach |
|
|
156 | (17) |
|
|
157 | (2) |
|
|
159 | (1) |
|
|
160 | (12) |
|
Additional SaxParser Methods |
|
|
172 | (1) |
|
|
173 | (8) |
|
|
173 | (4) |
|
Non Well-Formed XML Content |
|
|
177 | (3) |
|
|
180 | (1) |
|
|
181 | (2) |
|
|
183 | (64) |
|
What is the Document Object Model (DOM)? |
|
|
183 | (6) |
|
Advantages and Disadvantages |
|
|
186 | (2) |
|
|
188 | (1) |
|
|
189 | (3) |
|
Installing DOM On Windows |
|
|
189 | (1) |
|
|
190 | (2) |
|
|
192 | (32) |
|
|
193 | (2) |
|
Tree Construction Methods |
|
|
195 | (3) |
|
|
198 | (7) |
|
|
205 | (16) |
|
|
221 | (3) |
|
|
224 | (5) |
|
|
229 | (7) |
|
|
236 | (3) |
|
|
239 | (6) |
|
Incomplete DOM Level 1 and Level 2 Standard |
|
|
239 | (1) |
|
|
240 | (4) |
|
Object-Oriented Capability |
|
|
244 | (1) |
|
|
245 | (2) |
|
|
247 | (36) |
|
|
248 | (1) |
|
|
249 | (6) |
|
|
250 | (1) |
|
|
251 | (2) |
|
The XPath Representation of a Document |
|
|
253 | (2) |
|
|
255 | (4) |
|
Writing XPath Expressions |
|
|
255 | (1) |
|
|
255 | (1) |
|
|
256 | (1) |
|
|
257 | (1) |
|
Selecting Processing Instructions |
|
|
257 | (1) |
|
|
257 | (1) |
|
|
257 | (1) |
|
|
258 | (1) |
|
|
259 | (1) |
|
|
259 | (5) |
|
|
264 | (10) |
|
|
265 | (1) |
|
|
266 | (3) |
|
Applying a Function to an XPath Expression |
|
|
269 | (1) |
|
|
270 | (4) |
|
|
274 | (6) |
|
Using XPath from the DOM Extension |
|
|
275 | (3) |
|
|
278 | (2) |
|
|
280 | (3) |
|
|
283 | (80) |
|
|
284 | (1) |
|
|
285 | (56) |
|
|
286 | (6) |
|
|
292 | (1) |
|
|
293 | (1) |
|
|
294 | (6) |
|
Using the XSLT PHP Extension |
|
|
300 | (2) |
|
Precedence Rules and Predefined Templates |
|
|
302 | (2) |
|
|
304 | (5) |
|
Using XPath for Calculations |
|
|
309 | (5) |
|
|
314 | (17) |
|
Creating Resultant XML Documents |
|
|
331 | (10) |
|
|
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) |
|
|
350 | (5) |
|
Multi-Tiered Applications |
|
|
350 | (1) |
|
Introduction of New Languages |
|
|
351 | (1) |
|
|
352 | (2) |
|
|
354 | (1) |
|
XSLT As a Functional Language |
|
|
355 | (3) |
|
Supporting Legacy Applications |
|
|
358 | (2) |
|
|
360 | (3) |
|
|
363 | (28) |
|
|
363 | (7) |
|
|
364 | (2) |
|
|
366 | (1) |
|
|
367 | (3) |
|
|
370 | (6) |
|
A Trimmed-Down List Revisited |
|
|
372 | (2) |
|
|
374 | (2) |
|
|
376 | (5) |
|
Using the XML Transformer Class |
|
|
377 | (4) |
|
|
381 | (7) |
|
One Last Trimmed-Down List |
|
|
381 | (2) |
|
|
383 | (5) |
|
|
388 | (3) |
|
|
391 | (48) |
|
Programming XML Applications |
|
|
392 | (1) |
|
|
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) |
|
|
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) |
|
|
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) |
|
|
431 | (1) |
|
|
431 | (1) |
|
Choosing a Querying Strategy |
|
|
431 | (1) |
|
|
431 | (6) |
|
|
432 | (3) |
|
Using DOM To Write XML Data |
|
|
435 | (1) |
|
Using SAX To Write XML Data |
|
|
436 | (1) |
|
|
437 | (2) |
|
|
439 | (24) |
|
|
440 | (2) |
|
|
440 | (2) |
|
The PEAR RSS Parser Class |
|
|
442 | (1) |
|
|
443 | (3) |
|
Multiple Sources and Cached Content |
|
|
446 | (8) |
|
A Simple RSS Generation Class |
|
|
454 | (7) |
|
|
461 | (2) |
|
|
463 | (26) |
|
|
464 | (2) |
|
|
464 | (1) |
|
|
465 | (1) |
|
|
466 | (14) |
|
|
480 | (6) |
|
|
481 | (2) |
|
|
483 | (3) |
|
|
486 | (3) |
|
|
489 | (48) |
|
Analysis of an XML Storage Solution |
|
|
489 | (1) |
|
Building our Own Storage Solution |
|
|
490 | (26) |
|
|
491 | (12) |
|
|
503 | (3) |
|
|
506 | (10) |
|
Using a Product for XML Storage |
|
|
516 | (18) |
|
|
516 | (1) |
|
|
517 | (17) |
|
|
534 | (3) |
|
|
537 | (52) |
|
|
537 | (9) |
|
|
546 | (4) |
|
|
550 | (4) |
|
|
554 | (9) |
|
|
563 | (23) |
|
Future of Web Services and PHP |
|
|
586 | (1) |
|
|
587 | (2) |
|
|
589 | (42) |
|
|
589 | (1) |
|
|
590 | (1) |
|
|
591 | (25) |
|
MIME Type, File Extensions, Prolog, DTD, Namespace, and Document Structure |
|
|
591 | (2) |
|
|
593 | (1) |
|
|
594 | (2) |
|
|
596 | (1) |
|
|
597 | (6) |
|
|
603 | (2) |
|
|
605 | (7) |
|
|
612 | (2) |
|
|
614 | (2) |
|
|
616 | (2) |
|
|
618 | (10) |
|
|
628 | (3) |
|
|
631 | (36) |
|
|
631 | (1) |
|
|
632 | (1) |
|
|
632 | (1) |
|
|
633 | (16) |
|
The Basic XML-RPC Protocol |
|
|
633 | (1) |
|
Extending the XML-RPC Protocol |
|
|
634 | (2) |
|
|
636 | (13) |
|
|
649 | (15) |
|
Using the XML-RPC Library from Usefulinc |
|
|
650 | (5) |
|
|
655 | (2) |
|
|
657 | (7) |
|
|
664 | (1) |
|
|
664 | (3) |
|
Case Study: A Calendar Server Using XML-RPC |
|
|
667 | (64) |
|
|
667 | (4) |
|
|
668 | (1) |
|
|
668 | (1) |
|
|
669 | (1) |
|
|
670 | (1) |
|
Server-Side Programming Language |
|
|
670 | (1) |
|
|
670 | (1) |
|
The Server Application (Iteration 1) |
|
|
671 | (20) |
|
|
672 | (3) |
|
|
675 | (1) |
|
|
676 | (1) |
|
|
677 | (13) |
|
|
690 | (1) |
|
|
691 | (1) |
|
|
691 | (22) |
|
|
692 | (1) |
|
|
692 | (1) |
|
Developing the Client Application |
|
|
693 | (20) |
|
|
713 | (1) |
|
|
713 | (2) |
|
New Requirements (Iteration 2) |
|
|
715 | (9) |
|
|
717 | (2) |
|
|
719 | (5) |
|
|
724 | (4) |
|
|
728 | (3) |
Appendix A: PHP4 XML Language Reference |
|
731 | (16) |
|
Common Steps When Employing XML Parser |
|
|
732 | (1) |
|
|
733 | (10) |
|
|
743 | (4) |
Appendix B: Installing PHP4 and Apache |
|
747 | (26) |
|
|
749 | (11) |
|
Installing on UNIX-Like Systems |
|
|
760 | (10) |
|
|
770 | (1) |
|
|
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) |
|
|
827 | (11) |
|
|
838 | (3) |
Appendix E: XSLT Reference |
|
841 | (38) |
|
|
841 | (32) |
|
|
873 | (6) |
Appendix F: XPath Reference |
|
879 | (20) |
|
|
880 | (4) |
|
|
884 | (2) |
|
|
886 | (13) |
Appendix G: Object-Oriented Programming |
|
899 | (20) |
|
|
900 | (17) |
|
|
900 | (1) |
|
|
900 | (1) |
|
|
901 | (1) |
|
|
902 | (1) |
|
|
903 | (1) |
|
|
904 | (13) |
|
|
917 | (2) |
Index |
|
919 | |