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

C++ϵÄXML·ÖÎö¹¤¾ßCMarkup

1¡¢³õʼ»¯
Load µ¼ÈëÒ»¸öXMLÎļþµ½CMarkupµÄ¶ÔÏóÖУ¬²¢¶ÔËü½øÐнâÎö¡£ÀàËÆC#µÄLoad¡£
SetDoc ´Ó×Ö·û´®Öе¼ÈëXMLÊý¾Ý£¬²¢¶ÔËü½âÎö¡£ÀàËÆC#µÄLoadXml¡£
2¡¢Êä³ö
Save ½«XMLÊý¾ÝдÈëÎļþÖС£ÀàËÆC#µÄSave¡£
GetDoc ½«Õû¸öXMLÊý¾ÝÎĵµ×÷Ϊ×Ö·û´®·µ»Ø¡£
3¡¢¸Ä±äµ±Ç°Î»ÖÃ
FindElem ¶¨Î»µ½ÏÂÒ»¸öÔªËØ£¬¿ÉÄܺÍÒ»¸ö±êÇ©Ãû»ò·¾¶Æ¥Åä¡£
FindChildElem ¶¨Î»µ½ÏÂÒ»¸ö×ÓÔªËØ£¬Æ¥ÅäÔªËØÃû»ò·¾¶¡£
FindPrevElem ¶¨Î»Ç°Ò»¸öÔªËØ£¬¿ÉÄܺÍÒ»¸ö±êÇ©Ãû»ò·¾¶Æ¥Åä¡£
FindPrevChildElem ¶¨Î»Ç°Ò»¸ö×ÓÔªËØ£¬¿ÉÄÜÆ¥Åä±êÇ©Ãû¡£
FindNode ¶¨Î»ÏÂÒ»¸ö½Úµã£¬¿ÉÄܺͽڵãÀàÐÍÆ¥Åä¡£
IntoElem ½øÈ뵱ǰÖ÷λÖõÄÏÂÒ»¼¶£¬µ±Ç°µÄλÖñäΪ¸¸Î»Öá£
OutOfElem ʹµ±Ç°¸¸Î»Öñä³Éµ±Ç°Î»Öá£
ResetPos ¸´Î»µ±Ç°Î»ÖÃΪÎĵµÆðʼλÖá£
ResetMainPos ½«µ±Ç°Ö÷λÖø´Î»ÎªµÚÒ»¸öÐÖµÜλÖÃ֮ǰ¡£
ResetChildPos ¸´Î»µ±Ç°×ÓλÖõ½µÚÒ»¸ö×ÓλÖÃ֮ǰ¡£
4¡¢ÎĵµÐÂÔö
AddElem ÔÚµ±Ç°Ö÷λÖÃÔªËØ»ò×îºóÐÖµÜλÖÃÖ®ºóÔö¼ÓÒ»¸öÔªËØ¡£
InsertElem ÔÚµ±Ç°Ö÷λÖÃÔªËØ»òµÚÒ»¸öÐÖµÜλÖÃ֮ǰ²åÈëÒ»¸öÔªËØ¡£
AddChildElem ÔÚµ±Ç°×ÓλÖÃÔªËØ»ò×îºóÒ»¸ö×ÓλÖÃÖ®ºóÔö¼ÓÒ»¸öÔªËØ¡£
InsertChileElem ÔÚµ±Ç°×ÓλÖÃÔªËØ»òµÍÒ»¸ö×ÓλÖÃ֮ǰ²åÈëÒ»¸öÔªËØ¡£
AddSubDoc ÔÚµ±Ç°Ö÷λÖÃÔªËØ»ò×îºóÒ»¸öÐÖµÜλÖÃÖ®ºóÔö¼ÓÒ»¸ö×ÓÎĵµ¡£
InsertSubDoc ÔÚµ±Ç°Ö÷λÖÃÔªËØ»òµÚÒ»¸öÐÖµÜλÖÃ֮ǰ²åÈëÒ»¸ö×ÓÎĵµ¡£
AddChildSubDoc ÔÚµ±Ç°×ÓλÖÃÔªËØ»ò×îºóÒ»¸ö×ÓλÖÃÖ®ºóÔö¼Ó×ÓÎĵµ¡£
InsertChildSubDoc ÔÚµ±Ç°×ÓλÖÃÔªËØ»òµÚÒ»¸ö×ÓλÖÃ֮ǰ²åÈëÒ»¸ö×ÓÎĵµ¡£
AddNode ÔÚµ±Ç°½ÚµãÖ®ºó»ò¸¸ÔªËØÄÚÈÝĩβÔö¼ÓÒ»¸ö½Úµã¡£
InsertNode ÔÚµ±Ç°½Úµã֮ǰ»ò¸¸ÔªËØÄÚÈÝ¿ªÍ·²åÈëÒ»¸ö½Úµã¡£
5¡¢ÎĵµÖÐɾ³ý
RemoveElem ɾ³ýµ±Ç°°üÀ¨×ÓÔªËصÄÖ÷λÖÃÔªËØ
RemoveChildElem ɾ³ý°üÀ¨µ±Ç°×ÓÔªËؼ°Æä×ÓÔªËØ
RemoveNode ɾ³ýµ±Ç°½Úµã
RemoveAttrib ɾ³ýµ±Ç°Î»ÖÃÔªËؾßÌåµÄÊôÐÔ
RemoveChildAttrib ɾ³ýµ±Ç°×ÓλÖÃÔªËصÄij¸ö¾ßÌåÊôÐÔ
6¡¢µÃµ½Öµ
GetData µÃµ½µ±Ç°Ö÷λÖÃÔªËØ»ò½ÚµãµÄ×Ö·û´®Öµ
GetChildData µÃµ½µ±Ç°×ÓλÖÃÔªËصÄ×Ö·û´®Öµ
GetElemContent µÃµ½µ±Ç°Ö÷λÖÃÔªËØ°üÀ¨Æä×ÓÔªËصıê¼ÇÄÚÈÝ×Ö·û´®Öµ
GetSubDoc µÃµ½µ±Ç°Ö÷λÖÃÔªËØ°üÀ¨Æä×ÓÔªËصÄÎĵµÆ¬¶Ï±ê¼Ç×Ö·û´®Öµ
GetChildSubDoc µÃµ½µ±Ç°×ÓλÖÃÔªËØ°üÀ¨Æä×ÓÔªËصÄÎĵµÆ¬¶Ï±ê¼Ç×Ö·û´®Öµ
GetAttrib µÃµ½Ö÷λÖÃÔªËØ£¨»òÕýÔÚ½øÐеÄÖ¸ÁîµÄ£©Ä³Ò»¾ßÌåÊôÐÔ×Ö·û´®Öµ
GetChildA


Ïà¹ØÎĵµ£º

C/C++ ×Ö·û´®´¦Àíº¯Êý

¸Õ¿ªÊ¼Ñ§C/C++ʱ£¬Ò»Ö±¶Ô×Ö·û´®´¦Àíº¯ÊýÒ»Öª°ë½â£¬ÕâÀïÁоÙC/C++×Ö·û´®´¦Àíº¯Êý£¬Ï£Íû¶Ô³õѧÕßÓÐÒ»¶¨µÄ°ïÖú¡£
C£º
char st[100];
1. ×Ö·û´®³¤¶È
   strlen(st);
2. ×Ö·û´®±È½Ï
   strcmp(st1,st2);
   strncmp(st1,st2,n);   °Ñst1,st2µÄÇ°n¸ö½øÐбȽϡ£
3. ¸½¼Ó
 & ......

SQL Server2005µÄXMLÊý¾ÝÀàÐÍÖ®»ù´¡Æª1

Ò»¡¢ÒýÑÔ
Èç½ñ£¬ÔÚSQL Server 2005ÖУ¬XML³ÉΪµÚÒ»Á÷µÄÊý¾ÝÀàÐÍ¡£½èÖúÓÚ»ùÓÚXMLģʽµÄÇ¿ÀàÐÍ»¯Ö§³ÖºÍ»ùÓÚ·þÎñÆ÷¶ËµÄXMLÊý¾ÝУÑ鹦ÄÜ£¬ÏÖÔÚ
£¬¿ª·¢Õß¿ÉÒÔ¶Ô´æ´¢µÄXMLÎĵµ½øÐÐÇáËɵØÔ¶³ÌÐ޸ġ£×÷ΪÊý¾Ý¿â¿ª·¢Õߣ¬Ðí¶àÈ˶¼±ØÐë´óÁ¿µØÉæ¼°XML¡£
Èç½ñ£¬ÔÚSQL Server 2005ÖУ¬ÄãÄÜÒÔÒ»ÖÖеÄÊý¾ÝÀàÐ͵ÄÐÎʽ°ÑXML´æ´¢ÔÚÊý¾Ý¿âÖÐ ......

C++ºÍJava ÄĸöºÃ£¿ £¨Ô´×Ô Æ滢fvfve£©


JAVA¿ÉÒÔ˵ÊÇ´ÓC++·¢Õ¹ÆðÀ´µÄÍêÈ«ÃæÏò¶ÔÏóµÄ¿ª·¢ÓïÑÔ,Á½ÕßµÄʵÖÊÇø±ðÊÇÀûÒæ·ÖÊô²»Í¬µÄ¹«Ë¾:SUNºÍ΢Èí.¶Ô´Ë΢Èí·¢²¼ÁË.NETÓëÖ®¿¹ºâ.
´Ó×îеÄVisual Studio .NET 2005¿´,.NETÖ÷ÒªÊÇ4ÖÖÓïÑÔ:VB.NET, C#, C++.NET, J#.
VB.NET¿ÉÒÔ˵ÊÇVB6µÄÉý¼¶,µ«ÎÒÈÏΪVB.NETºÍC#ÒѾ­ÊÇÍêȫȫеÄÓïÑÔÁË,Á½ÕßµÄÄ¿µÄ¶¼ÊÇÒª´ò°ÜJAVAÕâ¸ö¾ºÕ ......

xml±à³Ì1

Eclipse IBM¿ª·¢³öµÄ¹¤¾ß
step over Ìøµ½µ±Ç°³ÌÐòµÄÏÂÒ»ÐÐ(Ìø¹ý)
step into Ìø½øÈ¥ (ÌøÈë)
step return Ìø³öÀ´ (Ìø³ö)
XML
<a classname="cn.itcast.Person"></a>
<?xml version="1.0"?> ¿Õ¸ñ±ØÐëΪӢÎÄ
×Ö·û±àÂë
<?xml version="1.0" encoding="UTF-8"?>
CDATA -->Character data &nb ......

c°æµÄ»Øµ÷º¯ÊýÓëc++°æµÄÐ麯Êý

CÓïÑԵĻص÷º¯Êý˼Ïë´úÂ룺
#include <stdio.h>
void *max(void *base, unsigned int nmemb, unsigned int size,
    int (*compar)(const void *, const void *))
{
    int i;
    void* max_data = base;
    char* tmp = base;
 &nbs ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ