如何通过Html从Xml中检索文件?
问题描述:
我有一个类似以下的xml
示例:
I have a xml like following
example:
<?xml version="1.0"?>
<CATALOG>
<CD>
<TITLE>Burlesque</TITLE>
<ARTIST>Bob Dylan</ARTIST>
<PRICE>10.90</PRICE>
<YEAR>1985</YEAR>
<Path>Sample.pdf</Path>
</CD></Catalog>
i想在新窗口中显示pdf文件如何使用html实现这一点
请帮帮我
i want to show pdf file in new window how can i achieve that using html
please help me
答
HTML无法做到。您可以使用javascript:使用JavaScript阅读和显示XML数据 [ ^ ]
HTML cannot do it. You can use javascript: Reading and Showing XML Data using JavaScript[^]