As a beginner to XML, I have a question about the XML namespace. When I read those articles about this issue, I got to know that the namespaces are just identifiers, and they are not guaranteed to point to anything. I'm a little confused with that. Does it mean I can declare a namespace using a URI that does not exist at all? For example is it correct to write like this: <text xmlns="http://www.doesNotExist.com/"> ? I wrote a simple xml file as follow:
<?xml version="1.0" encoding="UTF-8"?>
When I try to validate it using XML SPY 4.1, I got the following error: "Unable to locate a reference to a supported schema kind(DTD, DCD, W3C Schema, XML-data, Biztalk) within this document instance". Then it seems a namespace must be assosiated with some certain schema. I got confused. In my point of view, some XML namespace URIs were predefined, such as xmlns:xs="http://www.w3.org/2001/XMLSchema" . They should be associated with some .xsd or dtd files, for example XMLSchema.xsd. So my question is: Is my above thought right? If I am right, then how to associate the .xsd file with the URL?
Thanks a lot!
welcome to enjoy 263 Freemail http://freemail.x263.net
Tel:010-64240315 Fax:010-64240295 ?1998-2001版权所有
263服务热线 010-64262631 [log in to unmask]