> Does the following URL in the instance document
<snip>
> in the schema document, require the machine to be
> connected to the internet ? 

No you don't need to be connected to the internet.

> If NOT, are these URLs stored locally in the Xerces
> utilities ( some string pool ?? ) and get compared
> with the one's getting set ? => I observed, that the
> validation starts failing, if I change this values. 
> 
> Any insight will be helpful. 

Namespace declarations (which is what these are) are just unique strings identifying 
the namespace to which the prefix is bound (e.g. xsd). A processor is allowed to 
handle a namespace in different ways, but for a "standard" namespace such as for XML 
Schema the processor doesn't actually need to go resolve the namespace and determine 
how to handle it -- it's built in. For validating with XML Schema the namespace does 
have to be exactly what the namespace value is -- otherwise xerces can't know that the 
prefix xsd is referring to the standard XML Schema.

Note that namespace names (e.g. http://www.w3.org/2001/XMLSchema) are not required to 
even *be* urls or be urls that resolve to anything. The namespace declaration 
xmlns:foo="Dkdfjsiex8023wndDKsdkS" is a valid declaration. Probably not a very useful 
one, but valid. If you wanted to validate nodes bound to that namespace (e.g. foo:tag) 
then you want to give the processor a hint as to where to find the schema for the 
namespace. That can be done in code or by using the xsi:schemaLocation attribute in 
the xml document.

A good short article on namespaces: 
http://msdn.microsoft.com/library/en-us/dnexxml/html/xml05202002.asp

Rachael

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to