reading dateTime with msxml

W

winston

Hi,

I've been trying to search for this for a while now and can never find
anything. Here's my situation. I'm writing a c++ MFC application and
I'm using MSXML6 to parse an xml file. I need to parse a dateTime data
from the xml file into a time_t object. Could that be easily done in
MSXML6? Seems like an essentially simple task that MS should have
included but i just cant find documentation on this thing!

The dateTime data in my xml file looks like this

<timeStamp>2008-05-19T18:11:15</timeStamp>

Thanks
 
M

Martin Honnen

winston said:
I've been trying to search for this for a while now and can never find
anything. Here's my situation. I'm writing a c++ MFC application and
I'm using MSXML6 to parse an xml file. I need to parse a dateTime data
from the xml file into a time_t object. Could that be easily done in
MSXML6? Seems like an essentially simple task that MS should have
included but i just cant find documentation on this thing!

The dateTime data in my xml file looks like this

<timeStamp>2008-05-19T18:11:15</timeStamp>

MSXML has a property nodeTypedValue
http://msdn.microsoft.com/en-us/library/ms762308(VS.85).aspx
but that works only for XDR schema types, not for W3C XML schema types.

Other than that I don't know of a feature in MSXML to read typed values.
 
W

winston

MSXML has a property nodeTypedValuehttp://msdn.microsoft.com/en-us/library/ms762308(VS.85).aspx
but that works only for XDR schema types, not for W3C XML schema types.

Other than that I don't know of a feature in MSXML to read typed values.

Yeah i came across the XDR stuff but unfortunately im using the w3c
schema and my file type is an xsd. I appreciate your reply
nevertheless. If anyone could come up with a way to do it in my
situation, i'd appreciate it.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,172
Messages
2,570,934
Members
47,478
Latest member
ReginaldVi

Latest Threads

Top