xmlaltovauser12 |
Newbie |
|
|
|
|
None Specified |
|
Thursday, April 7, 2011 |
Thursday, April 7, 2011 8:44:25 PM |
3 [0.02% of all post / 0.00 posts per day] |
|
I got an error resolved..
This is what i changed in my xml file.
<?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://eobjects.org/analyzerbeans/configuration/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://eobjects.org/analyzerbeans/configuration/1.0 abc.xsd"> </configuration>
|
Hello Altova users
I am using xml spy enterprise edition 2011 software to validate xml file agaist xsd file. But both the files are well formed. But when i put a refrence of schema file in xml file then it gives me an error as
Unable to locate a reference to a supported schema type (DTD, W3C Schema) within this document instance.
Both the files (xml and xsd) are in the same directory(location).
Xml file
<?xml version="1.0" encoding="UTF-8"?> <configuration xmlns="http://abc.org/sample/cgi/1.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://abc.org/sample/cgi/1.0/abc.xsd"> <configuration-metadata> <configuration-name>Configuration with all the datastores</configuration-name> </configuration-metadata> </configuration>
xsd file
<?xml version="1.0" encoding="UTF-8"?> <schema xmlns="http://www.w3.org/2001/XMLSchema" targetNamespace="http://abc.org/sample/cgi/1.0" xmlns:ab="http://abc.org/sample/cgi/1.0" elementFormDefault="qualified"> <element name="configuration"> <complexType> </complexType> </element>
</schema>
|
|