XML Grammar-Oriented DP

  

From: Architectural Design Patterns for XML Documents by Kyle Downey


Self-Documenting Files

Include as part of the document format elements that annotate the content.

XML schema that needs to be understood by people, or converted into some format for their viewing.

    <complexType name="documentableType">
      <sequence>
        <element name="annotation" type="string"/>
      </sequence>
    </complexType> 


Multipart Files

Define an explicit mechanism for splitting content into multiple files.

Reuse your own schema or other people's schema elements.

Add to your schema an <import> or <include> element