Next in thread → Next in month →

RE: [xml-dev] Help Needed to create an XSD

From
Michael Kay <>
To
'Cyril' <>, 'Vladimir Gapeyev' <>
Date
2005-10-04T18:38:46Z
Thread
RE: [xml-dev] Help Needed to create an XSD
> However, when my application receives the 3rd party xml, it 
> does not have
> the prefix . Hence when I append the XML  file 
> <rptTransmit></rptTransmit>,
> will it still be valid even though there is no prefix ns1: as 
> it is defined
> in the XSD?

Prefixes are just a local shorthand for a namespace URI, and they have no
significance outside the document (in fact, the element) where they are
defined. There's no need to use the same prefixes in the schema and the
instance document, so long as the namespace URIs match.

(Whoever invented this genuinely believed at the time that they were making
things easy for people).

Michael Kay
http://www.saxonica.com/
Next in thread → Next in month →