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ÓïÑÔÖÐÈ´²»´æÔÚµÄÏÞÖÆÓУº
1. ÍêÕûµÄº¯ÊýÔÐÍÉùÃ÷ÊDZØÐëµÄ£¬cÓïÑÔÀïûÕâôÑϸñ.
2. c++ÖУ¬ÓÉtypedef¶¨ÒåµÄÃû×Ö²»ÄÜÓëÒÑÓеĽṹ±êÇ©³åÍ»£¬µ«ÊÇcÓïÑÔÖÐÈ´ÊÇ¿ÉÒÔµÄ.
3. µ±void*Ö¸Õ븳ֵ¸øÁíÒ»¸öÀàÐ͵ÄÖ¸Õëʱ£¬c++¹æ¶¨±ØÐë½øÐÐÇ¿ÖÆÀàÐÍת»»£¬µ«ÊÇcÓïÑÔÖÐÈ´²»±ØÒª¡£
ÔÚc++ºÍcÖк¬Òå²»Ò»ÑùµÄÌØÐÔ£º
1. c++ ......
JAVA¿ÉÒÔ˵ÊÇ´ÓC++·¢Õ¹ÆðÀ´µÄÍêÈ«ÃæÏò¶ÔÏóµÄ¿ª·¢ÓïÑÔ,Á½ÕßµÄʵÖÊÇø±ðÊÇÀûÒæ·ÖÊô²»Í¬µÄ¹«Ë¾:SUNºÍ΢Èí.¶Ô´Ë΢Èí·¢²¼ÁË.NETÓëÖ®¿¹ºâ.
´Ó×îеÄVisual Studio .NET 2005¿´,.NETÖ÷ÒªÊÇ4ÖÖÓïÑÔ:VB.NET, C#, C++.NET, J#.
VB.NET¿ÉÒÔ˵ÊÇVB6µÄÉý¼¶,µ«ÎÒÈÏΪVB.NETºÍC#ÒѾÊÇÍêȫȫеÄÓïÑÔÁË,Á½ÕßµÄÄ¿µÄ¶¼ÊÇÒª´ò°ÜJAVAÕâ¸ö¾ºÕ ......
import java.io.File;
import java.util.concurrent.CountDownLatch;
import com.sleepycat.db.Environment;
import com.sleepycat.db.EnvironmentConfig;
import com.sleepycat.db.LockDetectMode;
import com.sleepycat.dbxml.XmlContainer;
import com.sleepycat.dbxml.XmlContainerConfig;
im ......
1£®Ê²Ã´ÊÇXML£¿
XML ¿ª·¢ÕßÃÇ»á¸æËßÄ㣬ÊÂʵÉÏXML²¢²»ÊÇÒ»ÖÖÓïÑÔ£¬¶øÊÇÒ»ÖÖÓÃÀ´¶¨ÒåÆäËüÓïÑÔµÄϵͳ¡£¿ÉÄÜÄãÒѾÌý¹ý£¬»òÐíÉõÖÁ×Ô¼º³¢ÊÔ¹ýһЩÕâÑùµÄÓïÑÔ??±ÈÈç΢ÈíÎªÍÆ£¨push£©¼¼ÊõËùÍÆ³öµÄƵµÀ¶¨Òå¸ñʽ£¨Channel Definition Format£©¡£
W3CÊÇ»¥Á¬ÍøÉÏһЩ¹«Óñê×¼µÄ¿ª·¢Õߣ¬ËûÍÆ³öÁËһϵÁкÍXMLÏà¹ØµÄ±ê× ......