moxol
01-01-2008, 10:02 PM
Is xsi:schemaLocation always needed in XML file?
I ask this question because I read in w3c xml schema specification that:
The schemaLocation attribute value consists of one or more pairs of URI references, separated by white space. The first member of each pair is a namespace name, and the second member of the pair is a hint describing where to find an appropriate schema document for that namespace. The presence of these hints does not require the processor to obtain or use the cited schema documents, and the processor is free to use other schemas obtained by any suitable means, or to use no schema at all.
Link is http://www.w3.org/TR/xmlschema-0/#schemaLocation
I ask this question because I read in w3c xml schema specification that:
The schemaLocation attribute value consists of one or more pairs of URI references, separated by white space. The first member of each pair is a namespace name, and the second member of the pair is a hint describing where to find an appropriate schema document for that namespace. The presence of these hints does not require the processor to obtain or use the cited schema documents, and the processor is free to use other schemas obtained by any suitable means, or to use no schema at all.
Link is http://www.w3.org/TR/xmlschema-0/#schemaLocation