summaryrefslogtreecommitdiffstats
path: root/xsds/file.xsd
blob: f018dc5518df730fd9dc36c244389b669ca86388 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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>