Novice question about namespaces

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • flycast

    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
  • Mickey Williams [C# MVP]

    #2
    Re: Novice question about namespaces

    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:



    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:



    --
    Mickey Williams
    Author, "Visual C# .NET Core Ref", MS Press
    We turn opportunity into reality—combining our industry expertise and AI innovation assets to drive growth, efficiency, and competitive advantage.





    "flycast" <flycast@discus sions.microsoft .com> wrote in message
    news:43FEE742-1BEA-4FD4-9033-0496C048C328@mi crosoft.com...[color=blue]
    > 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[/color]
    schema[color=blue]
    > 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[/color]
    on[color=blue]
    > using xml for storing application configurations for a vb.net stand alone[/color]
    pc[color=blue]
    > type application?
    >
    > Thanks,
    > Eric Snyder[/color]


    Comment

    Working...