Created
November 4, 2023 19:22
-
-
Save alexschreyer/846fab4fb3c9c588bc57540672dfefb1 to your computer and use it in GitHub Desktop.
A sample XML schema for classifying objects in SketchUp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"> | |
<xs:element name="Furniture"> | |
<xs:complexType> | |
<xs:sequence> | |
<xs:element name="Manufacturer" type="xs:string" /> | |
<xs:element name="Cost" type="xs:string" /> | |
<xs:element name="Type" minOccurs="0"> | |
<xs:simpleType> | |
<xs:restriction base="xs:string"> | |
<xs:enumeration value="Table" /> | |
<xs:enumeration value="Chair" /> | |
<xs:enumeration value="Shelving" /> | |
</xs:restriction> | |
</xs:simpleType> | |
</xs:element> | |
</xs:sequence> | |
</xs:complexType> | |
</xs:element> | |
<xs:element name="Lighting" /> | |
</xs:schema> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment