Home > Web Front-end > JS Tutorial > body text

JS parsing XML implementation code_javascript skills

WBOY
Release: 2016-05-16 18:42:00
Original
1100 people have browsed it

JS code:

Copy code The code is as follows:



xml code:
Copy code The code is as follows:




images/ad-01.jpg
Ho Chi Minh City
http://torchrelay.beijing2008.cn/cn/journey /hochiminhcity/


images/ad-02.jpg
Hong Kong 2< ;/title> <br><url>http://torchrelay.beijing2008.cn/cn/journey/hongkong/</url> <br></imags> <br><imags> <br> <imgsrc>images/ad-03.jpg</imgsrc> <br><title>Hong Kong 3
http://torchrelay.beijing2008.cn/cn/journey/hongkong /


images/ad-04.jpg
Hong Kong 4</ title> <br><url>http://torchrelay.beijing2008.cn/cn/journey/hongkong/</url> <br></imags> <br><imags> <br>< imgsrc>images/ad-05.jpg</imgsrc> <br><title>Hong Kong 5
http://torchrelay.beijing2008.cn/cn/journey/hongkong/< ;/url>



You can also refer to the following articles
I watch IE and FF----- -Js reads the xml file
I read the xml file with Js a few days ago to implement a small function (Olympic torch relay route). It took a while to adapt to IE and FF.
Copy code The code is as follows:



以下是xml的片断.
复制代码 代码如下:




2008年4月29日
胡志明市
http://torchrelay.beijing2008.cn/cn/journey/hochiminhcity/


2008年4月30日
香港
http://torchrelay.beijing2008.cn/cn/journey/hongkong/


Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template