Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old August 12th, 2008, 08:05 AM
Tony Johansson
Guest
 
Posts: n/a
Default basic xml

Hello!

I'm reading a book and I'm trying to learn the very basic about xml.

Can somebody give me an explanation why namespace are used in xml
perhaps with a simple example that demonstate the usefulness.

//Tony


  #2  
Old August 12th, 2008, 12:15 PM
Martin Honnen
Guest
 
Posts: n/a
Default Re: basic xml

Tony Johansson wrote:
Quote:
Can somebody give me an explanation why namespace are used in xml
perhaps with a simple example that demonstate the usefulness.
If there were no namespaces then you could not mix different XML
vocabularies as you could not distinguish for instance the XHTML 'table'
elment from a 'table' element in another vocabulary. Using namespaces
the complete name of the XHTML 'table' element is
{http://www.w3.org/1999/xhtml}table where the URL
'http://www.w3.org/1999/xhtml' provides the globally unique context for
the local name 'table'. And any {http://example.com/foo}table is
different from that.

--

Martin Honnen --- MVP XML
http://JavaScript.FAQTs.com/
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles