DougieDa59
Programmer
Hey folks,
I'm pretty new to XML so bare with me..
I'm trying to validate an XML file using a XSD file in the same directory. The reference I have in the xml file is:
And at the top of the XSD file:
In the XML file, I have purposely entered a string into an attribute which is defined as an integer in the XSD in the hopes that either Visual Studio or Firefox would show it up as an error but neither do.
Any ideas?
Thanks in advance...
I'm pretty new to XML so bare with me..
I'm trying to validate an XML file using a XSD file in the same directory. The reference I have in the xml file is:
Code:
<?xml version="1.0" encoding="utf-8"?>
<newsandscores xmlns:xsi="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema-instance"[/URL]
xsi:noNamespaceSchemaLocation="C:\news.xsd">
And at the top of the XSD file:
Code:
<?xml version="1.0" encoding="utf-8"?>
<xsd:schema targetNamespace="[URL unfurl="true"]http://tempuri.org/XMLSchema.xsd"[/URL]
elementFormDefault="qualified"
xmlns="[URL unfurl="true"]http://tempuri.org/XMLSchema.xsd"[/URL]
xmlns:mstns="[URL unfurl="true"]http://tempuri.org/XMLSchema.xsd"[/URL]
xmlns:xsd="[URL unfurl="true"]http://www.w3.org/2001/XMLSchema"[/URL]
In the XML file, I have purposely entered a string into an attribute which is defined as an integer in the XSD in the hopes that either Visual Studio or Firefox would show it up as an error but neither do.
Any ideas?
Thanks in advance...