OPML - sgml/signature GitHub Wiki

Tools

Tutorials

References

OPML Model for Modeling Data Binding

<?xml version="1.0" encoding="UTF-8"?>
<!-- This OPML representation is based on the structure described in the W3C XForms Specification:
     https://www.w3.org/TR/xforms/  -->
<opml version="2.0">
  <head>
    <title>XForms Data Model</title>
    <!-- The <head> element follows the OPML 2.0 standard (see: https://dev.opml.org/spec2.html) -->
  </head>
  <body>
    <!-- 'instance' represents the XForms data instance,
         similar to the <instance> element described in the XForms spec. -->
    <outline text="instance" category="data">
      <!-- 'company' node: a simple string value as per the binding model in XForms. -->
      <outline text="company" type="string">example.com</outline>
      <!-- 'size' node: a numeric value -->
      <outline text="size" type="number">50</outline>
      <outline text="location">
        <!-- 'class' node: representing a classification as per instance data definitions -->
        <outline text="class" type="string">international</outline>
        <!-- 'places' nodes: can represent multiple entries -->
        <outline text="places" type="string">Amsterdam</outline>
        <outline text="places" type="string">London</outline>
      </outline>
    </outline>
    <!-- 'binding' represents the XForms bind elements, which are used to associate instance nodes with UI controls -->
    <outline text="binding" category="bind">
      <!-- Binds the 'company' node -->
      <outline text="/data/company" type="binding"/>
      <!-- Binds the 'size' node -->
      <outline text="/data/size" type="binding"/>
      <!-- Binds the 'location/class' node -->
      <outline text="/data/location/class" type="binding"/>
      <!-- Binds the 'location/places' node -->
      <outline text="/data/location/places" type="binding"/>
    </outline>
  </body>
</opml>
⚠️ **GitHub.com Fallback** ⚠️