<saveXmlDataOnly> (Only Save Custom XML Markup)

This element specifies that the contents of this document shall be saved as an XML file containing only the custom XML markup in this document in its regular form. The resulting document will not conform to this Office Open XML Standard (i.e. this is an export-only save option for a WordprocessingML document).

[: This setting is typically used to extract custom XML markup from a WordprocessingML document for further processing by XML-enabled applications. ]

If this element is omitted, then the contents of the entire document (not just custom XML markup) should be saved according to the definition of WordprocessingML in this Office Open XML Standard.

example:
<w:saveXmlDataOnly w:val=”true”/>

The <saveXmlDataOnly> element's @val attribute has a value of true specifying that only custom XML shall be saved into a regular XML file when saving this document. For example, the document body formerly looked like this:

<w:body>
  <w:p>
    <w:customXml w:element="root" w:namespaceuri="urn:example">
      <w:r>
        <w:t>Hello world<w:t>
      </w:r>
    </w:customXml>
  </w:p>
</w:body>

The presence of this element specifies that the resulting document only contains the custom Xml markup, resulting in the following:

<ns0:root xmlns:ns0="urn:example">Hello world</ns0:root>

Parent Elements

<settings>2.15.1.78)

Attributes

Description

<val> (On/Off Value)

Specifies a binary value for the property defined by the parent XML element.

A value of on, 1, or true specifies that the property shall be explicitly applied. This is the default value for this attribute, and is implied when the parent element is present, but this attribute is omitted.

A value of off, 0, or false specifies that the property shall be explicitly turned off.

example:
<w:… w:val="off"/>

The @val attribute explicitly declares that the property is turned off. ]

The possible values for this attribute are defined by the ST_OnOff simple type (§2.18.67).

The following XML Schema fragment defines the contents of this element:

<complexType name="CT_OnOff">
	<attribute name="val" type="ST_OnOff"/>
</complexType>