• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How do I use < include schemaLocation

 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are two schema files under the same directory "/xml_schema":
address.xsd
ipo.xsd
they have the same targetNamespace="http://www.example.com/IPO"
address.xsd is supposed to be included in ipo.xsd.
I use the following in the ipo.xsd to do this:
<include schemaLocation="http://www.example.com/IPO ../xml_schema/address.xsd">
And it does not work?
anyone can help? Thanks!
 
Tong Chen
Ranch Hand
Posts: 1011
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Even I changed it to
<include schemaLocation="address.xsd"/>
It still does not work?
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The syntax in the second post looks right .Try to use the full path name of address.xsd.
 
Jayadev Pulaparty
Ranch Hand
Posts: 662
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can you please show the contents of the xsd file that is including the other one. My suspicion is that you need to say xsd:include and not simply include. It depends on how what you define to be your default namespace also. Hence i'm interested in seeing ur schema file.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic