<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright (C) Stichting Deltares 2026. All rights reserved.

This file is part of the DAM - Clients Library.

The DAM - UI is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.

All names, logos, and references to "Deltares" are registered trademarks of
Stichting Deltares and remain full property of Stichting Deltares at all times.
All rights reserved.
-->

<!-- Created with Liquid XML Studio 1.0.8.0 (http://www.liquid-technologies.com) -->
<xsd:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
            attributeFormDefault="unqualified" elementFormDefault="qualified"
            targetNamespace="http://deltares.nl/2008/ProfileDefinition">
    <xs:complexType name="Profile">
        <xs:sequence>
            <xs:element minOccurs="0" name="Layers">
                <xs:complexType>
                    <xs:sequence>
                        <xs:element minOccurs="0" maxOccurs="unbounded" name="Layer">
                            <xs:complexType>
                                <xs:attribute name="ID" type="xs:ID" use="required"/>
                                <xs:attribute name="SoilID" type="xs:string" use="required"/>
                                <xs:attribute name="TopLevel" type="xs:double" use="required"/>
                                <xs:attribute default="0" name="ExcessPorePressureAtTop" type="xs:double"
                                              use="optional"/>
                                <xs:attribute default="0" name="ExcessPorePressureAtBottom" type="xs:double"
                                              use="optional"/>
                                <xs:attribute default="1" name="OCRValue" type="xs:double" use="optional"/>
                                <xs:attribute name="PlAtTop" type="xs:integer"/>
                                <xs:attribute name="PlAtBottom" type="xs:integer"/>
                            </xs:complexType>
                        </xs:element>
                    </xs:sequence>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="Name" type="xs:string" use="required"/>
        <xs:attribute name="InBetweenSandLayerID" type="xs:string" use="optional"/>
        <xs:attribute name="InfiltrationLayerID" type="xs:string" use="optional"/>
        <xs:attribute name="BottomSandLayerID" type="xs:string" use="optional"/>
        <xs:attribute name="XCoordinate" type="xs:double" use="optional"/>
        <xs:attribute name="YCoordinate" type="xs:double" use="optional"/>
        <xs:attribute name="PhreaticLevel" type="xs:double" use="optional"/>
        <xs:attribute name="HasPhreaticLevel" type="xs:boolean"/>
        <xs:attribute name="BottomLevel" type="xs:double"/>
    </xs:complexType>
</xsd:schema>