| Foreword |
|
xvii | |
| About the Author |
|
xix | |
| About the Technical Reviewer |
|
xx | |
| About the Cover Image |
|
xxi | |
| Acknowledgments |
|
xxii | |
| Introduction |
|
xxiii | |
|
|
|
1 | (18) |
|
|
|
2 | (1) |
|
|
|
3 | (1) |
|
|
|
4 | (1) |
|
Visualizing complex information |
|
|
5 | (2) |
|
Simplifying the display of information |
|
|
7 | (5) |
|
Displaying content from Office 2003 for PCs |
|
|
7 | (2) |
|
Displaying content from a web service |
|
|
9 | (1) |
|
|
|
10 | (2) |
|
Separating content and presentation |
|
|
12 | (3) |
|
Specific applications for Flash |
|
|
15 | (2) |
|
|
|
15 | (2) |
|
Creating Flash applications with Flex |
|
|
17 | (1) |
|
|
|
17 | (2) |
|
|
|
19 | (38) |
|
|
|
20 | (2) |
|
|
|
21 | (1) |
|
|
|
22 | (1) |
|
|
|
22 | (6) |
|
|
|
23 | (1) |
|
|
|
24 | (2) |
|
|
|
26 | (1) |
|
|
|
26 | (1) |
|
|
|
27 | (1) |
|
|
|
28 | (1) |
|
|
|
28 | (1) |
|
|
|
28 | (4) |
|
|
|
28 | (1) |
|
|
|
29 | (1) |
|
|
|
29 | (1) |
|
Document Type Definitions |
|
|
30 | (1) |
|
|
|
30 | (1) |
|
|
|
30 | (1) |
|
|
|
30 | (1) |
|
|
|
31 | (1) |
|
|
|
32 | (2) |
|
Requirements for well-formed documents |
|
|
34 | (5) |
|
|
|
35 | (1) |
|
|
|
36 | (1) |
|
Elements must nest correctly |
|
|
36 | (1) |
|
Use quotes for attributes |
|
|
37 | (1) |
|
Documents that aren't well formed |
|
|
37 | (1) |
|
Well-formed XHTML documents |
|
|
38 | (1) |
|
Working with XML documents |
|
|
39 | (4) |
|
|
|
39 | (1) |
|
|
|
40 | (3) |
|
|
|
43 | (3) |
|
|
|
46 | (4) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
47 | (1) |
|
|
|
48 | (1) |
|
|
|
48 | (1) |
|
|
|
49 | (1) |
|
|
|
49 | (1) |
|
What can you do with XML? |
|
|
50 | (4) |
|
Storing and sharing information |
|
|
50 | (2) |
|
Querying and consuming web services |
|
|
52 | (1) |
|
Describing configuration settings |
|
|
52 | (1) |
|
Interacting with databases |
|
|
53 | (1) |
|
Interacting with Office 2003 documents |
|
|
53 | (1) |
|
Why is XML important to web developers? |
|
|
54 | (1) |
|
|
|
55 | (2) |
|
|
|
57 | (68) |
|
|
|
57 | (34) |
|
|
|
58 | (1) |
|
|
|
59 | (5) |
|
|
|
64 | (2) |
|
|
|
66 | (1) |
|
|
|
67 | (6) |
|
|
|
73 | (7) |
|
|
|
80 | (6) |
|
|
|
86 | (1) |
|
Office 2003 and data structure |
|
|
86 | (1) |
|
|
|
86 | (1) |
|
Using web services to interact with Amazon |
|
|
87 | (4) |
|
|
|
91 | (11) |
|
|
|
91 | (3) |
|
|
|
94 | (1) |
|
|
|
94 | (1) |
|
|
|
95 | (1) |
|
|
|
96 | (2) |
|
|
|
98 | (1) |
|
|
|
99 | (1) |
|
|
|
99 | (1) |
|
|
|
99 | (2) |
|
Other methods of applying transformations |
|
|
101 | (1) |
|
|
|
102 | (14) |
|
Comparing DTDs and schemas |
|
|
102 | (1) |
|
Document Type Definitions |
|
|
103 | (1) |
|
|
|
104 | (2) |
|
|
|
106 | (1) |
|
|
|
107 | (1) |
|
|
|
108 | (1) |
|
|
|
109 | (1) |
|
|
|
110 | (1) |
|
|
|
111 | (2) |
|
|
|
113 | (1) |
|
|
|
113 | (1) |
|
Creating undefined content |
|
|
114 | (1) |
|
|
|
114 | (1) |
|
|
|
114 | (1) |
|
|
|
115 | (1) |
|
|
|
116 | (6) |
|
|
|
116 | (4) |
|
|
|
120 | (1) |
|
Linking the schema with an XML document |
|
|
121 | (1) |
|
|
|
122 | (3) |
|
|
|
125 | (92) |
|
Loading an XML document into Flash |
|
|
126 | (10) |
|
|
|
126 | (1) |
|
Understanding the order of the code |
|
|
127 | (1) |
|
Understanding the onLoad function |
|
|
128 | (1) |
|
Testing if a document has been loaded |
|
|
129 | (1) |
|
Locating errors in an XML file |
|
|
130 | (4) |
|
Testing for percent loaded |
|
|
134 | (2) |
|
|
|
136 | (16) |
|
Mapping an XML document tree |
|
|
137 | (2) |
|
|
|
139 | (2) |
|
|
|
141 | (1) |
|
|
|
141 | (1) |
|
Setting a root node variable |
|
|
142 | (1) |
|
Displaying the root node name |
|
|
142 | (1) |
|
|
|
143 | (1) |
|
Working with specific child nodes |
|
|
143 | (2) |
|
Working with the childNodes collection |
|
|
145 | (2) |
|
Creating recursive functions |
|
|
147 | (1) |
|
|
|
148 | (2) |
|
|
|
150 | (1) |
|
Extracting information from attributes |
|
|
150 | (2) |
|
|
|
152 | (23) |
|
Loading dynamic XML documents |
|
|
162 | (1) |
|
|
|
162 | (13) |
|
Creating XML content within Flash |
|
|
175 | (12) |
|
|
|
176 | (2) |
|
Creating XML using methods |
|
|
178 | (1) |
|
|
|
178 | (2) |
|
|
|
180 | (2) |
|
|
|
182 | (1) |
|
Adding an XML declaration |
|
|
182 | (1) |
|
Adding a DOCTYPE declaration |
|
|
183 | (1) |
|
|
|
183 | (1) |
|
|
|
184 | (3) |
|
Modifying XML content within Flash |
|
|
187 | (10) |
|
|
|
188 | (1) |
|
|
|
188 | (1) |
|
Changing an attribute value |
|
|
189 | (1) |
|
|
|
190 | (1) |
|
Duplicating an existing node |
|
|
191 | (1) |
|
Deleting existing content |
|
|
192 | (2) |
|
|
|
194 | (3) |
|
Sending XML content from Flash |
|
|
197 | (11) |
|
|
|
197 | (3) |
|
Using the sendAndLoad method |
|
|
200 | (2) |
|
Adding custom HTTP headers |
|
|
202 | (2) |
|
|
|
204 | (4) |
|
Limits of the XML class in Flash |
|
|
208 | (2) |
|
|
|
208 | (1) |
|
|
|
209 | (1) |
|
Flash cannot update external XML documents |
|
|
209 | (1) |
|
|
|
209 | (1) |
|
Creating a cross-domain policy file |
|
|
209 | (1) |
|
|
|
210 | (1) |
|
Tips for working with XML in Flash |
|
|
210 | (2) |
|
|
|
211 | (1) |
|
|
|
211 | (1) |
|
|
|
211 | (1) |
|
Validate your XML documents |
|
|
211 | (1) |
|
Use the right tool for your dynamic content |
|
|
212 | (1) |
|
Summary of the properties, methods, and events of the XML class |
|
|
212 | (3) |
|
|
|
215 | (2) |
|
Working with XML in Word 2003 |
|
|
217 | (40) |
|
Why use Microsoft Office? |
|
|
218 | (2) |
|
Which Office packages can I use? |
|
|
219 | (1) |
|
Understanding data structures |
|
|
219 | (1) |
|
|
|
220 | (35) |
|
Opening an existing XML document |
|
|
220 | (1) |
|
Transforming the document view |
|
|
221 | (3) |
|
|
|
224 | (1) |
|
Creating XML content with Save as |
|
|
225 | (1) |
|
Understanding WordprocessingML |
|
|
226 | (1) |
|
Structuring content within Word |
|
|
227 | (1) |
|
Working with the schema library |
|
|
228 | (1) |
|
Adding a schema to the library |
|
|
229 | (1) |
|
Adding a transformation to a schema |
|
|
230 | (3) |
|
Creating a new Word XML document |
|
|
233 | (1) |
|
Attaching a schema to a Word document |
|
|
233 | (2) |
|
Adding XML tags to the document |
|
|
235 | (3) |
|
Adding placeholders for empty XML tags |
|
|
238 | (3) |
|
|
|
241 | (2) |
|
Saving a structured XML document |
|
|
243 | (2) |
|
Saving transformed XML content |
|
|
245 | (2) |
|
Editing XML content in Word |
|
|
247 | (3) |
|
|
|
250 | (5) |
|
|
|
255 | (2) |
|
Working with XML in Excel 2003 |
|
|
257 | (34) |
|
Opening an existing XML document |
|
|
258 | (14) |
|
|
|
258 | (3) |
|
|
|
261 | (1) |
|
Opening as a read-only workbook |
|
|
262 | (1) |
|
Opening with the XML Source pane |
|
|
263 | (2) |
|
Opening a document with a schema |
|
|
265 | (1) |
|
Opening a document with an attached style sheet |
|
|
265 | (1) |
|
Dealing with nonrepeating content |
|
|
266 | (1) |
|
Dealing with mixed content |
|
|
267 | (1) |
|
Dealing with complicated structures in a list |
|
|
268 | (4) |
|
Creating XML content with Save As |
|
|
272 | (2) |
|
Understanding SpreadsheetML |
|
|
274 | (1) |
|
Creating structured XML from an Excel document |
|
|
275 | (9) |
|
Creating an XML map in Excel |
|
|
275 | (2) |
|
Adding XML elements to Excel data |
|
|
277 | (2) |
|
Saving a structured XML document |
|
|
279 | (5) |
|
Editing XML content in Excel |
|
|
284 | (1) |
|
|
|
284 | (1) |
|
|
|
285 | (4) |
|
|
|
289 | (2) |
|
Working with XML in Access 2003 |
|
|
291 | (34) |
|
|
|
292 | (16) |
|
|
|
292 | (2) |
|
|
|
294 | (2) |
|
|
|
296 | (1) |
|
Creating a schema from Access |
|
|
296 | (2) |
|
Creating a style sheet from Access |
|
|
298 | (2) |
|
|
|
300 | (1) |
|
|
|
300 | (3) |
|
Applying a custom transformation |
|
|
303 | (3) |
|
|
|
306 | (2) |
|
Importing data from an external file |
|
|
308 | (8) |
|
Dealing with import errors |
|
|
310 | (2) |
|
|
|
312 | (2) |
|
Using a style sheet to import attributes |
|
|
314 | (2) |
|
|
|
316 | (6) |
|
|
|
322 | (1) |
|
|
|
323 | (2) |
|
Using the Data Components with XML |
|
|
325 | (42) |
|
Understanding data components |
|
|
325 | (2) |
|
Understanding the XMLConnector |
|
|
327 | (1) |
|
Displaying read-only XML data |
|
|
327 | (1) |
|
Displaying updatable XML data |
|
|
328 | (1) |
|
Configuring the XMLConnector |
|
|
328 | (10) |
|
Using the Component Inspector |
|
|
329 | (1) |
|
Creating a schema from an XML document |
|
|
330 | (1) |
|
Creating a schema by adding fields |
|
|
331 | (1) |
|
Understanding schema settings |
|
|
332 | (2) |
|
|
|
334 | (2) |
|
Testing for a loaded XML document |
|
|
336 | (1) |
|
Loading an XML document into Flash |
|
|
336 | (2) |
|
Binding XML data directly to UI components |
|
|
338 | (6) |
|
|
|
338 | (1) |
|
|
|
339 | (5) |
|
Using the DataSet component |
|
|
344 | (4) |
|
Binding to a DataSet component |
|
|
345 | (1) |
|
Adding an XUpdateResolver component |
|
|
346 | (2) |
|
|
|
348 | (6) |
|
|
|
354 | (9) |
|
Setting the XMLConnector properties |
|
|
355 | (1) |
|
|
|
355 | (1) |
|
Working with the XML class |
|
|
356 | (1) |
|
Binding the results to components with ActionScript |
|
|
357 | (1) |
|
Including the DataBindingClasses component |
|
|
357 | (1) |
|
|
|
358 | (1) |
|
|
|
358 | (5) |
|
Summary of the properties, methods, and events of the XMLConnector class |
|
|
363 | (2) |
|
|
|
365 | (2) |
|
Consuming Web Services with Flash |
|
|
367 | (44) |
|
Consuming REST web services |
|
|
369 | (6) |
|
|
|
370 | (1) |
|
|
|
370 | (1) |
|
Understanding an ASP.NET proxy file |
|
|
370 | (1) |
|
Consuming the XML content |
|
|
371 | (4) |
|
|
|
375 | (5) |
|
Using the WebServiceConnector with SOAP web services |
|
|
380 | (24) |
|
|
|
380 | (1) |
|
Using the WebServiceConnector |
|
|
380 | (1) |
|
Configuring the WebServiceConnector |
|
|
381 | (1) |
|
|
|
382 | (2) |
|
Triggering the web services call |
|
|
384 | (2) |
|
|
|
386 | (1) |
|
Viewing the Web Services panel |
|
|
387 | (4) |
|
Working with XML content from the WebServiceConnector |
|
|
391 | (7) |
|
The WebServiceConnector class |
|
|
398 | (1) |
|
Setting the WebServiceConnector properties |
|
|
398 | (1) |
|
Sending data to the web service |
|
|
399 | (1) |
|
|
|
399 | (4) |
|
Summary of the properties, methods, and events of the WebServiceConnector class |
|
|
403 | (1) |
|
|
|
404 | (5) |
|
Creating a WebService object |
|
|
404 | (1) |
|
Viewing the raw XML content |
|
|
405 | (1) |
|
|
|
405 | (4) |
|
|
|
409 | (2) |
|
Using the XMLSocket Class |
|
|
411 | (16) |
|
Socket server considerations |
|
|
412 | (1) |
|
What socket servers are available? |
|
|
412 | (1) |
|
Installing the Unity 2 socket server |
|
|
413 | (3) |
|
Downloading the trial version of Unity 2 |
|
|
413 | (1) |
|
Unpacking the unity files |
|
|
414 | (1) |
|
|
|
414 | (1) |
|
|
|
415 | (1) |
|
Using the XMLSocket class |
|
|
416 | (8) |
|
Creating an XMLSocket connection |
|
|
417 | (2) |
|
|
|
419 | (1) |
|
|
|
420 | (1) |
|
|
|
420 | (4) |
|
Summary of the methods and event handlers of the XMLSocket class |
|
|
424 | (1) |
|
|
|
425 | (2) |
|
Which XML Option Is Best for Me? |
|
|
427 | (12) |
|
|
|
428 | (4) |
|
Is response speed an issue? |
|
|
428 | (1) |
|
Where is the data stored? |
|
|
429 | (1) |
|
|
|
429 | (1) |
|
|
|
429 | (1) |
|
|
|
430 | (1) |
|
|
|
430 | (1) |
|
How will the data be maintained? |
|
|
430 | (1) |
|
Do you need server-side interaction? |
|
|
430 | (1) |
|
|
|
431 | (1) |
|
How should you include the XML content in Flash? |
|
|
432 | (4) |
|
|
|
432 | (1) |
|
|
|
432 | (1) |
|
Using the XMLConnector, WebServiceConnector, and Web Service classes |
|
|
432 | (1) |
|
Using the XMLSocket class |
|
|
433 | (1) |
|
|
|
433 | (1) |
|
Do you need real-time interaction? |
|
|
433 | (1) |
|
Is the information time sensitive? |
|
|
433 | (1) |
|
Which version of Flash do you own? |
|
|
434 | (1) |
|
Which Flash players are you targeting? |
|
|
434 | (1) |
|
Do you prefer to work visually? |
|
|
434 | (1) |
|
|
|
434 | (2) |
|
|
|
436 | (3) |
| Appendix: Useful Online Resources |
|
439 | (6) |
| Index |
|
445 | |