Index: dam engine/trunk/doc/Dam Engine - Technical Design/DAM Engine - Technical Design.tex
===================================================================
diff -u -r420 -r448
--- dam engine/trunk/doc/Dam Engine - Technical Design/DAM Engine - Technical Design.tex	(.../DAM Engine - Technical Design.tex)	(revision 420)
+++ dam engine/trunk/doc/Dam Engine - Technical Design/DAM Engine - Technical Design.tex	(.../DAM Engine - Technical Design.tex)	(revision 448)
@@ -1,7 +1,11 @@
 \documentclass[signature]{deltares_report}
+\usepackage{listings}
 \usepackage[titletoc]{appendix}
 \usepackage{lipsum}
 %-----------------------------------------------
+\lstset{ %
+  basicstyle=\footnotesize,        % the size of the fonts that are used for the code listings
+}
 
 \begin{document}
 \pagestyle{empty}
@@ -693,16 +697,180 @@
 
 
 \appendix
-
 %----------------------------------------
-\chapter{DamInput.XSD} \label{app:DamInput.XSD}
+\chapter{DamInput} \label{app:DamInput.XSD}
+These are the XSD's that apply to the input XML of the \ProgramName.
 
+\section{DamInput.xsd}
+\label{sec:DamInputXsd}
+
+\begin{lstlisting}
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) -->
+<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+  <xs:include schemaLocation=".\DamLocation.xsd" />
+  <xs:complexType name="Input">
+    <xs:sequence>
+      <xs:element name="Locations">
+        <xs:complexType>
+          <xs:sequence>
+            <xs:element minOccurs="0" maxOccurs="unbounded" name="Location" type="Location" />
+          </xs:sequence>
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+    <xs:attribute name="DamProjectType" use="required">
+      <xs:simpleType>
+        <xs:restriction base="xs:string">
+          <xs:enumeration value="Assessment" />
+          <xs:enumeration value="AssessmentRegional" />
+          <xs:enumeration value="Operational" />
+          <xs:enumeration value="Design" />
+          <xs:enumeration value="NWO" />
+        </xs:restriction>
+      </xs:simpleType>
+    </xs:attribute>
+  </xs:complexType>
+  <xs:element name="Input" />
+</xs:schema>
+\end{lstlisting}
+
+\section{DamLocation.xsd}
+\label{sec:DamLocationXsd}
+
+\begin{lstlisting}
+<?xml version="1.0" encoding="utf-8"?>
+<!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) -->
+<xs:schema elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
+  <xs:complexType name="Location">
+    <xs:sequence>
+      <xs:element name="AssesmentRegionalOptions">
+        <xs:complexType>
+          <xs:attribute default="Clay" name="DikeMaterialType">
+            <xs:simpleType>
+              <xs:restriction base="xs:string">
+                <xs:enumeration value="Sand" />
+                <xs:enumeration value="Peat" />
+                <xs:enumeration value="Loam" />
+                <xs:enumeration value="Clay" />
+                <xs:enumeration value="Gravel" />
+              </xs:restriction>
+            </xs:simpleType>
+          </xs:attribute>
+          <xs:attribute name="DredgingDepth" type="xs:double" />
+          <xs:attribute default="0.95" name="DetrimentFactor" type="xs:double" />
+          <xs:attribute name="DikeTableHeight" type="xs:double" />
+        </xs:complexType>
+      </xs:element>
+      <xs:element name="AssesmentOptions" />
+      <xs:element name="OperationalOptions" />
+      <xs:element name="DesignOptions" />
+      <xs:element name="NWOOptions" />
+      <xs:element name="WaternetOptions">
+        <xs:complexType>
+          <xs:attribute name="PhreaticLineCreationMethod" use="required">
+            <xs:simpleType>
+              <xs:restriction base="xs:string">
+                <xs:enumeration value="ExpertKnowledgeRRD" />
+                <xs:enumeration value="ExpertKnowledgeLinearInDike" />
+                <xs:enumeration value="GaugesWithFallbackToExpertKnowledgeRRD" />
+                <xs:enumeration value="Sensors" />
+                <xs:enumeration value="None" />
+              </xs:restriction>
+            </xs:simpleType>
+          </xs:attribute>
+          <xs:attribute name="PolderLevel" type="xs:double" use="required" />
+          <xs:attribute name="HeadPl2" type="xs:double" use="optional" />
+          <xs:attribute name="HeadPl3" type="xs:double" use="optional" />
+          <xs:attribute name="HeadPl4" type="xs:double" use="optional" />
+          <xs:attribute name="DampingFactorPL3" type="xs:double" use="required" />
+          <xs:attribute name="DampingFactorPL4" type="xs:double" use="required" />
+          <xs:attribute name="PenetrationLength" type="xs:double" use="required" />
+          <xs:attribute name="SlopeDampingFactor" type="xs:double" use="required" />
+          <xs:attribute name="Pl1BelowCrestRiverside" type="xs:double" use="required" />
+          <xs:attribute name="Pl1BelowCrestPolderside" type="xs:double" use="required" />
+          <xs:attribute name="Pl1BelowShoulderCrestPolderside" type="xs:double" use="required" />
+          <xs:attribute name="Pl1BelowToeDikePolderside" type="xs:double" use="required" />
+          <xs:attribute name="Pl1BelowCrestMiddle" type="xs:double" use="optional" />
+          <xs:attribute name="Pl1FactorBelowShoulderCrest" type="xs:double" use="optional" />
+          <xs:attribute name="DryPl1BelowCrestMiddle" type="xs:double" use="optional" />
+          <xs:attribute name="DryPl1FactorBelowShoulderCrest" type="xs:double" use="optional" />
+          <xs:attribute name="IntrusionVerticalWaterPressure" use="required">
+            <xs:simpleType>
+              <xs:restriction base="xs:string">
+                <xs:enumeration value="Standard" />
+                <xs:enumeration value="Linear" />
+                <xs:enumeration value="FullHydroStatic" />
+                <xs:enumeration value="HydroStatic" />
+                <xs:enumeration value="SemiTimeDependent" />
+              </xs:restriction>
+            </xs:simpleType>
+          </xs:attribute>
+        </xs:complexType>
+      </xs:element>
+      <xs:element name="General">
+        <xs:complexType>
+          <xs:attribute default="Primary" name="DamType">
+            <xs:simpleType>
+              <xs:restriction base="xs:string">
+                <xs:enumeration value="Primary" />
+                <xs:enumeration value="Regional" />
+              </xs:restriction>
+            </xs:simpleType>
+          </xs:attribute>
+          <xs:attribute name="Description" type="xs:string" />
+          <xs:attribute name="DikeEmbankmentMaterial" type="xs:string" />
+          <xs:attribute default="1.0" name="ForbiddenZoneFactor" type="xs:double" />
+          <xs:attribute name="IsUseOriginalPLLineAssignments" type="xs:boolean" />
+          <xs:attribute name="HeadPL2" type="xs:double" use="optional" />
+          <xs:attribute name="HeadPL3" type="xs:double" use="optional" />
+          <xs:attribute name="headPL4" type="xs:double" use="optional" />
+        </xs:complexType>
+      </xs:element>
+      <xs:element name="PipingProbabilisticParameters">
+        <xs:complexType>
+          <xs:attribute default="Deterministic" name="LayerHeightDistribution">
+            <xs:simpleType>
+              <xs:restriction base="xs:string">
+                <xs:enumeration value="Deterministic" />
+                <xs:enumeration value="Uniform" />
+                <xs:enumeration value="Triangular" />
+                <xs:enumeration value="Normal" />
+                <xs:enumeration value="LogNormal" />
+                <xs:enumeration value="Exponential" />
+                <xs:enumeration value="Gamma" />
+                <xs:enumeration value="Beta" />
+                <xs:enumeration value="Frechet" />
+                <xs:enumeration value="Weibull" />
+                <xs:enumeration value="Gumbel" />
+                <xs:enumeration value="Rayleigh" />
+                <xs:enumeration value="Pareto" />
+                <xs:enumeration value="TruncatedNormal" />
+                <xs:enumeration value="Table" />
+                <xs:enumeration value="StudentT" />
+              </xs:restriction>
+            </xs:simpleType>
+          </xs:attribute>
+          <xs:attribute name="LayerHeightDeviation" type="xs:double" />
+        </xs:complexType>
+      </xs:element>
+    </xs:sequence>
+  </xs:complexType>
+</xs:schema>\end{lstlisting}
+
 %----------------------------------------
-\chapter{MessageList.XSD} \label{app:MessageList.XSD}
+\chapter{MessageList} \label{app:MessageList.XSD}
+\begin{lstlisting}
+\end{lstlisting}
 
 %----------------------------------------
-\chapter{DamOutput.XSD} \label{app:DamOutput.XSD}
+\chapter{DamOutput} \label{app:DamOutput.XSD}
 
+\section{DamOutput.xsd}
+\label{sec:DamOutputXsd}
+\begin{lstlisting}
+\end{lstlisting}
+
 \pagestyle{empty}
 \mbox{}
 
