Skip to content

Instantly share code, notes, and snippets.

@faizalpribadi
Last active December 20, 2015 00:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save faizalpribadi/6042707 to your computer and use it in GitHub Desktop.
Save faizalpribadi/6042707 to your computer and use it in GitHub Desktop.
DTD XML Schema Service Mozart PHP Framework !
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="http://mozart.com/xml/schema"
targetNamespace="http://mozart.com/xml/schema" elementFormDefault="qualified">
<xs:annotation>
<xs:documentation><![CDATA[
Mozart schema service DTD XML
Authors: Faizal Pribadi
]]></xs:documentation>
</xs:annotation>
<xs:element name="schema" type="schema"/>
<xs:annotation>
<xs:documentation><![CDATA[
root element parameter schema services
]]></xs:documentation>
</xs:annotation>
<xs:complexType name="schema">
<xs:sequence>
<xs:element name="url" type="xs:anyURI"/>
<xs:element name="resource" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="service">
<xs:annotation>
<xs:documentation>
<![CDATA[ service parameter query url]]>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="query" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="api">
<xs:annotation>
<xs:documentation>
<![CDATA[token from web api]]]>
</xs:documentation>
</xs:annotation>
<xs:sequence>
<xs:element name="api.id" type="xs:string"/>
<xs:element name="api.token" type="xs:string"/>
</xs:sequence>
</xs:complexType>
<xs:element name="service" type="service"/>
<xs:element name="api" type="api"/>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment