Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Schema for config XML #9

Open
nununo opened this issue Apr 25, 2017 · 1 comment
Open

Make Schema for config XML #9

nununo opened this issue Apr 25, 2017 · 1 comment
Milestone

Comments

@nununo
Copy link
Owner

nununo commented Apr 25, 2017

No description provided.

@nununo
Copy link
Owner Author

nununo commented Apr 25, 2017

Here's one I generated from:
http://www.freeformatter.com/xsd-generator.html

Result:
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="vela2017"> <xs:complexType> <xs:sequence> <xs:element name="general"> <xs:complexType> <xs:sequence> <xs:element type="xs:byte" name="framerate"/> <xs:element type="xs:byte" name="fullscreen"/> <xs:element type="xs:byte" name="showTrace"/> <xs:element type="xs:byte" name="showHistory"/> <xs:element type="xs:byte" name="useOmxPlayer"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="clipOutput"> <xs:complexType> <xs:sequence> <xs:element type="xs:byte" name="rotation"/> <xs:element type="xs:float" name="offsetX"/> <xs:element type="xs:float" name="offsetY"/> <xs:element type="xs:float" name="zoomX"/> <xs:element type="xs:float" name="zoomY"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="levels"> <xs:complexType> <xs:sequence> <xs:element name="level" maxOccurs="unbounded" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element type="xs:string" name="movieFolder"/> <xs:element type="xs:float" name="fadeInTime"/> <xs:element type="xs:float" name="fadeOutTime"/> <xs:element type="xs:byte" name="loop"/> <xs:element type="xs:byte" name="canRestart"/> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="calibration"> <xs:complexType> <xs:sequence> <xs:element type="xs:byte" name="historySize"/> <xs:element type="xs:byte" name="excentricSize"/> <xs:element type="xs:byte" name="skipSize"/> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="inputs"> <xs:complexType> <xs:sequence> <xs:element name="input" maxOccurs="unbounded" minOccurs="0"> <xs:complexType mixed="true"> <xs:sequence> <xs:element type="xs:short" name="minPeriod" minOccurs="0"/> <xs:element name="devices" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="device" maxOccurs="unbounded" minOccurs="0"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute type="xs:string" name="name" use="optional"/> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element name="analogInputs" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element name="analogInput" maxOccurs="unbounded" minOccurs="0"> <xs:complexType> <xs:sequence> <xs:element type="xs:byte" name="low"/> <xs:element type="xs:byte" name="high"/> <xs:element type="xs:byte" name="blowOut"/> </xs:sequence> <xs:attribute type="xs:string" name="name" use="optional"/> <xs:attribute type="xs:byte" name="enabled" use="optional"/> <xs:attribute type="xs:byte" name="inverted" use="optional"/> <xs:attribute type="xs:byte" name="calibrated" use="optional"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> <xs:attribute type="xs:string" name="type" use="optional"/> <xs:attribute type="xs:byte" name="enabled" use="optional"/> <xs:attribute type="xs:byte" name="inverted" use="optional"/> <xs:attribute type="xs:byte" name="calibrated" use="optional"/> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>

@nununo nununo added this to the v1.2 milestone May 16, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant