08.08.2017 Views

designer

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

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

Showing and Hiding Content 159<br />

Tip The Hide Content condition is exactly the opposite of the Show Content condition.<br />

For example, in this exercise you could have used the Hide Content condition with the<br />

criteria Sale Equals ‘0’ Or In Stock Less Than Or Equal To 10. When you need to configure<br />

multiple Hide Content or Show Content conditions in a Data View or an XLV Web Part,<br />

use only one of these conditions to describe the criteria. Using a combination can lead<br />

to confusion.<br />

CLEAN UP Save Stock.aspx. Leave SharePoint Designer open if you are continuing to<br />

the next exercise.<br />

An XML Primer<br />

XML is a language for defining and representing data of all kinds, where data is<br />

stored as text rather than in binary format. XML is an open standard that many<br />

vendors support. In contrast to HTML, XML tags describe only the data itself, not<br />

how the data should be displayed. You can choose the tag names to use as long as<br />

the XML data is well formed; that is, as long as it obeys the following set of rules:<br />

●●<br />

●●<br />

●●<br />

●●<br />

●●<br />

One root element contains all other elements.<br />

Each element must have matching opening and closing tags.<br />

Elements must use consistent capitalization; that is, they are case sensitive.<br />

Elements must be nested correctly; that is, no elements overlap.<br />

Element attribute values must be enclosed in quotation marks with no repeating<br />

attributes in an element.<br />

The root element in the following XML data is Invoices. InvoiceNo is known as an<br />

attribute, and Company and Net are child elements of Invoice. The content of the<br />

Company element is Adventure Works, whereas the element Net has no content.

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

Saved successfully!

Ooh no, something went wrong!