Win a copy of AWS Security this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

XML namespace url doubt

Ranch Hand
Posts: 243
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have doubt regarding XML namespace.
FOr below example in

<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
<Name>John doe</Name>
<Street>4140 Network Circle</Street>
<City>Santa Clara</City>

Can any one tell what it means will it refer any document.
I am not getting any clear idea of it.
what the usage of the url
As I dont have practical experience of JWS.
Can any one elaborate on this.
Thanks in advance.
Posts: 2968
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"" in xmlns="" isn't a URL (Universal Resource Locator) it is a URI (Universal Resource Identifier). A URI isn't an address, so doesn't have to "point" to anything. In this particular case the location of the schema for the "" elements is given by
xsi:schemaLocation=" file:./CInfoXmlDoc.xsd"
so the schema is in the same directory as this XML file under the name of CInfoXmlDoc.xsd.

xmlns="" identifies the default namespace for any nested elements without a prefix. So the fully qualified names for the elements are actually:

See also here and here

Here. Have a potato. I grew it in my armpit. And from my other armpit, this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic