XML Schema - Beginner question
Posted: Sun Apr 29, 2007 12:47 am
So I just started looking at Schemas and I'm a liitle confused as to how to validate an xml instance file using a schema in Oxygen. I have my xml file:
<?xml version="1.0"?>
<note
xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="C:\Users\tsoutherland.BAI\Desktop\XML Schema note.xsd">
<to>Tone</to>
<from>Andrea</from>
<heading>Reminder</heading>
<body>Hello!!</body>
</note>
And my schema is setup with contraints that this xml file constrain to. When I click the Validate button in oxygen I get a Failed to Read Schema Document - could not find the document. Am I referencing the schema correctly above? It's on my local machine and I just want to validate it for testing purposes. The schema file lives in the same directory as my xml file.
<?xml version="1.0"?>
<note
xmlns="http://www.w3schools.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="C:\Users\tsoutherland.BAI\Desktop\XML Schema note.xsd">
<to>Tone</to>
<from>Andrea</from>
<heading>Reminder</heading>
<body>Hello!!</body>
</note>
And my schema is setup with contraints that this xml file constrain to. When I click the Validate button in oxygen I get a Failed to Read Schema Document - could not find the document. Am I referencing the schema correctly above? It's on my local machine and I just want to validate it for testing purposes. The schema file lives in the same directory as my xml file.