P
pauljwilliams
Im trying to use an xml file that has a reference within it to an xsd
file in a schemaLocation element.
The xsd file is in the same directory as the xml file, so i've simply
got:
Code:
<jxb:bindings schemaLocation="protocol.xsd" node="/xs:schema">
All works fine....until my source root is located in a path that has
spaces in it. In other words, if the two files reside in c:/code, for
example, all is well - the schemaLocation obviously gets internally
tranlated to c:/code/protocol.xsd.
But if i then copy the code into "c:/My Code", for example, the xml
becomes ill formed, as scemaLocation becomes "c:/My Code/protocol.xsd",
with the space causing a problem.
Any thoughts on how to get around this? Is there a way to specify a URL
encoded path that will be correct wherever i locate my source tree?
file in a schemaLocation element.
The xsd file is in the same directory as the xml file, so i've simply
got:
Code:
<jxb:bindings schemaLocation="protocol.xsd" node="/xs:schema">
All works fine....until my source root is located in a path that has
spaces in it. In other words, if the two files reside in c:/code, for
example, all is well - the schemaLocation obviously gets internally
tranlated to c:/code/protocol.xsd.
But if i then copy the code into "c:/My Code", for example, the xml
becomes ill formed, as scemaLocation becomes "c:/My Code/protocol.xsd",
with the space causing a problem.
Any thoughts on how to get around this? Is there a way to specify a URL
encoded path that will be correct wherever i locate my source tree?