| The main content and outcome of"the Research on New kinds of XML Data Parsing Technologies", a subproject of"The Research on Western Companies Oriented XML Web Service Technology"project (the number is ninth item in the [2004] 241 st Document issued by State Ethnic Affairs Commission ) is covered. The project is one of the important research projects of the higher schools in 2004 within SEAC's cognizance.The main objective is to discuss on the design and research of a XML data parser based on StAX (Streaming API for XML). The development status of the XML data parsing API at home and abroad is analyzed, as well as the parsing mechanism, characteristics and applied fields of XML data parsing APIs an present, including DOM,SAX,JAXP,JDOM,dom4j,JAXB, are analyzed. The design idea, parsing principle and parsing method of the new type of Streaming API for XML data parsing are focused, especially the connotations of XML data parsing technologies based on both of the cursor API and the event iterator API. Then, A design schema of XML data parser based on both of the cursor API and the event iterator API is put forward. Also a prototype of XML data parser is developed, that can complete some operations, such as reading and retrieving XML files, as well generating reports. Finally, a test program and some cases are designed for contrasting the StAX parsing technology with the other parsing techniques, such as DOM, SAX, JAXP, JDOM, dom4j, JAXB. The tests for time performance, CPU using efficiency and memory occupancy efficiency of above APIs have been done. The test outcomes are analyzed and some useful conclusions are drawn, which can be provided as references at making technological decisions for home companies to do projects of informalization construction. |