Template

Template as plain text value or structured children

Template

Template has mixed content. All readers consume it via its text value, so a plain <Template>name</Template> is valid. The structured children (TemplateID, TemplateType, TemplateVersion) are retained for backward compatibility with clients that emit them.

Plain text value

<ExtensibleContent>
  <FarPay>
    <Template>welcome</Template>
  </FarPay>
</ExtensibleContent>

Structured children

<ExtensibleContent>
  <FarPay>
    <Template>
      <TemplateID>42</TemplateID>
      <TemplateType>invoice</TemplateType>
      <TemplateVersion>1.0</TemplateVersion>
    </Template>
  </FarPay>
</ExtensibleContent>

Mixed (text and children together)

Because the type is mixed="true", both shapes may coexist. Readers still take the text value.

<ExtensibleContent>
  <FarPay>
    <Template>welcome
      <TemplateID>42</TemplateID>
      <TemplateType>invoice</TemplateType>
      <TemplateVersion>1.0</TemplateVersion>
    </Template>
  </FarPay>
</ExtensibleContent>