all groups > dotnet xml > september 2004 >
You're in the

dotnet xml

group:

Novice question about namespaces


Novice question about namespaces flycast
9/29/2004 1:05:06 PM
dotnet xml:
I have heard that using xml for configurations on applications is a good
thing. I have started to work with learning xml and have seen this
"http://tempuri.org" showing up automatically when I create the schema. I
have visited the site and it makes me think that I will have to post a schema
to a web site in order to use xml.

I am sure that this is not true so can somebody point me in the direction on
using xml for storing application configurations for a vb.net stand alone pc
type application?

Thanks,
Re: Novice question about namespaces Mickey Williams [C# MVP]
9/29/2004 2:05:59 PM
http://tempuri.org is injected by some tools as a namespace when no
namespace is explicitly provided. The namespace is just a scoping
mechanism -- since I own the servergeek.com domain, I can tag my types with
namespaces like:

http://schemas.servergeek.com/2004/09

because I have some implicit rights to the domain, and it's unlikely that
another developer would use my domain as part of their namespace.

You definitely do not need to post the schema at the address -- the URI in
the schema is not intended to be dereferenced from the namespace
declaration.

A somewhat dry but best-evidence document on namespaces is available at
W3.org:
http://www.w3.org/TR/REC-xml-names/


--
Mickey Williams
Author, "Visual C# .NET Core Ref", MS Press
www.neudesic.com
www.servergeek.com



[quoted text, click to view]

AddThis Social Bookmark Button