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

XML±£´æµÄÎÊÌâ - VC/MFC / ÍøÂç±à³Ì

´ò¿ªÒ»¸öÔ­ÓеÄXMLÎļþ<?xml version="1.0" encoding="UTF-8" standalone="no" ?>£¬ÎļþʹÓÃUTF-8¸ñʽ±£´æ£¬Óöþ½øÖÆ·½Ê½´ò¿ªÎļþÍ·µÄ±êʶΪEF BB BF£¬µ«ÊDZ£´æºóÎļþÍ·µÄ±êʶûÓÐÁË£¬Ò²¾ÍÊÇÎļþ²»ÔÙÊÇUTF-8¸ñʽµÄÁË£¬²¢ÇÒÎļþµÄ´óС±äСÁË¡£ÓÐʱºòÔÚÎļþµÄĩβ»á³öÏÖ²¿·ÖµÄÖظ´£¬ÕâÑùXMLÎļþµÄ¸ñʽ¾Í²»ÕýÈ·ÁË¡£
²¿·Ö´úÂëÈçÏÂ

MSXML2::IXMLDOMDocument2Ptr m_doc;
m_doc.CreateInstance( __uuidof(MSXML2::DOMDocument40)
m_doc->load(m_strSvgFileName.AllocSysString());
m_doc->save(m_strSvgFileName.AllocSysString());

ÓÿªÔ´¿â Èç tinyxml

Ò²¿ÉÒÔÊÔ×ÅÓµÓÐ CMarkup Àà¿â ¿´¿´ ±È½Ï¿ìʵÏÖÄãÒªµÄ

CMarkupÀà¡£¡£¡£

΢ÈíµÄCOM×é¼þ²»ÐÐÂð

¿´À´Ö»ÄÜÓÿªÔ´¿âÁË

ÎÒÓÐÒ»ÖÖ°ì·¨£º
Ä㲻ҪʹÓÃsave(filename)·½·¨£¬
ÄãÏÈgetxml£¬»ñÈ¡xmlµÄÄÚÈÝ£¬Õâ¸öÄÚÈÝÀïÃæÊÇûÓÐÄã˵µÄEF BB BFÕâÈý¸ö×Ö·ûµÄ£¬ÄãдÎļþµÄʱºòÏÈдÈëÕâÈý¸ö×Ö·û£¬È»ºócreatefile,writefile(eebbbf)£¬writefile(xmlÄÚÈÝ),ÕâÑù¾Í¿ÉÒÔÁË¡£
ÎÒÒ»Ö±¶¼ÊÇÕâÑù´¦ÀíµÄ¡£°üÀ¨¶ÁÎļþÒ²ÊÇʹÓÃreadfile(3,filesize-3)À´»ñÈ¡xmlÄÚÈÝ£¬È»ºóÔÙʹÓÃmsxml2À´´¦ÀíÕâ¸öxmlÄÚÈÝ¡£

½¨ÒéʹÓÃtinyxml,±È½Ï¼òµ¥·½±ã...MSµÄ²»Çå³þ,·´ÕýÄÜÓÃopen sourceµÄ,ÎҾ;¡Á¿ÓÃopen sourceµÄ,³öÎÊÌâÒ²ÄÜ×Ô¼ºÐÞ¸´.


Ïà¹ØÎÊ´ð£º

java xmlÎÄÌâ - Java / Java SE

<?xml version="1.0" encoding="utf-8" ?> 
- <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" android:orientation="vertical&q ......

Ϊʲôxml²»ÄÜÏÔʾ°¢À­²®ÎÄ - C/C++ / C++ ÓïÑÔ

ΪʲôÎҵijÌÐòµ÷ÓÃXMLÅäÖÃÎļþÖеİ¢À­²®ÎÄÏÔʾ²»³öÀ´£¿ÆäËûµÄÓïÖÖ¶¼¿ÉÒÔ£¬ÈçÖÐÎÄ£¬Ó¢ÎÄ£¬µÂÎĶ¼¿É¡£
ÎÒ½«XMLµÄ±àÂë¸ÄΪutf-8ºÍunicodeµÄµ½µÃ½á¹û¶¼Ò»Ñù.
°¢À­²®ÎĵÄ×Ö¿âÄãÓÐô£¿

ÓÐ,ÎÒµÄEXEÊÇ·ÅÔÚpc»úÉÏÖ´Ðе ......

VCÖÐxml±éÀú - VC/MFC / ATL/ActiveX/COM

ÈçºÎÓÃATL´°ÌåÓ¦ÓóÌÐòÖÐÓÃSystem.Xml±éÀúÒ»¸öXmlÎļþ
Äã˵µÄÊÇÍйܴúÂ룿
¡£

vc¿ÉÓÃmsxml
http://msdn.microsoft.com/en-us/library/ms767594(VS.85).aspx

MSXML4  
  //ÒýÈëmsxml4.dll &nbs ......

Document½âÎöxmlÓöµ½µÄÎÊÌâ~~ - Òƶ¯Æ½Ì¨ / Android

XMLÎļþÄÚÈÝ£º
- <ResList>
  <page>0</page> 
- <resItem>
  <resName>WWW</resName> 
  </resItem>
- <resItem>
&nb ......

SQL server·Ö½âXML - MS-SQL Server / Ó¦ÓÃʵÀý

ÏÂÃæÊÇXML³õʼÎļþÄÚÈÝ
XML code:
<upd:Update xmlns:lar="http://schemas.microsoft.com/msus/2002/12/LogicalApplicabilityRules" xmlns:cmd="http://schemas.microsoft.com/msus/2002/12/Up ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ