1 //Read_check.xml2<?xml version="1.0"encoding="UTF-8"?>3<note year=" -" Date=" -"Month=" A">4<ID> the</ID>5<password>fe-d0- --xx</password>6</note>
1[Email protected]:~/desktop/project_xml_mysql$GCC-O read_xml read_xml.c-lmxml-Lpthread2Read_xml.c:infunction' main ':3READ_XML.C: -:9: warning:assignment discards ' const ' qualifier from pointer target type [enabled by default]4Id_text=mxmlgettext (ID,0);5^6READ_XML.C: in: the: warning:assignment discards ' const ' qualifier from pointer target type [enabled by default]7Password_text=mxmlgettext (Password,0);8^9[Email protected]:~/desktop/project_xml_mysql$./Read_xmlTenYear - One Date: - AMonth A - the -fe-d0- --xx the - This problem occurs when the const qualifier is lost, in Char Id_text,password_text, preceded by a const, which solves the problem perfectly. - -[Email protected]:~/desktop/project_xml_mysql$GCC-O read_xml read_xml.c-lmxml-Lpthread +[Email protected]:~/desktop/project_xml_mysql$./Read_xml -Year - + Date: - AMonth A at the -fe-d0- --xx -[Email protected]:~/desktop/project_xml_mysql$ - -References: http://www.cnblogs.com/dyllove98/archive/2013/07/24/3212538.html
So far, the use of the Mxml library function, the C language, created a simple XML file, and implemented the reverse to invoke some API to parse these XML files.
The next step is implementation, which synchronizes the parsed data to the MySQL database.
Issues that occur when you run READ_XML.C _xml file manipulation Step Two