Allow Saving Document As XML File When Custom XML Markup Is Invalid. When the object is serialized out as xml, its qualified name is w:saveInvalidXml.
Assembly: DocumentFormat.OpenXml (in DocumentFormat.OpenXml.dll)
[ISO/IEC 29500-1 1st Edition]
saveInvalidXml (Allow Saving Document As XML File When Custom XML Markup Is Invalid)
This element specifies that this document should be capable of being saved into a format consisting of a single XML file (not defined by /IEC 29500) when its contents are invalid based XML schema validation of the custom XML markup contained in the document. This setting has no effect on documents that do not contain custom XML markup, or that do contain custom XML markup but do not have a schema attached. [Guidance: Because this setting specifies behavior when saving to an alternative file format not defined by /IEC 29500, this behavior is optional. end guidance]
If this element is omitted, then applications should not allow this document to be saved into a single XML file when its contents are invalid based on the custom XML markup contained in the document. If the doNotValidateAgainstSchema element (§22.214.171.124) is set, then the XML is never "invalid" and this property is ignored.
[Example: Consider a WordprocessingML document which should be saved into a single XML file even when its custom XML content is marked invalid by applications which support this operation. This requirement is specified using the following WordprocessingML in the document settings:
<w:saveInvalidXml w:val="true" />
The saveInvalidXml element's val attribute has a value of true specifying that the content in this document can be saved regardless of its validation status. end example]
This element’s content model is defined by the common boolean property definition in §17.17.4.
© ISO/IEC29500: 2008.