Examples readmeExamples readme
STM by Example
Home > Books > Tutorials and Training Guides > STM Language > Examples readme

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Example

For this tutorial we use the following simple example documents as operand and param respectively of the stm idoc instruction.

doc.xml

<a>
  <b>
    <c food="hay">horse</c>
  </b>
  <b>
    <c food="hay">donkey</c>
  </b>
</a>

param.xml

<i>
  <j>
    <k>haddock</k>
  </j>
  <j>
    <k>cod</k>
  </j>
</i>

data.xml [used in design patterns section]

<data>
  <item>
    <price>129.99</price>
    <name>Horse Blanket</name>
  </item>
  <item>
    <price>9.99</price>
    <name>Horse Shoe</name>
  </item>
  <item>
    <price>599.99</price>
    <name>Saddle</name>
  </item>
  <item>
    <price>49999.99</price>
    <name>Horse Box</name>
  </item>
  <item>
    <price>1.99</price>
    <name>Curry Comb</name>
  </item>
</data>

© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.