473,387 Members | 1,705 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Novice question about namespaces

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,
Eric Snyder
Nov 12 '05 #1
1 1247
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

"flycast" <fl*****@discussions.microsoft.com> wrote in message
news:43**********************************@microsof t.com...
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,
Eric Snyder

Nov 12 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

18
by: Steven Bethard | last post by:
In the "empty classes as c structs?" thread, we've been talking in some detail about my proposed "generic objects" PEP. Based on a number of suggestions, I'm thinking more and more that instead of...
5
by: Marian | last post by:
Hi, I am totaly novice in .NET and I am studying a book about this. There was mentioned "assembly". I did not understand, how function does it has . I would like to know the exact run of code...
24
by: Marcin Vorbrodt | last post by:
Here is an example of my code: //Header file #include <vector> using std::vector; namespace Revelation { // class definitions, etc... // class members are of type std::vector }
5
by: Pekka Niiranen | last post by:
Hi there, I have two scripts. The first "main.py" sets some variables and then imports another called "gen.py". The idea is to provide "main.py" that defines some paths, variables etc. without...
5
by: EMonaco | last post by:
All, I have a simple C# window app under MyApp namespace it has a class Form1. I've added another class .cs file. Now this class I want to share with many projects, so I figured I'd change this...
38
by: Arjang | last post by:
http://www.codeproject.com/useritems/CSharpVersusVB.asp
7
by: Peter Kirk | last post by:
Hi, there is a logging service called "log4net". It uses namespaces such as "log4net" and "log4net.Appender". If I am writing my own software, would it be considered bad style to use...
16
by: TT (Tom Tempelaere) | last post by:
Hi all, I created an XSD to define the structure of an XML file for my project. I made an XML file linked to the XSD using XmlSpy. The problem is that if I read the file using .NET XmlDocument...
6
by: Juha Nieminen | last post by:
Whenever one sees example C++ code basically anywhere, be it in a book, in a tutorial in the internet, in an online forum or whatever, I would estimate that at least in 99% of cases one sees the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.