Meeskond:InsertNameHere
From ICO wiki
Meeskond
- Villu Viirsalu
XML
<?xml version="1.0" encoding="utf-8" ?> <contacts> <contact> <name title="Ms"> <first><![CDATA[fName]]></first> <middle><![CDATA[mName]]></middle> <last><![CDATA[lName]]></last> </name> <contactType> <conType type="typeX"> <typeX></typeX> </conType> <conType type="phone"> <phone area="+372"><![CDATA[54321557]]></phone> </conType> <conType type="email"> <email><![CDATA[email1@email.email]]></email> <email><![CDATA[email2@email.email]]></email> </conType> <conType type="homepage"> <page><![CDATA[http://www.somePage.com/someName]]></page> </conType> </contactType> <birthday>2026-08-02</birthday> <notes /> <groups> <group type="friend" /> <group type="family" /> </groups> </contact> <contact> <name> <first><![CDATA[fName2]]></first> <last><![CDATA[lName2]]></last> </name> <contactType> <conType type="phone"> <phone area="+3815"><![CDATA[55123548789546]]></phone> </conType> <conType type="email"> <email><![CDATA[email4@email.email]]></email> </conType> </contactType> <birthday>2028-05-01</birthday> <notes><![CDATA[these are some notes on person x]]></notes> <groups> <group type="friend" /> </groups> </contact> <contact> <name> <first></first> </name> <contactType> </contactType> </contact> </contacts>
XSD
<?xml version="1.0" encoding="utf-8"?> <xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element name="contacts"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="contact"> <xs:complexType> <xs:sequence> <xs:element name="name"> <xs:complexType> <xs:sequence> <xs:element name="first" type="xs:string" /> <xs:element minOccurs="0" name="middle" type="xs:string" /> <xs:element minOccurs="0" name="last" type="xs:string" /> </xs:sequence> <xs:attribute name="title" type="xs:string" use="optional" /> </xs:complexType> </xs:element> <xs:element name="contactType"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="conType"> <xs:complexType> <xs:sequence> <xs:element minOccurs="0" maxOccurs="unbounded" name="page" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="unbounded" name="email" type="xs:string" /> <xs:element minOccurs="0" maxOccurs="unbounded" name="phone"> <xs:complexType> <xs:simpleContent> <xs:extension base="xs:string"> <xs:attribute name="area" type="xs:short" use="optional" /> </xs:extension> </xs:simpleContent> </xs:complexType> </xs:element> <xs:element minOccurs="0" name="typeX" /> </xs:sequence> <xs:attribute name="type" type="xs:string" use="optional" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> <xs:element minOccurs="0" name="birthday" type="xs:date" /> <xs:element minOccurs="0" name="notes" type="xs:string" /> <xs:element minOccurs="0" name="groups"> <xs:complexType> <xs:sequence> <xs:element maxOccurs="unbounded" name="group"> <xs:complexType> <xs:attribute name="type" type="xs:string" use="optional" /> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:sequence> </xs:complexType> </xs:element> </xs:schema>