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
This is the eBook version of the printed book. If the print book includes a CD-ROM, this content is not included within the eBook version.
The authoritative XML Schema reference and tutorial!
Leverage the full power of XML Schema!
In-depth coverage of the approved W3C Recommendation
Schema design—practical and thorough
Transition help for experienced DTD developers
Authoritative! By Priscilla Walmsley—a member of the W3C XML Schema Working Group
To leverage the full power of XML, companies need shared vocabularies to base their documents and scripts upon. XML Schema makes it possible to create those shared vocabularies-and Definitive XML Schema is the authoritative guide to the standard! Written by Priscilla Walmsley, a member of the W3C working group that created XML Schema, this book explains the W3C Recommendation with unprecedented insight and clarity—and introduces practical techniques for writing schemas to support any B2B, Web service, or content processing application. Coverage includes:
How XML Schema provides a rigorous, complete standard for modeling XML document structure, content, and datatypes
Working with schemas: Schema composition, instance validation, documentation, namespaces, and more
XML Schema building blocks: elements, attributes, and types
Advanced techniques: type derivation, model groups, substitution groups, identity constraints, redefinition, and much more
An in-depth primer on effective schema design, including naming, document structure, and extensibility considerations
Transition guidance for experienced DTD developers
Definitive XML Schema brings together expert guidance for schema design, superior approaches to schema development, and the most systematic XML Schema reference on the market. Whether you're a developer, architect, or content specialist, it's the only XML Schema resource you need!
"XML Schema is an incredibly powerful-and complex-document schema language, with such new capabilities as strong typing, modularity, inheritance, and identity constraints. This book guides you through the complexity so you can confidently use that power for your own projects."
Beginning XML with C# 2008 focuses on XML and how it is used within .NET 3.5. As you’d expect of a modern application framework, .NET 3.5 has extensive support for XML in everything from data access to configuration, from raw parsing to code documentation. This book demystifies all of this. It explains the basics of XML as well as the namespaces and objects you need to know in order to work efficiently with XML. You will see clear, practical examples that illustrate best practices in action. With this book, you’ll learn everything you need to know from the basics of reading and writing XML data to using the DOM, from LINQ and SQL Server integration to SOAP and web services.
What you’ll learn
The basics of XML in .NET 3.5
Validating and transforming XML
Using XML with LINQ
Integrating with ADO.NET, SQL Server, and WCF
Configuring the .NET Framework with XML
Who is this book for?
Developers wanting to use XML in the .NET Framework
About the Apress Beginning Series
The Beginning series from Apress is the right choice to get the information you need to land that crucial entry–level job. These books will teach you a standard and important technology from the ground up because they are explicitly designed to take you from “novice to professional.” You’ll start your journey by seeing what you need to know—but without needless theory and filler. You’ll build your skill set by learning how to put together real–world projects step by step. So whether your goal is your next career challenge or a new learning opportunity, the Beginning series from Apress will take you there—it is your trusted guide through unfamiliar territory!
About this product: If you're a developer working with XML, you know there's a lot to know about XML, and the XML space is evolving almost moment by moment. But you don't need to commit every XML syntax, API, or XSLT transformation to memory; you only need to know where to find it. And if it's a detail that has to do with XML or its companion standards, you'll find it--clear, concise, useful, and well-organized--in the updated third edition of XML in a Nutshell.
With XML in a Nutshell beside your keyboard, you'll be able to: Quick-reference syntax rules and usage examples for the core XML technologies, including XML, DTDs, Xpath, XSLT, SAX, and DOM Develop an understanding of well-formed XML, DTDs, namespaces, Unicode, and W3C XML Schema Gain a working knowledge of key technologies used for narrative XML documents such as web pages, books, and articles technologies like XSLT, Xpath, Xlink, Xpointer, CSS, and XSL-FO Build data-intensive XML applications Understand the tools and APIs necessary to build data-intensive XML applications and process XML documents, including the event-based Simple API for XML (SAX2) and the tree-oriented Document Object Model (DOM)
This powerful new edition is the comprehensive XML reference. Serious users of XML will find coverage on just about everything they need, from fundamental syntax rules, to details of DTD and XML Schema creation, to XSLT transformations, to APIs used for processing XML documents. XML in a Nutshell also covers XML 1.1, as well as updates to SAX2 and DOM Level 3 coverage. If you need explanation of how a technology works, or just need to quickly find the precise syntax for a particular piece, XML in a Nutshell puts the information at your fingertips.
Simply put, XML in a Nutshell is the critical, must-have reference for any XML developer.
Offering a unique approach to learning XML, this book walks readers through the process of building a complete, functional, end-to-end XML solution
Featured case study is an online business product catalog that includes reports, data input/output, workflow, stylesheet formatting, RSS feeds, and integration with external services like Google, eBay, and Amazon
The format of presenting a problem and working through the design to come up with a solution enables readers to understand how XML markup allows a business to share data across applications internally or with partners or customers even though they might not use the same applications
Knowledge and ability to apply XML are de rigueur in today’s world, and SQL Server developers and administrators are no exception to that rule. Pro SQL Server 2008 XML is your key to unlocking the powerful XML feature set first introduced in SQL Server 2005 and since refined in SQL Server 2008. Author Michael Coles shows how to store XML using SQL Server’s built–in XML data type. Learn to query and manipulate XML data using standard technologies such as XQuery and XSLT. No SQL Server database professional can afford to be without knowledge of the XML feature set. Pro SQL Server 2008 XML delivers on the knowledge that you need to remain competitive in your career.
Shows how to store, query, and manipulate XML documents in SQL Server
Provides step–by–step examples showing best practices and advanced features
Accurately discusses how SQL Server’s XML feature set stacks up against the ISO XML standards
What you’ll learn
Store XML documents using SQL Server’s built–in XML data type.
Query those stored documents using SQL/XML and XQuery.
Manipulate and transform XML using XSLT and XPath.
Understand how SQL Server’s XML support compares to the ISO XML standards.
Create SOAP endpoints for use in web services applications.
Create primary and secondary XML indexes to improve performance of XML queries.
Who is this book for?
SQL Server SQL/T–SQL developers and .NET developers who want to take advantage of the specific server–side XML functionality available in SQL Server 2008
About the Apress Pro Series
The Apress Pro series books are practical, professional tutorials to keep you on and moving up the professional ladder.
You have gotten the job, now you need to hone your skills in these tough competitive times. The Apress Pro series expands your skills and expertise in exactly the areas you need. Master the content of a Pro book, and you will always be able to get the job done in a professional development project. Written by experts in their field, Pro series books from Apress give you the hard–won solutions to problems you will face in your professional programming career.
XML is the lingua franca of the Web. All designers and developers working in a web environment need a sound understanding of XML and its role in application development. Many software packages and organizations allow for the exchange of data using an XML format. Web services and RSS feeds are now commonplace.
For those working with Flash and Flex, a thorough understanding of XML is particularly important. XML documents are one option for the data provided to SWF applications. Flash and Flex can load, display, and modify XML content. These applications can also send XML content to other applications for updating or for use in different situations.
ActionScript 3.0 introduces some fundamental changes to the way in which Flash and Flex applications work with XML. One significant change is that XML is now a native data type. ActionScript 3.0 also introduces new classes and a different framework for working with external documents. These changes are based on the E4X ECMAScript standard, and they streamline and simplify the process for working with XML in Flash and Flex.
In this book, Sas Jacobs gives you an introduction to XML and E4X. She explores the new XML and XMLList classes and explains E4X expressions, providing examples for both Flash and Flex. In addition to explaining how to incorporate XML documents in SWF applications, Sas Jacobs shows you approaches specific to Flash and Flex and explores real-world usage. The book finishes with two case studies. In the first, you will learn how to consume and display information and images from Flickr using Flash. In the second, you will work with Adobe Kuler in Flex.
Whether you are a designer or developer, this book will help you work with XML and make the transition from ActionScript 2.0 to ActionScript 3.0. It will also provide you with an excellent grounding if you are new to Flash and Flex.
In this book, you'll learn how to:
Work with the new XML and XMLList classes in ActionScript 3.0
Build E4X expressions in ActionScript 3.0 to simplify your work flow
Work with XML content in Flash and Flex to create dynamic web applications
Consume REST and SOAP web services in Flash and Flex
As XML gains popularity, developers are looking to implement XML technologies in their line-of-business applications
This book offers readers real-world insight into XML so that they can build the best possible applications
Offers an in-depth look at XML and discusses XML tools, services (RSS, SOAP, REST, WSDL), programming (DOM, SAX, Ajax), and languages (.NET, Java, PHP)
About this product: Although Learning XML covers XML rather broadly, it nevertheless presents the key elements of the technology with enough detail to familiarize the reader with this crucial markup language. This guide is brief enough to tackle in a weekend.
Author Erik T. Ray begins with an excellent summary of XML's history as an outgrowth of SGML and HTML. He outlines very clearly the elements of markup, demystifying concepts such as attributes, entities, and namespaces with numerous clear examples. To illustrate a real-world XML application, he gives the reader a look at a document written in DocBook--a publicly available XML document type for publishing technical writings--and explains the sections of the document step by step. A more simplified version of DocBook is used later in the book to illustrate transformation--a powerful benefit of XML.
The all-important Document Type Definition (DTD) is covered in depth, but the still-unofficial alternative, XML Schema, is only briefly addressed. The author makes liberal use of graphics, tables, and code to demonstrate concepts along the way, keeping the reader engaged and on track. Ray also goes deep into some discussion of programming XML utilities with Perl.
Learning XML is a very readable introduction to XML for readers with existing knowledge of markup and Web technologies. It meets its goals very well--to deliver a broad perspective of XML and its potential. --Stephen W. Plain