Hello,
I have a MySQL database. I´m getting an XML when calling from an Excel macro a WebService that sends a Dataset serialized in XML format.
The problem is that XML dateTime values are coded using ISO 8601 standard within the XML UTC part included and it seems that Excel is unable to interpret it correctly.
This is an XML example with UTC data. Opening the XML file from Excel I'm getting a warning "Some data was imported as text" and the value written in the cell is, of course, text. If UTC information is removed (values after '+' symbol) then datetime field is correctly translated to Excel.
I don't know how to fix this. I need this to be done in an automatic way because I have to load a big number of registers from the DataBase. Code to translate to desired values is very time consuming. The same problem for TIME values (PT10H)<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<NewDataSet xmlns="">
<vplan diffgr:id="vplan1" msdata:rowOrder="0">
<DBK>6628</DBK>
<COD>3000031</COD>
<FIRST_DATE>2012-10-26T19:40:31+02:00</FIRST_DATE>
<FIRST_TIME>PT9H</FIRST_TIME>
</vplan>
<vplan diffgr:id="vplan2" msdata:rowOrder="1">
<DBK>6733</DBK>
<COC>201109004730</COC>
<FIRST_DATE>2012-11-03T13:21:06+01:00</FIRST_DATE>
<FIRST_TIME>PT10H</FIRST_TIME>
</vplan>
</NewDataSet>
</diffgr:diffgram>
I tried to attach an XML Schema (using XMLImportXML function), but I don't really how to do it and if it could be the solution.
Please, give me some advice to solve this!!
Thanks!
Jesús
Bookmarks