Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

XML ½âÎöc++Ô´Â루ͷÎļþ£©

/*
 * XMLTool.h ÅäÖÃÎļþ½âÎö¶¯Ì¬¿âÍ·Îļþ
 *  Ö÷ÒªÊä³öº¯Êý½Ó¿Ú·Ö±ðʵÏÖ¶ÔÅäÖÃÎļþµÄ¶ÁÈ¡ºÍдÈ룬Õë¶Ô½á¹û¼¯µÄ¸´ÖÆÇå¿Õ£¬ºÍÁ½¸ö×Ö·û´®´¦Àíº¯Êý
 *  ¶ÁÈ¡ÅäÖÃÎļþ½Ó¿Ú £ºint ReadXMLFile(XML_Node_Vector *XmlNodeVector, string filepath);
 *  Ð´ÈëÅäÖÃÎļþ½Ó¿Ú £ºint WriteXMLFile(XML_Node_Vector *XmlNodeVector, string filepath,bool is_addend = true);
 *  ¸´Öƽṹ¼¯½Ó¿Ú  £ºbool VecDataCopy(XML_Node_Vector *XmlNodeVectorDest,const XML_Node_Vector *XmlNodeVectorSource);
 *  Çå¿Õ½á¹¹¼¯½Ó¿Ú      £ºbool VecDataClean(XML_Node_Vector *XmlNodeVector);
 *  ×Ö·û´®°²È«¿½±´½Ó¿Ú £ºbool strncpy_ex(char *pStrDest,const char *pStrSource,int nDestSize);
 *  ×Ö·û´®°²È«´¦Àí½Ó¿Ú  £ºbool printf_ex(char* szBuf,int nDestSize,char *szFormat, ...);
 *
 * ÅäÖÃÎļþÐÅÏ¢½á¹¹´ó¸ÅÈçÏ עÒâ <> ·ûºÅ°üÀ¨ÆäÖеÄ×Ö·û´®½öΪÏÖÔÚ˵ÃûÐÅÏ¢
 *
 * |[1234<½ÚµãÍ·Êý¾Ý>]<½ÚµãÍ·>
 * |abc<½ÚµãÇ°ÐÅÏ¢ÌåÊý¾Ý>=123<½ÚµãºóÐÅÏ¢ÌåÊý¾Ý>
 * |123<½ÚµãÇ°ÐÅÏ¢ÌåÊý¾Ý>=890<½ÚµãºóÐÅÏ¢ÌåÊý¾Ý>
 * | 
 * ×¢Ò⣺
 *  0.ËùÓÐÓÐЧÐÐÊý¾Ý±ØÐ붥¸ñÊéд·ñÕß½«²»»á¶ÁÈ¡¸ÃÐÐÊý¾Ý£¬½«×÷ΪÎÞЧÊý¾Ý´¦Àí (ËùÓÐÎÞЧÊý¾Ý½«²»Óè¶ÁÈ¡
 *   0.1£º²»¶¥¸ñÊéд
 *   0.2£º¶¥¸ñµÚÒ»¸ö×Ö·ûΪ # »ò $
 *   0.3£º¶¥¸ñµÚÒ»¸ö×Ö·ûΪ =
 *  1.½ÚµãÇ°ÐÅÏ¢ÌåÊý¾ÝÔÚ¶ÁÈ¡Êý¾ÝµÄʱºò×Ô¶¯ÉáÈ¥¿Õ¸ñ£¬¶ø½ÚµãºóÐÅÏ¢ÌåÊý¾Ý²»×ö´¦Àí£¬½«Ô­Ñù¶ÁÈ¡
 *  2. # ºÍ $ ·ûºÅΪע½â·û Óöµ½ËûÃÇ¿ªÊ¼µÄÐн«²»¶ÁÈ¡ËûÃǵÄÊý¾Ý »òÕßÔÚ²»¶¥ÐÐÊéд
 *  3.¾ßÌåÊý¾Ý½á¹¹Çë¶ÔÕÕ¶¨Òå
 *
 * createtime:2010-1-26
 * edittime:2010-1-27
 * creator:seky.gu
 * editor;seky.gu
 * mingyao.gu@hp.com
 */
#ifndef _XML_TOOL_H_
#define _XML_TOOL_H_
#include <vector>
#include <map>
#i


Ïà¹ØÎĵµ£º

´Ó±àд¿çƽ̨³ÌÐò̸CºÍC++

    ¹¤×÷ºóÎÒ×ÐϸÔĶÁÁ˹«Ë¾µÄ3DÒýÇæµÄÔ´´úÂ룬ÕâÊÇ¿îά»¤ÁËÊ®¼¸ÄêµÄÒýÇ棬Ö÷ÒªÔËÐÐÔÚXBox, PS3ºÍPCƽ̨ÉÏ¡£ºËÐIJ¿·ÖÓÃCÓïÑÔд£¬ÆäËû²¿·Ö×é¼þÓÃC++±àд¡£ÎÒÒÔÇ°ºÜÉÙÓÃCÓïÑÔ±à³Ì(°Ý´óѧ½ÌÓýËù´Í)£¬µ«¶ÁÁËÌ«¶àÕâ¿îÒýÇæµÄ´úÂëÉîÉîµÄÖÐÁËCÓïÑԵĶ¾¡£C¸øÎҵĸоõ¾ÍÊǼòµ¥Ã÷ÁË£¬Òª½â¾öÎÊÌâ¾ÍÊÇÖ±½ÓÈ¥½â¾öËü£¬¾ø²»¹ ......

VC++ÖÐÀûÓÃMSXML½âÎöXMLÎĵµ

¡¡¡¡Ò»¡¢ XML ¼ò½é
¡¡¡¡XML£¨Xtensible Markup Language£¬¼´À©Õ¹±ê¼ÇÓïÑÔ£©µÄ·¢Õ¹ÆðÔ´ÓÚ1996Äê¡£µ±Ê±£¬³ö°æ½ç¾ÞÍ·ºÍWebÒµÄÚÈËÊ¿¾­¹ý¹²Í¬ÌÖÂÛ£¬Ìá³öÁË´´½¨SGML£¨Standard Generalized Markup Language£¬¼´±ê׼ͨÓñêʶÓïÑÔ£©×Ó¼¯£¨HML£©µÄ½¨Òé¡£¸Ã×Ó¼¯×¨ÓÃÓÚWeb£¬¾ßÓпÉÀ©Õ¹£¨»ò¿ÉÀ©³ä£©ÐÔ£¬²¢ÇÒÄÜÀûÓýṹ»¯±ê¼ÇÓïÑÔµÄËùÓÐ ......

XML CDATA

 
ÔÚXMLÎĵµÖеÄËùÓÐÎı¾¶¼»á±»½âÎöÆ÷½âÎö¡£
Ö»ÓÐÔÚCDATA²¿¼þÖ®ÄÚµÄÎı¾»á±»½âÎöÆ÷ºöÂÔ¡£
½âÎöÊý¾Ý
XML ½âÎöÆ÷ͨ³£Çé¿öÏ»ᴦÀíXMLÎĵµÖеÄËùÓÐÎı¾¡£
µ±XMLÔªËر»½âÎöµÄʱºò£¬XMLÔªËØÄÚ²¿µÄÎı¾Ò²»á±»½âÎö:
<message>This text is also parsed</message>
XML½âÎöÆ÷ÕâÑù×öµÄÔ­ÒòÊÇXMLÔªËØÄÚ²¿¿ÉÄÜ» ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ