Project

General

Profile

« Previous | Next » 

Revision 4432

Added by daigle over 15 years ago

Added xml files for testing schema.

View differences:

test/clienttestfiles/bad-schema.xml
1
<?xml version="1.0"?>
2
<ord:order xmlns:ord="http://example.org/ord"
3
   xmlns:prod="http://example.org/prod"
4
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
5
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
6
   targetNamespace="http://example.org/ord"
7
   xsi:schemaLocation="http://example.org/prod http://indus.msi.ucsb.edu/knb/test/chapter05prod.xsd
8
                       http://example.org/ord http://indus.msi.ucsb.edu/knb/test/chapter05ord.xsd">
9

  
10

  
11
  <dataset>
12
    <title>Sample dataset Description</title>
13
    <creator id="23445" scope="document">
14
      <individualName>
15
        <surName>Smith</surName>
16
      </individualName>
17
    </creator>
18
    <creator id="23446" scope="document">
19
      <individualName>
20
        <surName>Smith</surName>
21
      </individualName>
22
    </creator>
23
    <additionalInfo><para>My comments go here.</para></additionalInfo>
24
    <intellectualRights><section><para>Anyone can use it.</para></section>
25
    </intellectualRights>
26

  
27
    <distribution>
28
      <online>
29
      <connectionDefinition scope="document">
30
        <schemeName system="CAP">sde</schemeName>
31
        <description><para>The SDE scheme used at CAP LTER</para></description>
32
        <parameterDefinition>
33
          <name>hostname</name>
34
          <definition>The host</definition>
35
          <defaultValue>mohave.asu.edu</defaultValue>
36
        </parameterDefinition>
37
        <parameterDefinition>
38
          <name>databaseName</name>
39
          <definition>The name of the database or catalog</definition>
40
        </parameterDefinition>
41
        <parameterDefinition>
42
          <name>owner</name>
43
          <definition>The owner catalog</definition>
44
        <defaultValue>dbo</defaultValue>
45
        </parameterDefinition>
46
      </connectionDefinition>
47
      </online>
48
    </distribution>
49

  
50
    <purpose><para>Provide data to the whole world.</para></purpose>
51
    <contact>
52
      <individualName>
53
        <surName>Johnson</surName>
54
      </individualName>
55
    </contact>
56
    <contact>
57
      <references>23445</references>
58
    </contact>
59
  </dataset>
60
</ord:order>
test/clienttestfiles/good-schema.xml
1
<ord:order xmlns:ord="http://example.org/ord"
2
   xmlns:prod="http://example.org/prod"
3
   xmlns:xs="http://www.w3.org/2001/XMLSchema"
4
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
5
   xsi:schemaLocation="http://example.org/prod http://indus.msi.ucsb.edu/knb/test/chapter05prod.xsd
6
                       http://example.org/ord http://indus.msi.ucsb.edu/knb/test/chapter05ord.xsd">
7
  <items>
8
    <prod:product>
9
      <number xsi:type="xs:short">557</number>
10
      <name>Short-Sleeved Linen Blouse</name>
11
      <size xsi:nil="true"></size>
12
    </prod:product>
13
  </items>
14
</ord:order>

Also available in: Unified diff