Mega Code Archive

 
Categories / XML Tutorial / Namespace
 

Understanding URIs

A URI (Uniform Resource Identifier) is a string of characters that identifies a resource.  URI could be URL (Uniform Resource Locator), or URN (Universal Resource Name).  The first part of the URL specifies the protocol. For example, here's a URL to a web page on the Internet: http://www.google.com/intl/en/about.html  A URN looks something like this: urn:foo:a123,456  <?xml version="1.0"?> <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"   targetNamespace="http://www.rntsoft.com"    xmlns="http://www.rntsoft.com"   elementFormDefault="qualified">   <xsd:element name="name" type="xsd:string" />   <xsd:element name="source" type="xsd:string" /> </xsd:schema>