Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö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");
Ö÷ÒªÊÇÕâ¸ö£¬ÆäÓàµÄÍøÉÏÓкܶàÀý×Ó

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


Ïà¹ØÎÊ´ð£º

ÈçºÎÌá½»xmlÀàÐÍÊý¾Ý - .NET¼¼Êõ / ASP.NET

Êý¾Ý¿â±íÖÐÓÐÒ»ÁУ¨TranXml£©ÀàÐÍÊÇxml£¬´æ´¢µÄÊÇÀàËÆ
<fathernode>
  <a>aaa
  </a>
  <b>bbb
  </b>
</fathernode>
µÄÐÅÏ¢£¬²¢ÇÒͨ¹ý²éѯ·½· ......

Ϊʲô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 ......

dom4j½âÎöxml³ö´í£¬ÇëÇóÖ§Ô® - Web ¿ª·¢ / XML/SOAP

String strXML="<all><student><name>ΰ¸ç</name><sex>ÄÐ</sex><age>27</age></student><student><name>qiaoqiao</name><sex> ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ