473,491 Members | 2,133 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Convert from XSD types to/from .NET types

Hi there,

Following link shows the mapping between the types:
http://msdn.microsoft.com/library/de...eworkTypes.asp

But I don't see how I can convert them. I read my values from the XML file, and later save them back. I use dateTime's for instance and I don't see a way instantly. Any help appreciated.

Thanks,
--
Tom Tempelaere.
Nov 16 '05 #1
2 4408
> Following link shows the mapping between the types:
http://msdn.microsoft.com/library/default.asp?url=/library/en->us/cpguide/html/cpconDataTypeSupportBetweenXSDTypesNETFrameworkTyp es.as>p

But I don't see how I can convert them. I read my values from the XML file, and >later save them back. I use dateTime's for instance and I don't see a way >instantly. Any help appreciated.


Duh, had to read on a little ;-)

http://msdn.microsoft.com/library/de...ctmodelsom.asp

Cheers,
--
Tom Tempelaere.
Nov 16 '05 #2
Hello Tom,

You should just use XSD and the XML Serializer.
Best regards,

Henrik Dahl

"TT (Tom Tempelaere)" <_|\|_0$P@|/\|titi____AThotmail.com|/\|@P$0_|\|_>
wrote in message news:E0**********************************@microsof t.com...
Following link shows the mapping between the types:
http://msdn.microsoft.com/library/default.asp?url=/library/en->us/cpguide/html/cpconDataTypeSupportBetweenXSDTypesNETFrameworkTyp es.as>p
But I don't see how I can convert them. I read my values from the XML
file, and >later save them back. I use dateTime's for instance and I don't
see a way >instantly. Any help appreciated.
Duh, had to read on a little ;-)

http://msdn.microsoft.com/library/de...ctmodelsom.asp
Cheers,
--
Tom Tempelaere.

Nov 16 '05 #3

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

Similar topics

4
5340
by: Richard Hollenbeck | last post by:
I'm trying to write some code that will convert any of the most popular standard date formats twice in to something like "dd Mmm yyyy" (i.e. 08 Jan 1908) and compare the first with the second and...
4
3597
by: Eric Lilja | last post by:
Hello, I've made a templated class Option (a child of the abstract base class OptionBase) that stores an option name (in the form someoption=) and the value belonging to that option. The value is...
8
3638
by: Joe | last post by:
I have a web service which returns many types (classes) to match the return type. I want to cast the return type to the actual class type. For example: namespace Test { class MyClass { ...
1
5732
by: Champika Nirosh | last post by:
Hi, I want to convert ms sql data types to c# system types.. as an example bit >>> System.Boolean money >>> System.decimal etc
3
9287
by: Mike Miller | last post by:
What is the best way to convert a managed unsigned int64 to an unsigned long? Basically I need to do the following: System::UInt64 managedInt = 10; unsigned long unmanagedInt; unmanagedInt =...
7
30750
by: Jim Bancroft | last post by:
Hi everyone, A basic one here, I think. I haven't found the pattern yet, but sometimes when I cast a variable to another type using the "C" style cast operator the compiler refuses to play...
8
8323
by: Prakash | last post by:
Hi Friends, Using Remoting concept, i have send WCHAR values from VC++.net applicaiton to C# applicaiton. In my C# application it is treated as unsigned shot. I need to convert it back to string...
2
7213
by: Vincent RICHOMME | last post by:
Hi, I am developping a software to test smartcard and one of my class is shown below : class SCardCmd { public: SCardCmd(const wxString& strCardName, const wxString& strCmdName):...
7
16611
by: groups | last post by:
This is my first foray into writing a generic method and maybe I've bitten off more than I can chew. My intent is to have a generic method that accepts a value name and that value will be...
9
17489
by: Marco Nef | last post by:
Hi there I'm looking for a template class that converts the template argument to a string, so something like the following should work: Convert<float>::Get() == "float"; Convert<3>::Get() ==...
0
6978
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7154
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,...
0
7190
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6858
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7360
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4881
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4578
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3076
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
633
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.