O'Reilly logo

Pro SQL Server 2008 XML by Michael Coles

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix G. Selected T-SQL and .NET Code Listings

With this book, I've introduced a wide variety of sample code listings. My intent with this Appendix is to reproduce some of the code listings that introduce key concepts, with additional documentation.

Chapter 1 included sample listings of data in various formats, including XML, for comparison purposes. Listing 1-3 introduced a simple hierarchical XML structure for the high-grossing movie listing. This listing introduced several XML node types including elements, attributes, processing instructions, comments, and text nodes.

Example 1-3. Modified Sample XML

<?xml version = "1.0" encoding = "UTF-16"?>
<!-- High-grossing movie listing -->
<movies>
    <film>
        <?style superhero?>
        <name>Spider-Man ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required