comp.text.xml
[Top] [All Lists]

Re: reading dateTime with msxml

Subject: Re: reading dateTime with msxml
From: Martin Honnen
Date: Wed, 16 Jul 2008 13:45:19 +0200
Newsgroups: comp.text.xml


winston wrote:

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.
--

        Martin Honnen
                                        JavaScript.FAQTs.com/">http://JavaScript.FAQTs.com/

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy