
346 Chapter 8 • Securing XML
<?xml version="1.0">
<Schema name="Product" xmlns="urn:schemas-microsoft-com:xml-data"
xmlns:dt="urn:schemas-microsoft-com:datatypes">
<ElementType name="ProductID" content="textOnly"
dt:type="string"/>
<ElementType name="ProductName" content="textOnly"
dt:type="string"/>
<ElementType name="ProductPrice" content="textOnly"
dt:type="float"/>
<ElementType name="Product" content="eltOnly">
<element type="ProductID"/>
<element type="ProductName"/>
<element type="ProductPrice"/>
</ElementType>
</Schema>
Notice that the schema is a well-formed XML document.This
allows for an XML processor to parse, examine, and manipulate the
schema just ...