17.06.2013 Views

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

Beginning Microsoft SQL Server 2008 ... - S3 Tech Training

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Chapter 16: A Brief XML Primer<br />

EXPLICIT is only used on extremely detailed situations. Many of the things you might want to do with<br />

EXPLICIT can now be more easily performed using the PATH option. In general, you’ll want to look at all<br />

other options first, and consider EXPLICIT an option of last resort — it’s very advanced in nature, difficult<br />

to understand, and, as such, we will consider further discussion of EXPLICIT to be beyond the scope of<br />

this book.<br />

PATH<br />

504<br />

Tag Parent Customer!1!<br />

CustomerID<br />

Customer!1!<br />

CompanyName<br />

2 1 ALFKI Alfreds<br />

Futterkiste<br />

2 1 ALFKI Alfreds<br />

Futterkiste<br />

2 1 ALFKI Alfreds<br />

Futterkiste<br />

2 1 ALFKI Alfreds<br />

Futterkiste<br />

1 NULL ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

2 1 ANTON Antonio Moreno<br />

Taquería<br />

Order!2!<br />

OrderID<br />

11079 NULL<br />

Order!2!OrderDate<br />

11080 2000-07-22<br />

16:48:00.000<br />

11081 2000-07-22<br />

00:00:00.000<br />

11087 2000-08-05<br />

17:37:52.520<br />

NULL NULL<br />

10365 1996-11-27<br />

00:00:00.000<br />

10507 1997-04-15<br />

00:00:00.000<br />

10535 1997-05-13<br />

00:00:00.000<br />

10573 1997-06-19<br />

00:00:00.000<br />

10677 1997-09-22<br />

00:00:00.000<br />

10682 1997-09-25<br />

00:00:00.000<br />

10856 1998-01-28<br />

00:00:00.000<br />

Now let’s switch gears just a little bit and get down to a more “real” XML approach to getting data.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!