|
From: Mitchell G. <mrg...@us...> - 2006-02-10 14:11:24
|
Update of /cvsroot/acd/acd-2 In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9075 Modified Files: acd.xsd Added Files: sample.xml Log Message: added sample.xml as a working example of what an XML "should" look like. --- NEW FILE: sample.xml --- <?xml version='1.0' encoding='utf-8' standalone='no'?> <system xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:acd="http://acd.org/acd" xsi:schemaLocation="http://acd.org/acd acd.xsd" > <required> <hostname>fozzie0</hostname> <operatingsystem> <name>linux</name> <kernel>2.6.9-22.5</kernel> <distribution>RedHat Enterprise Linux WS</distribution> <version>4</version> <patchlevel>U2</patchlevel> </operatingsystem> </required> <optional> <cpu> <architecture>x86_64</architecture> <model>GenuineIntel</model> <speed>3591</speed> </cpu> <cpu> <architecture>x86_64</architecture> <model>GenuineIntel</model> <speed>3591</speed> </cpu> <network_interface> <ip_address>192.168.1.1</ip_address> <netmask>255.255.255.255</netmask> <mac>00:0d:93:c5:b1:ca</mac> <device>eth0</device> <MTU>1500</MTU> <broadcast>192.168.1.1</broadcast> </network_interface> <disk_drive> <device>/dev/sda</device> <size>1024</size> <manufacturer>maxtor</manufacturer> </disk_drive> </optional> <custom> <customitem> <name>numberofdisks</name> <value>12</value> </customitem> <customitem> <name>bob</name> <value>newValue</value> </customitem> </custom> </system> Index: acd.xsd =================================================================== RCS file: /cvsroot/acd/acd-2/acd.xsd,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** acd.xsd 6 Feb 2006 18:01:41 -0000 1.1 --- acd.xsd 10 Feb 2006 14:11:13 -0000 1.2 *************** *** 1,3 **** ! <?xml version="1.0" ?> <xs:schema --- 1,3 ---- ! <?xml version="1.0"?> <xs:schema *************** *** 17,20 **** --- 17,21 ---- </xs:complexType> + <xs:complexType name="requiredType"> <xs:sequence> *************** *** 27,32 **** <xs:sequence> <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" /> ! <xs:element name="distribution" type="xs:string" minOccurs="1" maxOccurs="1" /> // restrict to [a-Z0-9.-] ! <xs:element name="version" type="xs:string" minOccurs="1" maxOccurs="1" /> // restrict to [a-Z0-9.-] <xs:element name="patchLevel" type="xs:string" minOccurs="1" maxOccurs="1" /> </xs:sequence> --- 28,33 ---- <xs:sequence> <xs:element name="name" type="xs:string" minOccurs="1" maxOccurs="1" /> ! <xs:element name="distribution" type="xs:string" minOccurs="1" maxOccurs="1" /> ! <xs:element name="version" type="xs:string" minOccurs="1" maxOccurs="1" /> <xs:element name="patchLevel" type="xs:string" minOccurs="1" maxOccurs="1" /> </xs:sequence> *************** *** 98,102 **** </xs:simpleType> </xs:element> ! --- 99,103 ---- </xs:simpleType> </xs:element> ! </xs:schema> |