Hi all I have been working on annotated time line. In that I am taking data from an XML file. But on parsing the xml data the program complains for date format error as shown below.
XHR finished loading: " file:///C:/Documents%20and%20Settings/dprakash/Desktop/VVI/TRY/try_swat1.xml ". www.google.com/uds/api/visualization/1.0/03537a5e2d997d1731ec06c75629ba9e/default,annotatedtimeline+en_US.I.js:151<http://www.google.com/uds/api/visualization/1.0/03537a5e2d997d1731ec06c75629ba9e/default,annotatedtimeline+en_US.I.js>Uncaught Error: Type mismatch. Value 04/01/2010 does not match type datetime in column index 0 The code reading the xml file :- var date = x[i].getElementsByTagName("date")[0].childNodes[0].nodeValue; var sniper = x[i].getElementsByTagName("sniper")[0].childNodes[0].nodeValue; var critical = x[i].getElementsByTagName("critical")[0].childNodes[0].nodeValue; var top10 = x[i].getElementsByTagName("top10")[0].childNodes[0].nodeValue; data.setValue(i,0,date); data.setValue(i,1,sniper); data.setValue(i,2,critical); data.setValue(i,3,top10); I am not able to spot the error. is it in the code or in xml file format (<date>04/02/2010</date>) Kindly suggest the correct date format that will eliminate this problem. Thanks for interest. :) -- Yours sincerely Divya Prakash :) -- You received this message because you are subscribed to the Google Groups "Google Visualization API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-visualization-api?hl=en.
