Groups | Blog | Home
all groups > dotnet xml > april 2005 >

dotnet xml : xml namespace


Jinsong
4/2/2005 7:50:06 PM
Hi:

One of the attribute in my XML document is xml:id. how can I add this
attribute to a XmlElement? I tried to use
http://www.w3.org/XML/1998/namespace as name space in the SetAttribute
function, but it doesn't work.
Jinsong
4/2/2005 8:24:01 PM
Your link isn't working, but I think you are telling me that I can find
answer at www.w3.org right?
Nick Malik [Microsoft]
4/2/2005 10:39:55 PM
The link works for me. The link is to a single page with the following
content:
---------------------------------------
Sorry to go off-topic, but the "Significant W3C Confusion over Namespace
Meaning and Policy" thread touched on how Microsoft's XML tools handle
the XML namespace attributes. The comments in [1] and [2] refer to the
situation in .NET 1.1 and future plans as of when Dare was in the
WebData XML team. He indicated in his caveat that plans may have
changed since then, and they have: the team has resolved the issues with
xml:base and XBRL discusses, and the "Whidbey" release of .NET Framework
will reflect this.

Specifically, the default schema for the xml namespace in .NET 2.0 is a
snapshot of http://www.w3.org/2001/xml.xsd. Users, however, can specify
any schemaLocation including "http://www.w3.org/2001/xml.xsd" to get the
current contents. We use the built-in snapshot only if no resolvable
location was provided along with the import. The default schema includes
xml:base, and we currently test the code with XBRL schemas.

Support for xml:id semantics, of course, will not be added before there
is a W3C Recommendation.

Please follow up via http://blogs.msdn.com/xmlteam/contact.aspx since it
is clearly off-topic for www-tag. If there is a demand I'll setup a
blogs.msdn.com/xmlteam post at which we can have further public
discussion of this.

Michael Champion
Program Manager - XML Standards, Microsoft WebData XML

---------------------------------------

I do not know if this answers your question or not.


--
--- Nick Malik [Microsoft]
MCSD, CFPS, Certified Scrummaster
http://blogs.msdn.com/nickmalik

Disclaimer: Opinions expressed in this forum are my own, and not
representative of my employer.
I do not answer questions on behalf of my employer. I'm just a
programmer helping programmers.
--
[quoted text, click to view]

Bjoern Hoehrmann
4/3/2005 6:09:44 AM
* Jinsong wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

http://www.w3.org/mid/EB0A327048144442AFB15FCE18DC96C704E82CEB@RED-MSG-31.redmond.corp.microsoft.com
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
Bjoern Hoehrmann
4/3/2005 9:09:26 AM
* Jinsong wrote in microsoft.public.dotnet.xml:
[quoted text, click to view]

The link works for me, it redirects to

http://lists.w3.org/Archives/Public/www-tag/2005Feb/0141.html

if that does not work for you either, you can

  http://www.google.com/search?q=http://lists.w3.org/Archives/Public/www-tag/2005Feb/0141.html

use Google's cache version of the document.
--
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
AddThis Social Bookmark Button