Microsoft HomeproductssearchsupportshopWrite Us   Microsoft Home
Magazine
 |  Community
 |  Workshop
 |  Tools & Samples
 |  Training
 |  Site Info

Workshop  |  XML (Extensible Markup Language)

Sample Data


This topic offers the sample data used by examples throughout this documentation.


<?xml version="1.0"?> 
<!-- This file represents a fragment of a book store inventory database -->
<bookstore specialty="novel">

    <book style="autobiography">
        <author>
            <first-name>Joe</first-name>
            <last-name>Bob</last-name>
            <award>Trenton Literary Review Honorable Mention</award>
        </author>
        <price>12</price>
    </book>

    <book style="textbook">
        <author>
            <first-name>Mary</first-name>
            <last-name>Bob</last-name>
            <publication>Selected Short Stories of
                <first-name>Mary</first-name>
                <last-name>Bob</last-name>
            </publication>
        </author>
        <price>55</price>
    </book>

    <magazine style="glossy" frequency="monthly">
        <price>2.50</price>
        <subscription price="24" per="year"/>
    </magazine>

    <book style="novel" id="myfave">
        <author>
            <first-name>Toni</first-name>
            <last-name>Bob</last-name>
            <degree from="Trenton U">B.A.</degree>
            <degree from="Harvard">Ph.D.</degree>
            <award>Pulitzer</award>
            <publication>Still in Trenton</publication>
            <publication>Trenton Forever</publication>
        </author>
        <price intl="canada" exchange="0.7">6.50</price>
        <excerpt>
        <p>It was a dark and stormy night.</p>
    <p>But then all nights in Trenton seem dark and
    stormy to someone who has gone through what
    <emph>I</emph> have.</p>
            <definition-list>
                <term>Trenton</term>
                <definition>misery</definition>
            </definition-list>
        </excerpt>
    </book>

    <my:book xmlns:my="uri:mynamespace" style="leather" price="29.50">
        <my:title>Who's Who in Trenton</my:title>
    <my:author>Robert Bob</my:author>
    </my:book>

</bookstore>

See Also

XSL Pattern-Matching Syntax, Examples


Does this content meet your programming needs? Write us!

Back to topBack to top

© 1998 Microsoft Corporation. All rights reserved. Terms of use.

 

Magazine Home
Ask Jane
DHTML Dude
Extreme XML
For Starters
More or Hess
Servin' It Up
Site Lights
Web Men Talking
Member Community Home
Benefits: Freebies & Discounts
Benefits: Promote Your Site
Benefits: Connect with Your Peers
Benefits at a Glance
Online Special-Interest Groups
Your Membership
SBN Stores
Join Now
Workshop Home
Essentials
Content & Component Delivery
Component Development
Data Access & Databases
Design
DHTML, HTML & CSS
Extensible Markup Language (XML)
Languages & Development Tools
Messaging & Collaboration
Networking, Protocols & Data Formats
Reusing Browser Technology
Security & Cryptography
Server Technologies
Streaming & Interactive Media
Web Content Management
Workshop Index
Tools & Samples Home
Tools
Samples, Headers, Libs
Images
Sounds
Style Sheets
Web Fonts
Training Home
SBN Live Seminars
SBN Live Chats
Courses
Peer Support
CD-ROM Training
Books & Training Kits
Certification
SBN Home
New to SBN?
What's New on SBN
Site Map
Site Search
Glossary
Write Us
About This Site