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

js ½âÎö xml ÖеÄʱ¼ä - Web ¿ª·¢ / JavaScript

Çë½Ì¸÷λ£¡ÐèÇóÊÇÕâÑùµÄ£¬»ñÈ¡xmlÖеÄʱ¼ä¶Î¡£
ÀýÈ磺ÎÒÏë»ñÈ¡2010-1-1 µ½ 2010-2-2Ö®¼äµÄÊý¾Ý¡£
xmlÎļþ¸ñʽ
<voice id="000001" begintime="2010-1-1 1:1:1" endtime="2010-1-1 2:3:5" filename="E:/voices/v000001.wav"/>
ÎÒµÄJSÓ¦¸ÃÔõôȥ»ñÈ¡¡£
ÒòΪֻÄÜÓÃHTMLÎļþ¶ÁÈ¡xmlÎļþ£¬Ã»ÓÐJDK»òÈÝÆ÷µÄ»·¾³¡£

var xmlDoc;
xmlDoc = new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async = false;
xmlDoc.load("ChinaArea.xml");
var voices = xmlDoc.DocumentElement.getElementsByTagName("voice");
for(var i=0;i<voices.length;i++){
alert(voices[i].getAttribute("begintime")+" "+voices[i].getAttribute("endtime"));
}

voices[i].getAttribute("begintime")+" "+voices[i].getAttribute("endtime");
Ö÷ÒªÊÇÕâ¸ö£¬ÆäÓàµÄÍøÉÏÓкܶàÀý×Ó

ʱ¼ä½ô£¡ÎÒÖ»ÄܲÉÓöÁ³öÊý¾ÝÈ»ºó½øÐÐʱ¼äµÄ±È¶Ô¡£°¥£¡Ã»°ì·¨¡£ÉÏÍòÌõµÄÊý¾Ý²éʱ¼äÏ൱µÄÂý


Ïà¹ØÎÊ´ð£º

ÈçºÎÓÃASP¶ÁÈ¡ XML - Web ¿ª·¢ / ASP

<?xml version="1.0"?>
<root>
<status>433</status>
<msg>Õâ¸öÊǺº×Ö</msg>
<serialno>123</serialno>
</root>
ÈçºÎÓÃASP¶ÁÈ¡ statusÖµ ......

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 ......

java xmlÎļþ½âÎö - Java / Eclipse


<categorys>
<item>
<type>ALL</ type>
<name>È«²¿ÐÅÏ¢</name>
</item> 
<item>
<type>per</ type>
<name>ÐÅÏ¢< ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ