The XML Options Dialog
The XML Options dialog shown in Figure 22-11 has three categories of options: XML save options, Schema validation options, and XML view options. These options are applied and saved at the document leveldifferent documents can have different sets of XML options. For XML save options, checking the Save data only option makes it so when you save the document as XML it will save the XML mapped into the document rather than saving the document in WordML format. The Apply custom transform option lets you specify an XSLT file to apply when you save the document. This feature is the inverse of the import XSLT file we considered earlier and is beyond the scope of this book.The schema validation options let you control the way Word validates the document against the attached schema. With Validate document against attached schemas checked, Word validates the XML data in the document against the attached schema. If Hide schema violations in this document is not checked, Word displays squiggly lines under data that does not conform to the schema being used in the document. For example, in our book order document, consider what happens if we type an invalid date for the date of the order. Word displays a squiggly line under the date. If you right-click the squiggly line, you get a schema validation error, as shown in Figure 22-28.
Figure 22-28. A schema validation error for an illegal date.

Figure 22-29. An "advanced" schema validation error for an illegal date.
[View full size image]

Figure 22-30. A document with Show placeholder text for all empty elements turned on.
[View full size image]
