xmlÎļþ C++ - À©³ä»°Ìâ / ¹àË®ÀÖÔ°
ÄĸöÐֵܿÉÒÔ¸æËßÎÒÕâЩ´úÂëʲôÒâ˼°¡:
MSXML2::IXMLDOMDocumentPtr pDoc;
MSXML2::IXMLDOMNodeListPtr pNodeList;
MSXML2::IXMLDOMNodePtr pNode, pRoot;
MSXML2::IXMLDOMNamedNodeMapPtr pAttr;
ллÁË .·Ö²»¶àÁË °¡
ÉùÃ÷ÁËÒ»¶ÑÖ¸Õë¶øÒÑ
ÎÒÏëÎÊϸ÷¸öÖ¸ÕëʲôÒâ˼?
DocumentÎĵµ
Ptr Ö¸Õë
Node ½Úµã
List Áбí
Õâ¸öÊÇ΢Èí×öµÄSMXML£¬½âÎöxmlÎļþÓõÄ
×îºóÒ»¸öûÓùý ¹ÃÇÒÈÏΪÊÇÓÉ Name×é³ÉµÄmap
MSXML£¬²»ºÃÒâ˼
ok....ллÐÖµÜÃÇÁË ,ºÇºÇ ô·ÖÁË
Ïà¹ØÎÊ´ð£º
´ÓÊý¾Ý¿âÖвéѯһÕűíµÄÊý¾Ý
select ²¿ÃÅ,ÐÕÃû from tb
ÈçºÎ²ÅÄÜÉú³ÉÏÂÃæµÄxml¸ñʽ
XML code:
<folder state="unchecked" label="È«²¿">
¡¡¡¡ <folder state="unchecked&qu ......
<?xml version="1.0" encoding="utf-8" ?>
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......
ÎÒÓÐÒ»¸öÀàËÆµÄxmlµÄ string£¬Ïëͨ¹ý±éÀúÔõô¸öxml Êä³öÎÒÏëÒªµÄelementµÄÖµ
xml Ϊ£º
<Discover xmlns="urn:schemas-microsoft-com:xml-analysis">
<RequestType>DISCOVER_XML_ME ......
ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎͼ¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À²®ÎĵÄ×Ö¿âÄãÓÐô£¿
ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......
¹¦ÄÜ˵Ã÷:Java servlet °ÑXMLÊý¾ÝѹËõºó·¢Ë͵½PBÓû§¶Ë,PBÊÕµ½Êý¾Ýºó½âѹ³öÀ´.
´«ÊäÒª¾¹ýBase64±àÂë.
ÎÊÌâÊÇ:ÄÜÊÕµ½Êý¾Ýµ«Êǽâѹ²»³öÀ´.ÏëÇë½Ì´ó¼Ò»òÕßÓÐʲôºÃµÄ°ì·¨?
PB¿ÉÒÔÓÃ"zlibwapi.DLL" ½âѹ
......