Schema namespace questions

EDN Admin

Well-known member
Joined
Aug 7, 2010
Messages
12,794
Location
In the Machine
<div style="color:Black;background-color:White; <pre>
<xs:schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xs="http://www.w3.org/2001/XMLSchema-datatypes"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:myschema=<span style="color:Blue; <<span style="color:#A31515; a <span style="color:Red; href<span style="color:Blue; =<span style="color:Black; "<span style="color:Blue; http://www.domain.com/schemas<span style="color:Black; "<span style="color:Blue; >http://www.domain.com/schemas<span style="color:Blue; </<span style="color:#A31515; a<span style="color:Blue; >
version="1.0
<span style="color:Blue; </<span style="color:#A31515; xs<span style="color:Blue; :<span style="color:#A31515; schema<span style="color:Blue; >


[/code]

I have few questions about schema.<br/>
1>if my current schemas (Mentioned above) file name is "MySchema1.xsd" then does the namespace also has to be xmlns:myschema=" http://www.domain.com/schemas/MySchema1 http://www.domain.com/schemas/MySchema1 " ?? or the one i mentioned
above is correct?
2>Does schema actually has to exists on the namespace location. eg. in this case does the MySchema1.xsd has to exists at
http://www.domain.com/schemas http://www.domain.com/schemas <br/>
3>what if my company does not have a domain. or if the domain name http://www.domain.com
www.domain.com is different than application domain name.


View the full article
 
Back
Top