Issues that occur when you run READ_XML.C _xml file manipulation Step Two

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.