XML Schema (XSD) type <-> .NET Framework type

  • Thread starter Thread starter Mike Strieder
  • Start date Start date
M

Mike Strieder

How can i get the text of the System.Type e.g. "base64Binary" from the .Net
type "byte[]"
I can not found any Function to give back this Schematype as string.

thx for your help
 
Hi Mike,

You can get the mapping between the XML Schema (XSD) type and .Net
Framework type in the link below:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpcondatatypesupportbetweenxsdtypesnetframeworktypes.asp

In the mapping table in the link, you can see that there may be the same
..Net Framework type but maps with multi XML Schema (XSD) type (Such as
hexBinary and base64Binary both map with System.Byte[]). So what you want
is not a single-mapping.

However, there is XmlSchemaDatatype.ValueType property which can get the
..NET Framework type for the specified XML Schema definition language (XSD)
type.

Hope this helps,

Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.

--------------------
| From: "Mike Strieder" <[email protected]>
| Subject: XML Schema (XSD) type <-> .NET Framework type
| Date: Sat, 18 Oct 2003 17:44:18 +0200
| Lines: 7
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <[email protected]>
| Newsgroups: microsoft.public.dotnet.languages.csharp
| NNTP-Posting-Host: line-g-15.adsl-dynamic.inode.at 62.99.226.15
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP12.phx.gbl
| Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.languages.csharp:192320
| X-Tomcat-NG: microsoft.public.dotnet.languages.csharp
|
| How can i get the text of the System.Type e.g. "base64Binary" from the
..Net
| type "byte[]"
| I can not found any Function to give back this Schematype as string.
|
| thx for your help
|
|
|
 
Back
Top