diff options
author | steckbrief <steckbrief@chefmail.de> | 2017-11-04 21:04:04 +0100 |
---|---|---|
committer | steckbrief <steckbrief@chefmail.de> | 2017-11-04 21:04:04 +0100 |
commit | 6aae296280da44244fea0301a7abe59d4c83437f (patch) | |
tree | 833a372a6357efb8e0a4fa20f90193cd271db3ea /xsds |
Diffstat (limited to '')
-rw-r--r-- | xsds/file.xsd | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/xsds/file.xsd b/xsds/file.xsd new file mode 100644 index 0000000..f018dc5 --- /dev/null +++ b/xsds/file.xsd @@ -0,0 +1,26 @@ +<?xml version="1.0" encoding="UTF-8"?> +<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" + targetNamespace="urn:xmpp:filetransfer:http" + xmlns="urn:xmpp:filetransfer:http" elementFormDefault="qualified"> + <xs:element name="file" type="File"/> + + <xs:complexType name="File"> + <xs:sequence> + <xs:element name="url" type="xs:anyURI"/> + <xs:element name="file-info" type="FileInfo"/> + </xs:sequence> + </xs:complexType> + + <xs:complexType name="FileInfo"> + <xs:sequence> + <xs:element name="filename" type="xs:string"/> + <xs:element name="size" type="xs:positiveInteger"/> + <xs:element name="content-type" type="xs:string" minOccurs="0"/> + </xs:sequence> + <xs:attribute name="from" type="xs:string" use="optional"/> + <xs:attribute name="to" type="xs:string" use="optional"/> + <xs:attribute name="timestamp" type="xs:positiveInteger"/> + </xs:complexType> + + +</xs:schema>
\ No newline at end of file |