• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

URI syntax in namespace

 
Elizabeth King
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following is right?
<order xmlns="http://abc.com/xml/namespace" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://abc.com/xml/namespace order.xsd">
Should there be a whitespace in xsi:schemaLocation?
Can I do following?
xsi:schemaLocation="http://abc.com/xml/namespace/order.xsd">
xsi:schemaLocation="http://abc.com/xml/namespace/file rder.xsd">
xsi:schemaLocation="http://abc.com/xml/namespace file rder.xsd">
Thanks.
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The schemaLocation attribute lets you associate a URL (namespace) with the actual Schema file (or even multiple pairs).
Please look at -

http://www.ibiblio.org/xml/books/bible2/chapters/ch24.html#d1e8500

Cheers,
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic