XML Development

Moderators: None (Apply to moderate this forum)
Number of threads: 257
Number of posts: 456

This Forum Only
Post New Thread
Single Post View       Linear View       Threaded View      f

Report
namespace questions Posted by mickeydog on 10 Feb 2007 at 5:37 PM
Some questions about namespaces. Suppose I have this:

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:="http://www.mywebsite.com"
targetNamespace="http://www.mywebsite.com"
attributeFormDefault="qualfied"
elementFormDefault="qualified"
>

1. I've defined the default namespace to be "http://www.mywebsite.com". According to just about everybody, I must also define the targetNamespace, even though it is the same as the default. Why? Wouldn't it default to the default?

2. Does there have to be some XML stuff at "http://www.mywebsite.com"?

3. What's to prevent me from specifying "http://www.google.com" for the default namespace?



 

Recent Jobs

Official Programmer's Heaven Blogs
Web Hosting | Browser and Social Games | Gadgets

Popular resources on Programmersheaven.com
Assembly | Basic | C | C# | C++ | Delphi | Flash | Java | JavaScript | Pascal | Perl | PHP | Python | Ruby | Visual Basic
© Copyright 2011 Programmersheaven.com - All rights reserved.
Reproduction in whole or in part, in any form or medium without express written permission is prohibited.
Violators of this policy may be subject to legal action. Please read our Terms Of Use and Privacy Statement for more information.
Operated by CommunityHeaven, a BootstrapLabs company.