• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

URI syntax in namespace

 
Ranch Hand
Posts: 191
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic