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

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

/*
 * XMLTool.cpp ÅäÖÃÎļþ½âÎö¶¯Ì¬¿â×ÊÔ´Îļþ
 *  Ö÷ÒªÊä³öº¯Êý½Ó¿Ú·Ö±ðʵÏÖ¶ÔÅäÖÃÎļþµÄ¶ÁÈ¡ºÍдÈ룬Õë¶Ô½á¹û¼¯µÄ¸´ÖÆÇå¿Õ£¬ºÍÁ½¸ö×Ö·û´®´¦Àíº¯Êý
 *  ¶ÁÈ¡ÅäÖÃÎļþ½Ó¿Ú £º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
 */
#include "XMLTool.h"
#include <stdarg.h>
#include <iostream>
#include <


Ïà¹ØÎĵµ£º

FLASHЧ¹û£¬Í¨¹ýxmlÎļþÁ´½ÓÊý¾Ý


ÎļþÈçÏÂ
<BODY>
<SCRIPT src="swfobject.js"
type=text/javascript></SCRIPT>
<SCRIPT language=javascript>
var flashvars = {};
flashvars.myxmlpath = 'content.xml';
flashvars.type = 'content';
flashvars.decription = '0';
flashvars.textstyle = '';
flashvars.de ......

Ajax ºÍ XML: ÎåÖÖ Ajax ·´Ä£Ê½

ͨ¹ýÀí½â´íÎóµÄ±àÂ뷽ʽ£¬¿ÉÒÔ¸üºÃµØÁ˽âÈçºÎÕýÈ·µØ½øÐбàÂë¡£µ±È»£¬±àд Asynchronous JavaScript™ +
XML£¨Ajax£©ÓÐÕýÈ·µÄ·½·¨£¬Ò²ÓдíÎóµÄ·½·¨¡£±¾ÎĽ«ÌÖÂÛһЩÐèÒª±ÜÃâµÄ³£¼û±àÂëʵ¼ù¡£
Èç¹ûÈËÃÇÔÚµÚÒ»´Î¾ÍÄܹ»½«ËùÓÐÊÂÇéÈ«²¿×ö¶Ô£¬ÄÇôÕâ¸öÊÀ½ç½«±äµÃÍêÈ«²»Í¬¡£Ajax Ò²ÊÇÈç´Ë¡£ÎÒ×öÁË´óÁ¿µÄ¹¤×÷ÒÔÖ§³Ö Ajax
......

XML CDATA

 
ÔÚXMLÎĵµÖеÄËùÓÐÎı¾¶¼»á±»½âÎöÆ÷½âÎö¡£
Ö»ÓÐÔÚCDATA²¿¼þÖ®ÄÚµÄÎı¾»á±»½âÎöÆ÷ºöÂÔ¡£
½âÎöÊý¾Ý
XML ½âÎöÆ÷ͨ³£Çé¿öÏ»ᴦÀíXMLÎĵµÖеÄËùÓÐÎı¾¡£
µ±XMLÔªËØ±»½âÎöµÄʱºò£¬XMLÔªËØÄÚ²¿µÄÎı¾Ò²»á±»½âÎö:
<message>This text is also parsed</message>
XML½âÎöÆ÷ÕâÑù×öµÄÔ­ÒòÊÇXMLÔªËØÄÚ²¿¿ÉÄÜ» ......

C++ÖÐextern ¡°C¡±º¬ÒåÉî²ã̽Ë÷

1.ÒýÑÔ
¡¡¡¡C++ÓïÑԵĴ´½¨³õÖÔÊÇ“a better C”£¬µ«ÊÇÕâ²¢²»Òâζ×ÅC++ÖÐÀàËÆCÓïÑÔµÄÈ«¾Ö±äÁ¿ºÍº¯ÊýËù²ÉÓõıàÒëºÍÁ¬½Ó·½Ê½ÓëCÓïÑÔÍêÈ«Ïàͬ¡£×÷ΪһÖÖÓûÓëC¼æÈݵÄÓïÑÔ£¬C++±£ÁôÁËÒ»²¿·Ö¹ý³ÌʽÓïÑÔµÄÌØµã£¨±»ÊÀÈ˳ÆÎª“²»³¹µ×µØÃæÏò¶ÔÏ󔣩£¬Òò¶øËü¿ÉÒÔ¶¨Òå²»ÊôÓÚÈκÎÀàµÄÈ«¾Ö±äÁ¿ºÍº¯Êý¡£µ«ÊÇ£¬C++±Ï ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ