有坛中兄弟给我发了一个xml,须写xsd验证,这方面我也是新手呢,不过看了http://www.w3school.com.cn/schema/index.asp的教程而已,所以这倒是我第一次写xsd了。
给定xml (project_4.xml)文件如下:
<
UWO
>
<
Departments
>
<
Department
>
<
Name
>
Economics
</
Name
>
<
Address
>
Social Science Centre, UWO, London, Ontario, Canada , N6A 5C2
</
Address
>
<
Location
>
SSC 4071
</
Location
>
<
Phone
>
519 661-3500 x83500
</
Phone
>
<
Facsimile
>
519 661-3666 x83666
</
Facsimile
>
<
Email
>
economics@uwo.ca
</
Email
>
<
WEB
>
http://economics.uwo.ca
</
WEB
>
</
Department
>
<
Department
>
<
Name
>
Political_science
</
Name
>
<
Address
>
Social Science Centre, UWO, London, Ontario, Canada , N6A 5C2
</
Address
>
<
Location
>
SSC 4154
</
Location
>
<
Phone
>
519 661-3266 x83266
</
Phone
>
<
Facsimile
>
519 661-3904 x83904
</
Facsimile
>
<
Email
>
polisci-web@uwo.ca
</
Email
>
<
WEB
>
http://politicalscience.uwo.ca
</
WEB
>
<
SERVICES
>
<
Service
>
<
Name
>
Local_Government_program
</
Name
>
<