NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

XmlTextWriter.DataTypeNamespace

Gets or sets the DataTypes namespace which determines how the strongly typed values are converted to XML text.

[Visual Basic]
Public Property DataTypeNamespace As String
[C#]
public string DataTypeNamespace {get; set;}
[C++]
public: __property String* get_DataTypeNamespace();
public: __property void set_DataTypeNamespace(String*);
[JScript]
public function get DataTypeNamespace() : String;
public function set DataTypeNamespace(String);

Property Value

Supported namespaces are:

Namespace Description
urn:schemas-microsoft-com:datatypes Microsoft XML-Data Schema (XDR) datatypes namespace.
http://www.w3.org/1999/XMLSchema-datatypes The W3C Schema (XSD) datatypes namespace (http://www.w3.org/TR/xmlschema-2/).

For example, if the namespace is urn:schemas-microsoft-com:datatypes then boolean values are written out as "0" or "1". This guarentees that other implementations of this datatype namespace (in MSXML and SQL Server, for example) can read the XML produced by this writer.

See Also

XmlTextWriter Class | XmlTextWriter Members | System.NewXml Namespace