summaryrefslogtreecommitdiffstats
path: root/xml/api/status-2.0.rng
diff options
context:
space:
mode:
Diffstat (limited to 'xml/api/status-2.0.rng')
-rw-r--r--xml/api/status-2.0.rng25
1 files changed, 25 insertions, 0 deletions
diff --git a/xml/api/status-2.0.rng b/xml/api/status-2.0.rng
new file mode 100644
index 0000000..865ac08
--- /dev/null
+++ b/xml/api/status-2.0.rng
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<grammar xmlns="http://relaxng.org/ns/structure/1.0"
+ datatypeLibrary="http://www.w3.org/2001/XMLSchema-datatypes">
+
+ <start>
+ <ref name="element-status"/>
+ </start>
+
+ <define name="element-status">
+ <element name="status">
+ <attribute name="code"> <data type="integer" /> </attribute>
+ <attribute name="message"> <text /> </attribute>
+ <optional>
+ <element name="errors">
+ <oneOrMore>
+ <element name="error">
+ <text />
+ </element>
+ </oneOrMore>
+ </element>
+ </optional>
+ </element>
+ </define>
+
+</grammar>