Txtract XML Output XSD and DTD Schemas
Please see the licence information below. If you have any questions, feel free to contact us.
DTD
<!-- Txtract SMS Backup for G1 Android XSD and DTD by Brilaps, LLC is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License. Based on a work at wiki.brilaps.com. Permissions beyond the scope of this license may be available at http://wiki.brilaps.com/wikka.php?wakka=Txtract. --> <!ELEMENT ns:DevelopedBy EMPTY > <!ATTLIST ns:DevelopedBy ns:by CDATA #REQUIRED > <!ELEMENT ns:SMS ( ns:who, ns:body ) > <!ATTLIST ns:SMS ns:address CDATA #REQUIRED > <!ATTLIST ns:SMS ns:date CDATA #REQUIRED > <!ATTLIST ns:SMS ns:read NMTOKEN #REQUIRED > <!ATTLIST ns:SMS ns:status NMTOKEN #REQUIRED > <!ATTLIST ns:SMS ns:type #REQUIRED > <!ELEMENT ns:SMSThread ( ns:SMS+ ) > <!ATTLIST ns:SMSThread ns:count NMTOKEN #REQUIRED > <!ATTLIST ns:SMSThread ns:threadid NMTOKEN #REQUIRED > <!ELEMENT ns:SMSThreads ( ns:SMSThread+ ) > <!ATTLIST ns:SMSThreads ns:count NMTOKEN #REQUIRED > <!ELEMENT ns:Txtract ( ns:SMSThreads, ns:DevelopedBy, ns:Version ) > <!ATTLIST ns:Txtract ns:count NMTOKEN #REQUIRED > <!ATTLIST ns:Txtract ns:extractDate CDATA #REQUIRED > <!ATTLIST ns:Txtract ns:phone NMTOKEN #REQUIRED > <!ELEMENT ns:Version EMPTY > <!ATTLIST ns:Version ns:Version NMTOKEN #REQUIRED > <!ELEMENT ns:body ( #PCDATA ) > <!ELEMENT ns:who ( #PCDATA ) >
XSD
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:ns="http://brilaps.com/ns/android/txtract/" attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://brilaps.com/ns/android/txtract/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
Txtract SMS Backup for G1 Android XSD and DTD by Brilaps, LLC is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Based on a work at wiki.brilaps.com.
Permissions beyond the scope of this license may be available at http://wiki.brilaps.com/wikka.php?wakka=Txtract.
-->
<xs:element name="Txtract">
<xs:complexType>
<xs:sequence>
<xs:element name="SMSThreads">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="SMSThread">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="SMS">
<xs:complexType>
<xs:sequence>
<xs:element name="who" type="xs:string" />
<xs:element name="body" type="xs:string" />
</xs:sequence>
<xs:attribute ref="ns:address" use="required" />
<xs:attribute ref="ns:date" use="required" />
<xs:attribute ref="ns:read" use="required" />
<xs:attribute ref="ns:status" use="required" />
<xs:attribute ref="ns:type" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="ns:threadid" use="required" />
<xs:attribute ref="ns:count" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="ns:count" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="DevelopedBy">
<xs:complexType>
<xs:attribute ref="ns:by" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Version">
<xs:complexType>
<xs:attribute ref="ns:Version" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="ns:extractDate" use="required" />
<xs:attribute ref="ns:count" use="required" />
<xs:attribute ref="ns:phone" use="required" />
</xs:complexType>
</xs:element>
<xs:attribute name="extractDate" type="xs:string" />
<xs:attribute name="count" type="xs:unsignedShort" />
<xs:attribute name="phone" type="xs:unsignedLong" />
<xs:attribute name="threadid" type="xs:unsignedByte" />
<xs:attribute name="address" type="xs:long" />
<xs:attribute name="date" type="xs:string" />
<xs:attribute name="read" type="xs:unsignedByte" />
<xs:attribute name="status" type="xs:byte" />
<xs:attribute name="type" type="xs:unsignedByte" />
<xs:attribute name="by" type="xs:string" />
<xs:attribute name="Version" type="xs:decimal" />
</xs:schema>
<xs:schema xmlns:ns="http://brilaps.com/ns/android/txtract/" attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://brilaps.com/ns/android/txtract/"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<!--
Txtract SMS Backup for G1 Android XSD and DTD by Brilaps, LLC is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Based on a work at wiki.brilaps.com.
Permissions beyond the scope of this license may be available at http://wiki.brilaps.com/wikka.php?wakka=Txtract.
-->
<xs:element name="Txtract">
<xs:complexType>
<xs:sequence>
<xs:element name="SMSThreads">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="SMSThread">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="SMS">
<xs:complexType>
<xs:sequence>
<xs:element name="who" type="xs:string" />
<xs:element name="body" type="xs:string" />
</xs:sequence>
<xs:attribute ref="ns:address" use="required" />
<xs:attribute ref="ns:date" use="required" />
<xs:attribute ref="ns:read" use="required" />
<xs:attribute ref="ns:status" use="required" />
<xs:attribute ref="ns:type" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="ns:threadid" use="required" />
<xs:attribute ref="ns:count" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="ns:count" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="DevelopedBy">
<xs:complexType>
<xs:attribute ref="ns:by" use="required" />
</xs:complexType>
</xs:element>
<xs:element name="Version">
<xs:complexType>
<xs:attribute ref="ns:Version" use="required" />
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute ref="ns:extractDate" use="required" />
<xs:attribute ref="ns:count" use="required" />
<xs:attribute ref="ns:phone" use="required" />
</xs:complexType>
</xs:element>
<xs:attribute name="extractDate" type="xs:string" />
<xs:attribute name="count" type="xs:unsignedShort" />
<xs:attribute name="phone" type="xs:unsignedLong" />
<xs:attribute name="threadid" type="xs:unsignedByte" />
<xs:attribute name="address" type="xs:long" />
<xs:attribute name="date" type="xs:string" />
<xs:attribute name="read" type="xs:unsignedByte" />
<xs:attribute name="status" type="xs:byte" />
<xs:attribute name="type" type="xs:unsignedByte" />
<xs:attribute name="by" type="xs:string" />
<xs:attribute name="Version" type="xs:decimal" />
</xs:schema>

Txtract SMS Backup for G1 Android XSD and DTD by Brilaps, LLC is licensed under a Creative Commons Attribution-Share Alike 3.0 United States License.
Based on a work at wiki.brilaps.com.
Permissions beyond the scope of this license may be available at http://wiki.brilaps.com/wikka.php?wakka=Txtract.
There is one comment on this page. [Display comment]