<?xml version="1.0" encoding="UTF-8"?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at

      http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!DOCTYPE document PUBLIC "-//APACHE//DTD Documentation V2.0//EN" "http://forrest.apache.org/dtd/document-v20.dtd">
<document>
    <header>
        <title>OrderMatters Sample</title>
    </header>
    <body>
        <section>
            <title>Description</title>
            <p>Author: Eric Vasilik</p>
            <p>Available: 2004-10-28</p>
            <p>Versions: xmlbeans-1.0.3, xmlbeans-v2</p>

            <p>This samples gives an quick overview of how to use XmlBeans with both the
            strongly typed XmlObjects (StatementDocument, Transaction) and with the
            XmlCursor.
            <br/>
            In the sample, a instance of a statement is iterated over twice -- once using
            the strongly typed array approach and once with an XmlCursor.  When walking
            over the array the programmer naivly adds up deposit amounts before the
            withdrawal amounts.  The end result is a positive balance.  When walking over
            the array using XmlCursor, the transaction amounts are processed in order and
            the end result is a negative balance.</p>
        </section>
        <section>
            <title>Files</title>
            <ul>
              <li><a href="OrderMatters.zip">Zip of all files (OrderMatters.zip)</a></li>
              <li><a href="OrderMatters.tgz">Tar gzip of all files (OrderMatters.tgz)</a></li>
            </ul>
            <ul>
              <li><a href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/OrderMatters/README.txt">Readme file</a></li>
              <li><a href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/OrderMatters/src/org/apache/xmlbeans/samples/cursor/OrderMatters.java">OrderMatters.java</a></li>
              <li><a href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/OrderMatters/schemas/stmt.xsd">stmt.xsd</a></li>
              <li><a href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/OrderMatters/xml/stmt.xml">stmt.xml</a></li>
              <li><a href="http://svn.apache.org/viewcvs.cgi/*checkout*/xmlbeans/trunk/samples/OrderMatters/build.xml">build.xml</a></li>
            </ul>
        </section>
    </body>
</document>

