Book description
What is XML? XML, or eXtensible Markup
Language, is a specification for storing information. It is also a
specification for describing the structure of that information. And
while XML is a markup language (just like HTML), XML has no tags of
its own. It allows the person writing the XML to create whatever
tags they need. The only condition is that these newly created tags
adhere to the rules of the XML specification.
In the seven years since the first edition of “XML: Visual
QuickStart Guide” was published, XML has taken its place next
to HTML as a foundational language on the Internet. XML has become
a very popular method for storing data and the most popular method
for transmitting data between all sorts of systems and
applications. The reason being, where HTML was designed to display
information, XML was designed to manage it.
This book begins by showing you the basics of the XML language.
Then, by building on that knowledge, additional and supporting
languages and systems will be discussed. To get the most out of
this book, you should be somewhat familiar with HTML, although you
don’t need to be an expert coder by any stretch. No other
previous knowledge is required.
“XML: Visual QuickStart Guide, 2nd Edition” is divided
into seven parts. Each part contains one or more chapters with
step-by-step instructions that explain how to perform XML-related
tasks. Wherever possible, examples of the concepts being discussed
are displayed, and the parts of the examples on which to focus are
highlighted.
The order of the book is intentionally designed to be an
introduction to the fundamentals of XML, followed by discussions of
related XML technologies.
• In Part 1 of the book,
you will learn how to create an XML document. It’s relatively
straightforward, and even more so if you know a little HTML.
• Part 2 focuses on XSL,
which is a set of languages designed to transform an XML document
into something else: an HTML file, a PDF document, or another XML
document. Remember, XML is designed to store and transport data,
not display it.
• Parts 3 and 4 of the
book discuss DTD and XML Schema, languages designed to define the
structure of an XML document. In conjunction with XML Namespaces
(Part 5), you can guarantee that XML documents conform to a
pre-defined structure, whether created by you or by someone
else.
• Part 6, Developments
and Trends, details some of the up-and-coming XML-related
languages, as well as a few new versions of existing
languages.
• Finally, Part 7
identifies some well-known uses of XML in the world today; some of
which you may be surprised to learn.
This beginner’s guide to XML is broken down as follows:
• Introduction
• Chapter 1:
Writing XML
• Part 2:
XSL
• Chapter 2:
XSLT
• Chapter 3: XPath
Patterns and Expressions
• Chapter 4: XPath
Functions
• Chapter 5:
XSL-FO
• Part 3:
DTD
• Chapter 6:
Creating a DTD
• Chapter 7:
Entities and Notations in DTDs
• Chapter 8:
Validation and Using DTDs
• Part 4: XML
Schema
• Chapter 9: XML
Schema Basics
• Chapter 10:
Defining Simple Types
• Chapter 11:
Defining Complex Types
• Part 5:
Namespaces
• Chapter 12: XML
Namespaces
• Chapter 13:
Using XML Namespaces
• Part 6: Recent
W3C Recommendations
• Chapter 14: XSLT
2.0
• Chapter 15:
XPath 2.0
• Chapter 16:
XQuery 1.0
• Part 7: XML in
Practice
• Chapter 17:
Ajax, RSS, SOAP and More
Table of contents
- Copyright
- Foreword by Elizabeth Castro
- About the Author
- Thank You
- Image Copyrights
- Introduction
-
1. XML
- 1. Writing XML
-
2. XSL
- 2. XSLT
- 3. XPath Patterns and Expressions
- 4. XPath Functions
- 5. XSL-FO
-
3. DTD
-
6. Creating a DTD
- Working with DTDs
- Defining an Element That Contains Text
- Defining an Empty Element
- Defining an Element That Contains a Child
- Defining an Element That Contains Children
- Defining How Many Occurrences
- Defining Choices
- Defining an Element That Contains Anything
- About Attributes
- Defining Attributes
- Defining Default Values
- Defining Attributes with Choices
- Defining Attributes with Unique Values
- Referencing Attributes with Unique Values
- Restricting Attributes to Valid XML Names
- 7. Entities and Notations in DTDs
- 8. Validation and Using DTDs
-
6. Creating a DTD
-
4. XML Schema
- 9. XML Schema Basics
-
10. Defining Simple Types
- Defining a Simple Type Element
- Using Date and Time Types
- Using Number Types
- Predefining an Element’s Content
- Deriving Custom Simple Types
- Deriving Named Custom Types
- Specifying a Range of Acceptable Values
- Specifying a Set of Acceptable Values
- Limiting the Length of an Element
- Specifying a Pattern for an Element
- Limiting a Number’s Digits
- Deriving a List Type
- Deriving a Union Type
-
11. Defining Complex Types
- Complex Type Basics
- Deriving Anonymous Complex Types
- Deriving Named Complex Types
- Defining Complex Types That Contain Child Elements
- Requiring Child Elements to Appear in Sequence
- Allowing Child Elements to Appear in Any Order
- Creating a Set of Choices
- Defining Elements to Contain Only Text
- Defining Empty Elements
- Defining Elements with Mixed Content
- Deriving Complex Types from Existing Complex Types
- Referencing Globally Defined Elements
- Controlling How Many
- Defining Named Model Groups
- Referencing a Named Model Group
- Defining Attributes
- Requiring an Attribute
- Predefining an Attribute’s Content
- Defining Attribute Groups
- Referencing Attribute Groups
- Local and Global Definitions
-
5. Namespaces
- 12. XML Namespaces
-
13. Using XML Namespaces
- Populating an XML Namespace
- XML Schemas, XML Documents, and Namespaces
- Referencing XML Schema Components in Namespaces
- Namespaces and Validating XML
- Adding All Locally Defined Elements
- Adding Particular Locally Defined Elements
- XML Schemas in Multiple Files
- XML Schemas with Multiple Namespaces
- The Schema of Schemas as the Default
- Namespaces and DTDs
- XSLT and Namespaces
-
6. Recent W3C Recommendations
- 14. XSLT 2.0
- 15. XPath 2.0
- 16. XQuery 1.0
- 7. XML in Practice
- Appendices
Product information
- Title: XML: Visual QuickStart Guide, Second Edition
- Author(s):
- Release date: December 2008
- Publisher(s): Peachpit Press
- ISBN: 9780321602589
You might also like
book
Python One-Liners
Python One-Liners will teach you how to read and write “one-liners”: concise statements of useful functionality …
book
Learning SQL, 3rd Edition
As data floods into your company, you need to put it to work right away—and SQL …
book
Full-Stack Web Development with GraphQL and React - Second Edition
Unleash the power of GraphQL, React 17, Node, and Express to build a scalable and production-ready …
book
XPath: Navigating XML with XPath 1.0 and 2.0 Kick Start
XPath is to XML as SQL is to databases: XML applications need XPath to locate specific …