Connecting Tech Pros Worldwide Forums | Help | Site Map

Xml Uri

Newbie
 
Join Date: Mar 2006
Posts: 2
#1: Mar 20 '06
Hello all,

Happy holi,

I have one question regarding XML schemas.

In XMl schemas we use URI to identify elements /attributes

Eg:
Expand|Select|Wrap|Line Numbers
  1. xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  2. xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  3.  
  4. <intVal xsi:type="xsd:int">0</intVal>
  5. <string xsi:type="xsd:string">guru</string>

My confusion was if the above mentioned uri is not accesable say like I might be intranet, then How does I should make use of that XM schema.

Please clear my confusion
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,166
#2: Mar 20 '06

re: Xml Uri


If you do not have access to the schema file then you can't use that schema.
Newbie
 
Join Date: Mar 2006
Posts: 2
#3: Mar 20 '06

re: Xml Uri


Yes offcourse, If XML schema is not accesable Then I can't use.
But let say I am in intranet not accesable to the following URI when I open in browser.

http://www.w3.org/2001/XMLSchema-instance

But I could able to write XML schemas with using above URI successfully ,so How URI resolves basically.
Banfa's Avatar
AdministratorVoR
 
Join Date: Feb 2006
Location: South West UK
Posts: 6,166
#4: Mar 20 '06

re: Xml Uri


Quote:

Originally Posted by sureshygraduate

But I could able to write XML schemas with using above URI successfully ,so How URI resolves basically.

I am having trouble understanding this sentence on the grounds that the gramma is a bit wonky.

I am not an XML expert, I have recently started to use XML, XML Schemas and XSLT. While doing my developing I specified a schema URI that did not exist but had the schema file in the same directory as the xml files and it appeared to find it.

I am guessing that it will look in the current directory if it can not find the URI.

Is that any help?
Reply