The invention relates to a construction project data automatic recognition and
analysis method. The method includes the following steps that: an uploaded construction project
XML file is read, and the root node and attribute of the construction project
XML file are judged, so that the format version of the construction project
XML file can be determined; corresponding analytical rules are selected according to the format version, the content of the file is read,
level data in a project, to which nodes belong, are judged according to the characteristics of the nodes in the content of the file, and a reflection mechanism is utilized to assign values to node objects according to the characteristics of the
level data; whether expenses involved in the nodes, are unit prices or combined prices are judged, and price data in the values of the node objects are correspondingly updated; and the nodes and the object values thereof are provided at the front end of the
system in a
list form so as to be previewed by a user, adjustment on the values of the node objects in a
list, which is inputted by the user, is received, and the
list is stored. With the method adopted, automatic recognition of the version of the construction project XML file, automatic recognition analysis and statistics of the data of the XML file are realized. Compared with a manual
operation mode in the prior art, the method of the invention is more efficient and more accurate.