XML Hacks: 100 Industrial-Strength Tips and Tools

XML Hacks: 100 Industrial-Strength Tips and Tools

by Michael Fitzgerald
XML Hacks: 100 Industrial-Strength Tips and Tools

XML Hacks: 100 Industrial-Strength Tips and Tools

by Michael Fitzgerald

eBook

$16.49  $21.99 Save 25% Current price is $16.49, Original price is $21.99. You Save 25%.

Available on Compatible NOOK devices, the free NOOK App and in My Digital Library.
WANT A NOOK?  Explore Now

Related collections and offers


Overview

Developers and system administrators alike are uncovering the true power of XML, the Extensible Markup Language that enables data to be sent over the Internet from one computer platform to another or one application to another and retain its original format. Flexible enough to be customized for applications as diverse as web sites, electronic data interchange, voice mail systems, wireless devices, web services, and more, XML is quickly becoming ubiquitous.XML Hacks is a roll-up-your-sleeves guide that distills years of ingenious XML hacking into a complete set of practical tips, tricks, and tools for web developers, system administrators, and programmers who want to go far beyond basic tutorials to leverage the untapped power of XML.With plenty of useful real-world projects that illustrate how to define, read, create, and manipulate XML documents, XML Hacks shows readers how to put XML's power to work on the Internet and within productivity applications. Each Hack in this book can be read easily in a few minutes, saving programmers and administrators countless hours of searching for the right answer. And this is an O'Reilly Hacks book, so it's not just practical, imminently useful, and time-saving. It's also fun.From Anatomy of an XML Document to Exploring SOAP Messages XML Hacks shows you how to save time and accomplish more with fewer resources. If you want much more than the average XML user--to explore and experiment, do things you didn't know you could do with XML, discover clever shortcuts, and show off just a little--this invaluable book is a must-have.


Product Details

ISBN-13: 9781449397753
Publisher: O'Reilly Media, Incorporated
Publication date: 07/27/2004
Series: Hacks
Sold by: Barnes & Noble
Format: eBook
Pages: 482
File size: 4 MB

About the Author

Michael Fitzgerald is Professor of Child Psychiatry at Trinity College Dublin. He has published over 100 papers and edited or co-edited ten books.  He specialises in Autism and ADHD.

Michael Gill is Professor of Psychiatry at Trinity College Dublin and head of the Neuropsychiatric Genetics Research Group.

Mark Bellgrove is Research Fellow in the Departments of Psychology, Psychiatry and the Institute of Neuroscience, Trinity College Dublin.  He is currently leading the first genotype/phenotype study of ADHD to be conducted in Ireland.

Table of Contents

Creditsvii
Prefacexiii
Chapter 1.Looking at XML Documents1
1.Read an XML Document1
2.Display an XML Document in a Web Browser6
3.Apply Style to an XML Document with CSS8
4.Use Character and Entity References11
5.Examine XML Documents in Text Editors14
6.Explore XML Documents in Graphical Editors17
7.Choose Tools for Creating an XML Vocabulary21
8.Test XML Documents Online25
9.Test XML Documents from the Command Line28
10.Run Java Programs that Process XML33
Chapter 2.Creating XML Documents39
11.Edit XML Documents with oXygen39
12.Edit XML Documents with Emacs and nXML41
13.Edit XML with Vim47
14.Edit XML Documents with Microsoft Word 200354
15.Work with XML in Microsoft Excel 200359
16.Work with XML in Microsoft Access 200362
17.Convert Microsoft Office Files, Old or New, to XML65
18.Create an XML Document from a Text File with xmlspy67
19.Convert Text to XML with Uphill70
20.Create Well-Formed XML with Minimal Manual Tagging Using an SGML Parser75
21.Create an XML Document from a CSV File79
22.Convert an HTML Document to XHTML with HTML Tidy82
23.Transform Documents with XQuery85
24.Execute an XQuery with Saxon90
25.Include Text and Documents with Entities94
26.Include External Documents with XInclude97
27.Encode XML Documents100
28.Explore XLink and XML105
29.What's the Diff? Diff XML Documents109
30.Look at XML Documents Through the Lens of the XML Information Set114
Chapter 3.Transforming XML Documents117
31.Understand the Anatomy of an XSLT Stylesheet117
32.Transform an XML Document with a Command-Line Processor119
33.Transform an XML Document Within a Graphical Editor125
34.Analyze Nodes with TreeViewer130
35.Explore a Document Tree with the xmllint Shell133
36.View Documents as Tables Using Generic CSS or XSLT136
37.Generate an XSLT Identity Stylesheet with Relaxer141
38.Pretty-Print XML Using a Generic Identity Stylesheet and Xalan144
39.Create a Text File from an XML Document146
40.Convert Attributes to Elements and Elements to Attributes149
41.Convert XML to CSV153
42.Create and Process SpreadsheetML156
43.Choose Your Output Format in XSLT169
44.Transform Your iTunes Library File171
45.Generate Multiple Output Documents with XSLT 2.0176
46.Generate XML from MySQL179
47.Generate PDF Documents from XML and CSS184
48.Process XML Documents with XSL-FO and FOP185
49.Process HTML with XSLT Using TagSoup190
50.Build Results with Literal Result and Instruction Elements191
51.Write Push and Pull Stylesheets196
52.Perform Math with XSLT197
53.Transform XML Documents with grep and sed200
54.Generate SVG with XSLT205
55.Dither Scatterplots with XSLT and SVG209
56.Use Lookup Tables with XSLT to Translate FIPS Codes216
57.Grouping in XSLT 1.0 and 2.0221
58.Use EXSLT Extensions228
Chapter 4.XML Vocabularies234
59.Use XML Namespaces in an XML Vocabulary234
60.Create an RDDL Document237
61.Create and Validate an XHTML 1.0 Document241
62.Create Books, Technical Manuals, and Papers in XML with DocBook244
63.Create a SOAP 1.2 Document247
64.Identify Yourself with FOAF250
65.Unravel the OpenOffice File Format258
66.Render Graphics with SVG264
67.Use XForms in Your XML Documents268
Chapter 5.Defining XML Vocabularies with Schema Languages276
68.Validate an XML Document with a DTD277
69.Validate an XML Document with XML Schema285
70.Validate Multiple Documents Against an XML Schema at Once292
71.Check the Integrity of a W3C Schema294
72.Validate an XML Document with RELAX NG297
73.Create a DTD from an Instance305
74.Create an XML Schema Document from an Instance or DTD310
75.Create a RELAX NG Schema from an Instance315
76.Convert a RELAX NG Schema to XML Schema321
77.Use RELAX NG and Schematron Together to Validate Business Rules323
78.Use RELAX NG to Generate DTD Customizations329
79.Generate Instances Based on Schemas335
Chapter 6.RSS and Atom339
80.Subscribe to RSS Feeds339
81.Create an RSS 0.91 Document343
82.Create an RSS 1.0 Document346
83.Create an RSS 2.0 Document348
84.Create an Atom Document350
85.Validate RSS and Atom Documents353
86.Create RSS with XML::RSS355
87.Syndicate Content with Movable Type360
88.Post RSS Headlines on Your Site365
89.Create RSS 0.91 Feeds from Google368
90.Syndicate a List of Books from Amazon with RSS and ASP371
Chapter 7.Advanced XML Hacks378
91.Pipeline XML with Ant378
92.Use Elements Instead of Entities to Avoid the "amp Explosion Problem"386
93.Use Cocoon to Create a Well-Formed View of a Web Page, Then Scrape It for Data390
94.From Wiki to XML, Through SGML398
95.Create Well-Formed XML with JavaScript406
96.Inspect and Edit XML Documents with the Document Object Model414
97.Processing XML with SAX421
98.Process XML with C#426
99.Generate Code from XML434
100.Create Well-Formed XML with Genx442
Index449
From the B&N Reads Blog

Customer Reviews