Hello,
I'm trying to compile a schema from a 3rd party and I've run into
namespace/location problems. I'm a newbie to schema and XML so I
apologies if this is basic stuff.
There are multiple .xsd files that I need to compile. Most of them
include a main file we'll call x.xsd. I'm trying to compile a.xsd who's
header looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="
http://www.someone.com/foo/bar"
xmlns:api="
http://www.someone.com/foo/bar"
xmlns:blah="
http://www.someone.com/foo/bar"
xmlns:xsd="
http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified">
<xsd:include schemaLocation="
http://www.someone.com/foo/bar/x.xsd"/>
<xsd:annotation>
.....
The location "
http://www.someone.com/foo/bar/x.xsd" doesn't exist. I
have the x.xsd file in the same directory as a.xsd on my local machine.
When I try to compile a.xsd, I get the following error:
src-include.0: Failed to read included schema document
'
http://www.someone.com/foo/bar/x.xsd'.
line 4 of a.xsd
Can I change the namespace stuff to be the path on my local machine and
not hose up everything company "someone" is providing me? Does this
break any kind of rules for XML Schema?
Thanks,
Curt