|
List Info
Thread: XS:IMPORT SCOMP error
|
|
| XS:IMPORT SCOMP error |
  United States |
2007-07-30 08:25:44 |
|
|
I have an XSD that uses xs:import to import another everything validates in XMLSPY however, I get the following error when I try to SCOMP...
SCOMP ERROR:
C:>scomp -out C:xml2.2.0XmlBeansdisclaimersservice2.2.0.jar c:xml
2.2.0schemasdisclaimersdisclaimersservice.xsd -compiler c:javajdk1.5.0_11
binjavac.exe -src c:xml2.2.0src
disclaimersservice.xsd:5:2: error: Could not find resource - invalid location UR
L: Illegal character in opaque part at index 2: C:xml2.2.0schemasdisclaimers
disclaimers.xsd
disclaimersservice.xsd:9:5: error: src-resolve: element 'disclaimer http://www.xxx
.com/schemas/disclaimers/disclaimers' not found.
XSD 1:
<xs:schema xmlns="http://www.xxx.com/schemas/disclaimers/disclaimers" xmlns s="http://www.w3.org/2001/XMLSchema" targetNamespace="http://www.xxx.com/schemas/disclaimers/disclaimers">
XSD 2:
<xs:schema xmlns="http://www.xxx.com/schemas/disclaimers/disclaimersservice" xmlns s="http://www.w3.org/2001/XMLSchema"
xmlns:dis="http://www.xxx.com/schemas/disclaimers/disclaimers" targetNamespace="http://www.xxx.com/schemas/disclaimers/disclaimersservice">
<xs:import namespace="http://www.xxx.com/schemas/disclaimers/disclaimers"
schemaLocation="C:xml2.2.0schemasdisclaimersdisclaimers.xsd"/>
Any ideas?
Matt
IMPORTANT: E-mail sent through the Internet is not secure. Legg Mason therefore
recommends that you do not send any confidential or sensitive information to us
via electronic mail, including social security numbers, account numbers, or personal
identification numbers. Delivery, and or timely delivery of Internet mail is not
guaranteed. Legg Mason therefore recommends that you do not send time sensitive
or action-oriented messages to us via electronic mail.
This message is intended for the addressee only and may contain
privileged or confidential information. Unless you are the intended
recipient, you may not use, copy or disclose to anyone any information
contained in this message. If you have received this message in error,
please notify the author by replying to this message and then kindly
delete the message. Thank you. |
|
| Re: XS:IMPORT SCOMP error |

|
2007-07-30 13:39:38 |
|
Hi Matt, The value you ar using for your schemaLocation is an invalid URI and that is probably why xmlbeans is failing. Your XSD uses the following: schemaLocation
="C:xml2.2.0schemasdisclaimersdisclaimers.xsd" and that should probably be something like:
schemaLocation="file:// ... /disclaimers.xsd
"
information on valid values for an anyURI type can be found at this URL http://www.w3.org/TR/xmlschema-2/#anyURI
Hope this helps, -Jacob Danner
On 7/30/07, Dicks, Matthew < MDicks lmus.leggmason.com">MDicks lmus.leggmason.com> wrote:
I have an XSD that uses xs:import to import another everything validates in XMLSPY however, I get the following error when I try to SCOMP...
SCOMP ERROR:
C:>scomp -out C:xml2.2.0XmlBeansdisclaimersservice2.2.0.jar c:xml
2.2.0schemasdisclaimersdisclaimersservice.xsd -compiler c:javajdk1.5.0_11
binjavac.exe -src c:xml2.2.0src
disclaimersservice.xsd:5:2: error: Could not find resource - invalid location UR
L: Illegal character in opaque part at index 2: C:xml2.2.0schemasdisclaimers
disclaimers.xsd
disclaimersservice.xsd:9:5: error: src-resolve: element 'disclaimer http://www.xxx
.com/schemas/disclaimers/disclaimers' not found.
XSD 1:
<xs:schema xmlns
="http://www.xxx.com/schemas/disclaimers/disclaimers
" xmlns s="
http://www.w3.org/2001/XMLSchema"
targetNamespace="
http://www.xxx.com/schemas/disclaimers/disclaimers">
XSD 2:
<xs:schema xmlns
="http://www.xxx.com/schemas/disclaimers/disclaimersservice
" xmlns s="
http://www.w3.org/2001/XMLSchema"
xmlns:dis="
http://www.xxx.com/schemas/disclaimers/disclaimers" targetNamespace
="http://www.xxx.com/schemas/disclaimers/disclaimersservice
">
<xs:import namespace
="http://www.xxx.com/schemas/disclaimers/disclaimers
"
schemaLocation="C:xml2.2.0schemasdisclaimersdisclaimers.xsd
"/>
Any ideas?
Matt
IMPORTANT: E-mail sent through the Internet is not secure. Legg Mason therefore
recommends that you do not send any confidential or sensitive information to us
via electronic mail, including social security numbers, account numbers, or personal
identification numbers. Delivery, and or timely delivery of Internet mail is not
guaranteed. Legg Mason therefore recommends that you do not send time sensitive
or action-oriented messages to us via electronic mail.
This message is intended for the addressee only and may contain
privileged or confidential information. Unless you are the intended
recipient, you may not use, copy or disclose to anyone any information
contained in this message. If you have received this message in error,
please notify the author by replying to this message and then kindly
delete the message. Thank you. |
|
[1-2]
|
|
|
about | contact Other archives ( Real Estate discussion Medical topics )
|