Buying Options
XML Hacks
Print $24.95
Add to Cart
Safari Books Online
Add to Cart
What is this?
Print £18.99
Add to Cart
What is this?
Description
This practical, roll-up-your-sleeves guide distills years of ingenious XML hacking into a complete set of tips, tricks, and tools for web developers, system administrators, and programmers who want to leverage the untapped power of XML. If you want more than the average XML user--to explore and experiment, discover clever shortcuts, and show off just a little (and have fun in the process)--this invaluable book is a must-have.
Full Description
Table of Contents
  1. Chapter 1 Looking at XML Documents

    1. Hacks #1-10

    2. Read an XML Document

    3. Display an XML Document in a Web Browser

    4. Apply Style to an XML Document with CSS

    5. Use Character and Entity References

    6. Examine XML Documents in Text Editors

    7. Explore XML Documents in Graphical Editors

    8. Choose Tools for Creating an XML Vocabulary

    9. Test XML Documents Online

    10. Test XML Documents from the Command Line

    11. Run Java Programs that Process XML

  2. Chapter 2 Creating XML Documents

    1. Hacks #11-30

    2. Edit XML Documents with <oXygen/>

    3. Edit XML Documents with Emacs and nXML

    4. Edit XML with Vim

    5. Edit XML Documents with Microsoft Word 2003

    6. Work with XML in Microsoft Excel 2003

    7. Work with XML in Microsoft Access 2003

    8. Convert Microsoft Office Files, Old or New, to XML

    9. Create an XML Document from a Text File with xmlspy

    10. Convert Text to XML with Uphill

    11. Create Well-Formed XML with Minimal Manual Tagging Using an SGML Parser

    12. Create an XML Document from a CSV File

    13. Convert an HTML Document to XHTML with HTML Tidy

    14. Transform Documents with XQuery

    15. Execute an XQuery with Saxon

    16. Include Text and Documents with Entities

    17. Include External Documents with XInclude

    18. Encode XML Documents

    19. Explore XLink and XML

    20. What's the Diff? Diff XML Documents

    21. Look at XML Documents Through the Lens of the XML Information Set

  3. Chapter 3 Transforming XML Documents

    1. Hacks #31-58

    2. Understand the Anatomy of an XSLT Stylesheet

    3. Transform an XML Document with a Command-Line Processor

    4. Transform an XML Document Within a Graphical Editor

    5. Analyze Nodes with TreeViewer

    6. Explore a Document Tree with the xmllint Shell

    7. View Documents as Tables Using Generic CSS or XSLT

    8. Generate an XSLT Identity Stylesheet with Relaxer

    9. Pretty-Print XML Using a Generic Identity Stylesheet and Xalan

    10. Create a Text File from an XML Document

    11. Convert Attributes to Elements and Elements to Attributes

    12. Convert XML to CSV

    13. Create and Process SpreadsheetML

    14. Choose Your Output Format in XSLT

    15. Transform Your iTunes Library File

    16. Generate Multiple Output Documents with XSLT 2.0

    17. Generate XML from MySQL

    18. Generate PDF Documents from XML and CSS

    19. Process XML Documents with XSL-FO and FOP

    20. Process HTML with XSLT Using TagSoup

    21. Build Results with Literal Result and Instruction Elements

    22. Write Push and Pull Stylesheets

    23. Perform Math with XSLT

    24. Transform XML Documents with grep and sed

    25. Generate SVG with XSLT

    26. Dither Scatterplots with XSLT and SVG

    27. Use Lookup Tables with XSLT to Translate FIPS Codes

    28. Grouping in XSLT 1.0 and 2.0

    29. Use EXSLT Extensions

  4. Chapter 4 XML Vocabularies

    1. Hacks #59-67

    2. Use XML Namespaces in an XML Vocabulary

    3. Create an RDDL Document

    4. Create and Validate an XHTML 1.0 Document

    5. Create Books, Technical Manuals, and Papers in XML with DocBook

    6. Create a SOAP 1.2 Document

    7. Identify Yourself with FOAF

    8. Unravel the OpenOffice File Format

    9. Render Graphics with SVG

    10. Use XForms in Your XML Documents

  5. Chapter 5 Defining XML Vocabularies with Schema Languages

    1. Hacks #68-79

    2. Validate an XML Document with a DTD

    3. Validate an XML Document with XML Schema

    4. Validate Multiple Documents Against an XML Schema at Once

    5. Check the Integrity of a W3C Schema

    6. Validate an XML Document with RELAX NG

    7. Create a DTD from an Instance

    8. Create an XML Schema Document from an Instance or DTD

    9. Create a RELAX NG Schema from an Instance

    10. Convert a RELAX NG Schema to XML Schema

    11. Use RELAX NG and Schematron Together to Validate Business Rules

    12. Use RELAX NG to Generate DTD Customizations

    13. Generate Instances Based on Schemas

  6. Chapter 6 RSS and Atom

    1. Hacks #80-90

    2. Subscribe to RSS Feeds

    3. Create an RSS 0.91 Document

    4. Create an RSS 1.0 Document

    5. Create an RSS 2.0 Document

    6. Create an Atom Document

    7. Validate RSS and Atom Documents

    8. Create RSS with XML::RSS

    9. Syndicate Content with Movable Type

    10. Post RSS Headlines on Your Site

    11. Create RSS 0.91 Feeds from Google

    12. Syndicate a List of Books from Amazon with RSS and ASP

  7. Chapter 7 Advanced XML Hacks

    1. Hacks #91-100

    2. Pipeline XML with Ant

    3. Use Elements Instead of Entities to Avoid the "amp Explosion Problem"

    4. Use Cocoon to Create a Well-Formed View of a Web Page, Then Scrape It for Data

    5. From Wiki to XML, Through SGML

    6. Create Well-Formed XML with JavaScript

    7. Inspect and Edit XML Documents with the Document Object Model

    8. Processing XML with SAX

    9. Process XML with C#

    10. Generate Code from XML

    11. Create Well-Formed XML with Genx

  1. Colophon

View Full Table of Contents
Product Details
Title:
XML Hacks
By:
Michael Fitzgerald
Publisher:
O'Reilly Media
Formats:
  • Print
  • Safari Books Online
Print Release:
July 2004
Pages:
480
Print ISBN:
978-0-596-00711-9
| ISBN 10:
0-596-00711-6
Customer Reviews
About the Author
  1. Michael Fitzgerald

    Michael Fitzgerald is a freelance writer and trainer specializing in XML and related technologies. He is the author of Building B2B Applications with XML and XSL Essentials, both published by John Wiley & Sons, and has published several articles for XML.com on the O'Reilly Network.

    View Michael Fitzgerald's full profile page.

Colophon

Our look is the result of reader comments, our own experimentation, and feedback from distribution channels. Distinctive covers complement our distinctive approach to technical topics, breathing personality and life into potentially dry subjects. The tool on the cover of XML Hacks is a socket wrench. A socket wrench (known as a key or spanner in the U.K.) consists of a shank or rod capable of being fitted with sockets of various sizes, usually with six or twelve points, for handling hex fasteners. A socket wrench is used for turning a nut or bolt head, but is distinguishable from a box wrench in that the socket is circular and can reach a fastener within a narrow or deep recess. Reg Aubry was the production editor for XML Hacks. Derek Di Matteo was the copyeditor. Emily Quill and Genevieve d'Entremont were the proofreaders and, along with Matt Hutchinson and Claire Cloutier, provided quality control. Mary Agner and James Quill provided production assistance. John Bickelhaupt wrote the index.

Hanna Dyer designed the cover of this book, based on a series design by Edie Freedman. The cover image is a stock photograph taken from the Photos.com collection. Emma Colby produced the cover layout with Quark-XPress 4.1 using Adobe's Helvetica Neue and ITC Garamond fonts.

David Futato designed the interior layout. This book was converted by Joe Wizda and Julie Hawks to FrameMaker 5.5.6 with a format conversion tool created by Erik Ray, Jason McIntosh, Neil Walls, and Mike Sierra that uses Perl and XML technologies. The text font is Linotype Birka; the heading font is Adobe Helvetica Neue Condensed; and the code font is LucasFont's TheSans Mono Condensed. The illustrations that appear in the book were produced by Robert Romano and Jessamyn Read using Macromedia Free-Hand 9 and Adobe Photoshop 6. This colophon was written by Reg Aubry.

  • Book cover of XML Hacks