Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : xml

ÇóÖú£¡c#дxmlµÄÎÊÌâ - .NET¼¼Êõ / C#

ÎÒÓõÄÊÇvs2008£¬Ð´Ò»°ãµÄ½ÚµãµÄʱºòÊÇÕâÑùµÄ£º
XElement node = new XElement("node1");
node.SetAttributeValue("Id", "a1");
µ«ÊÇÓÐЩÕâÑùµÄ½Úµã£º
<alto xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="alto-1-2.xsd&quo ......

Çë°ïæÓÃvc++½âÎöxmlÎļþ - VC/MFC / HTML/XML

ÏÖÔÚÐèÒª×ö¸öÈí¼þÀ´½âÎöxml¸ñʽµÄÎļþ£¬Çë´óÏÀßø¸öÏà¹ØµÄÀý×Ó£¬ÖªµÀһϣ¬¸Ð¼¤²»¾¡£¡£¡£¡ÓÐÀý×Ӿ͸ø·ÖŶ£¡£¡£¡
ÓÃ MSXML

¸øÄãÒ»¶ÎÎÒÔ­À´Ð´µÄÒ»¶Î´úÂ룬ÓÐʲô²»Ã÷°×µÄ×Ô¼ºÈ¥²é×ÊÁÏ°É£¬²»ËãÌ«ÄÑ
C/C++ code:

MSXML2::IXMLDOMDocumentPtr pXMLDom;
HRESULT hr;
hr= pXMLDom.CreateInstance(__uuido ......

PHPÖнØÈ¡²¿·Ö½ÚµãÆ´´Õ³öеÄxml - PHP / »ù´¡±à³Ì

×î½üÔÚ×öÒ»¸öÏîÄ¿£¬Òª·µ»Ø¿Í»§¶ËºÜ¶àxml£¨xmlÊÇÔÚphpÒ³ÃæÖзµ»ØµÄ£¬$dom->saveXML()£©,Çë½Ì¸÷λ¿É²»¿ÉÒÔ°Ñ$dom->saveXML()ÖеÄxml°´ÕÕ½ÚµãÀ´½ØÈ¡Ò»²¿·Ö£¬ÀýÈçÏÂÃæµÄxml£º
<server status='1' term_type='1'>
<buildings>
<building>
<id>1</id>
<name>Barr ......

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/UpdateHandlers/CommandLineInstallation" xmlns:bar="http://schemas.microsoft.com/msus/2002/12 ......

xmlµÄÏà¶Ô·¾¶ÎÊÌâ - Java / Web ¿ª·¢

¸÷λ¸ç¸ç£¬°ïæ°¡£¬ÎÒÕâÀïÓÐÒ»¸öÓÃdom·½Ê½¶ÁÈ¡xmlÎļþÎÊÌ⣬µ«ÎÞÂÛÈçºÎд·¾¶¶¼²»ÐУ¬´úÂëÈçÏ£º
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.parse("WebRoot/admin.xml");
ÕâÑù£¬°ÑÎļþ·Åµ½webRootÏÂÊÇ¿ÉÒÔÔÚmain·½·¨ÖжÁÈ¡µÄ£¬µ«ÊÇÔËÐÐÔÚweb¹¤³ÌÏ£¬ÓÃÒ³Ãæ·ÃÎʵÄʱºò¾Í³öÎÊÌâÁË£¬
Ê ......

dom4jÔõô½âÎö¶à¸öxml - Java / Java SE

±ÈÈçÓкܶà¸ö***.xmlÔÚÒ»¸öÎļþ¼ÐÄÚ£¬ÎÒÒªÔõÑù²ÅÄܽâÎöÕâ¸öÎļþ¼ÐÄÚµÄËùÓÐxmlÄØ£¿

±éÀúÒ»ÏÂÎļþ¼Ð,Ò»¸öÒ»¸ö½âÎö.

¸ù¾ÝÎļþÍ· ½âÎö ±éÀú ¾ÍÓ¦¸Ã¿ÉÒÔÁË¡£¡£¡£¡£

Ñ­»· Ò»¸ö¸ö½âÎö°¡£¡

ºÃÏñÖ»ÄÜÕâÑùÁË¡£¡£¡£

File f,,
f.listFiles.......

ÒýÓÃ
File f,,
f.listFiles.......
ÊÔÊÔ

Java code:

File ......
×ܼǼÊý:834; ×ÜÒ³Êý:139; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [31] [32] [33] [34] 35 [36] [37] [38] [39] [40]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ