I have some XML tagged string as follows.
<Processor>AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ 2.31 GHz</Processor>
<ClockSpeed>2.31</ClockSpeed>
<NumberOfCores>2</NumberOfCores>
<InstalledMemory>2.00</InstalledMemory>
<OperatingSystem>Windows 7 Professional</OperatingSystem>
How can I detect the data type automatically using python? For example, "AMD Athlon(tm) 64 X2 Dual Core Processor 4400+ 2.31 GHz" -> string, "2.31" -> float, and on.
I need this functionality as I need to make SQLite Table out of the XML data something like
CREATE table ABC (Processor string, ClockSpeed float ... )