Building XML Applications
There are many ways to use XML within applications. The following sections go into much more detail across a variety of areas.
- Processing XML with MSXML
- XML and the Database
- XML in the .NET Framework
- XML Query
- XML Schemas
- XML Stylesheets
Processing XML with MSXML
A Beginner's Guide to the XML DOM|
This article discusses how to access and manipulate XML documents via the XML DOM implementation, as exposed by the Microsoft XML Parser.
XML and the Database
XML Indexes in SQL Server|
Use the relational query engine in SQL Server 2005 (and later) to make a single query plan for the SQL and XQuery parts of your queries, and make the implementation of XML queries fast and easy to predict and tune.
Introduction to XQuery in SQL Server |
This white paper provides an introduction to various features of XQuery implemented in SQL Server (2005 and later) such as the FLWOR statement, operators in XQuery, if-then-else construct, XML constructors, built-in XQuery functions, type casting operators, and examples of how to use each of these features. Non-supported features of XQuery in SQL Server and workarounds are described in this article. It also presents three scenarios where XQuery is useful.
XML Options in SQL Server|
Three options for handling XML data in the Visual Studio/SQL Server environment (2005 and later) are discussed, including usage scenarios and guidelines to help you choose between them.
SQLXML Managed Classes|
How to use SQLXML Managed Classes for .NET code to retrieve XML from a Microsoft SQL Server database or to generate XML on the client side, using ad hoc queries, stored procedures, annotated schemas with XPath, or XML templates.
See How Microsoft SQL Server Supports XML|
Explore the XML support built into SQL Server 2005 and later. Learn how this support integrates with the programming support in the .NET Framework V2.0, OLEDB, and SQLXML.
XML in the .NET Framework
Generating XML Documents from XML Schemas|
Use the classes in the System.XML.Schema namespace of the Microsoft .NET Framework to build a tool that generates sample XML documents conforming to a given schema.
The XML Diff and Patch GUI Tool|
Learn how to use the XmlDiff class in combination with Winforms to build an application that compares two XML files and shows these differences as an HTML document.
XmlCsvReader is a sample implementation of an XmlReader that parses tab-delimited .csv files and presents their contents as a stream of XML elements; XmlReader is the Microsoft .NET Framework base class for all managed stream-level XML processing.
Using the XSD Inference Utility|
Discusses the Microsoft XSD Inference utility, which simplifies the task of writing XML Schema by automatically generating schemas from instance documents. The inferred schema can then be refined with related document instances so that it can be used to describe and validate a whole class of XML documents.
Learn how the .NET Framework's classes and associated tools for manipulating XML data can be woven together to form an impressive array of options for constructing XML processing solutions.
This section has information about XML query languages such as XPath and XQuery as well as best practices for using these technologies on Microsoft platforms.
This section provides information about structuring and adding datatyping to XML documents on Microsoft platforms, using XML schema languages such as the W3C XML Schema language.
The XML Files: A Quick Guide to XML Schema - Part 1|
This column is the first in a two-part series that cover the basics of XML Schema. It covers the basics of XML Schema, including how you define elements, attributes, complex types, and how to use the built-in data types.
Find information about transforming XML documents on Microsoft platforms, using technologies such as XSLT.
Build Practical Solutions with EXSLT|
Oleg Tkachenko shows how to make XML programming easier, and explains how to boost your productivity using XSLT and XPath extensions provided by the EXSLT.NET library.
XSL Transformations: XSLT Alleviates XML Schema Incompatibility Headaches|
The XSL Transformations (XSLT) specification defines an XML-based language for expressing transformation rules that map one XML document to another. XSLT has many of the constructs found in traditional programming languages, including variables, functions, iteration, and conditional statements. In this article you'll learn how to use the XSLT instructions and template rules, manage namespaces, control transformation output, use multiple stylesheets, and employ pattern-matching with template rules.
The XML Files: Extending XSLT with JScript, C#, and Visual Basic .NET|
XSLT is a powerful functional programming language that can make difficult tasks easy and easy tasks tough. In certain situations, a combination of XSLT's functional programming model and portions of custom code written in imperative languages like JScript, C#, or Visual Basic .NET can simplify the overall XSLT document. Microsoft's XSLT implementations, in both MSXML and .NET, provide excellent support for creating this type of hybrid XSLT application.
XSL provides a way of performing complex transformations on XML data. By using combinations of templates and scripting, you can significantly expand these transformations to perform precise validation and queries, incorporate subordinate documents, and generate highly sophisticated applications from any data.
Top of page