Problem: I've designed a XSD of which I wish to validate a valid XML
file. However, I cannot seem to get the .xsd to align properly with
the .xml file. Here are my source files:
album.xsd:
<?xml version="1.0" encoding="iso-8859-1"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:marist="http://www.marist.edu/msis517"
targetNamespace="http://www.marist.edu/msis517"
elementFormDefault="unqualified">
<complexType name = "AlbumType">
<sequence>
<element name = "photo" type = "marist:PhotoType" minOccurs = "1"
maxOccurs = "unbounded" />
</sequence>
</complexType>
<complexType name = "PhotoType">
<sequence>
<element name = "title" type = "string" />
<element name = "filename" type = "string" />
<element name = "width" type = "integer" />
<element name = "height" type = "integer" />
</sequence>
<attribute name = "id" type = "integer" />
</complexType>
<element name="album" type="marist:AlbumType" />
</schema>
album.xml:
<?xml version="1.0" encoding="iso-8859-1"?>
<album xmlns="http://www.marist.edu/msis517">
<photo id="1">
<title>Jason and I Egging Houses</title>
<filename>egging1996.jpg</filename>
<width>640</width>
<height>480</height>
</photo>
<photo id="2">
<title>Senior Prom 1999</title>
<filename>prom1999.jpg</filename>
<width>768</width>
<height>1024</height>
</photo>
<photo id="3">
<title>Marist Bowling Championships</title>
<filename>mbowlchampionships2001.jpg</filename>
<width>1280</width>
<height>1440</height>
</photo>
<photo id="4">
<title>WWE Live Event - Edge</title>
<filename>wwepoughkeepsie-edge.jpg</filename>
<width>2140</width>
<height>2820</height>
</photo>
<photo id="5">
<title>WWE Live Event - Batista</title>
<filename>wwepoughkeepsie-batista.jpg</filename>
<width>2140</width>
<height>2820</height>
</photo>
</album>
*---------------------------------*
Posted at: http://www.GroupSrv.com
*---------------------------------*
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com