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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

<br />

The sql data type references a couple of special attributes. We do not have to worry about whether the<br />

<strong>Microsoft</strong> data types namespace also has a field or relation data type because we are fully qualifying our<br />

attribute names. Even if the data types namespace does have an attribute called field, our XML parser<br />

will still know to treat this element by the rules of the sql namespace.<br />

Element Content<br />

Chapter 16: A Brief XML Primer<br />

Another notion of XML and elements that deserves mention (which is close to all it will get here) is the<br />

concept of element content.<br />

Elements can contain data beyond the attribute level and nested elements. While nested elements are<br />

certainly one form of element content (one element contains the other), XML also allows for row text<br />

information to be contained in an element. For example, we could have an XML document that looked<br />

something like the following:<br />

<br />

<br />

<br />

<br />

The customer called in today and placed another order. Says they really like our<br />

work and would like it if we would consider establishing a location closer to their<br />

base of operations.<br />

<br />

<br />

Followed up with the customer on new location. Customer agrees to guarantee us<br />

$5,000 per month in business to help support a new office.<br />

<br />

<br />

<br />

485

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

Saved successfully!

Ooh no, something went wrong!