html引用数据岛内容的问题~ 求高人解答

来源:百度知道 编辑:UC知道 时间:2024/06/27 10:47:47
我的xml数据结构是这样的:
<?xml version="1.0" encoding="gb2312"?>
<menu>
<greeting>欢迎来到我的博客</greeting>
<main>
<name1>最新更新</name1>
<name2>技术文章</name2>
<name3>博客日志</name3>
<name4>友情链接</name4>
</main>
<side>
<name1>网站日历</name1>
<name2>天气预报</name2>
<name3>精彩文章</name3>
<name4>网站公告</name4>
<name5>最新更新</name5>
<name6>当前时间</name6>
</side>
<inner>
<name1>我的档案</name1>
<name2>网站制作</name2>
<name3>网络认知</name3>
<name4>程序设计</name4>
<name5>心情文章</name5>
<name6>网站更新日志</name6>
<name7>工作日志</name7>
</inner>
</menu>
请问如果用html调用数据岛怎么显示<inner>下<name

默认的xml是1.xml,具体样式自己改下
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>xml</title>
<script type="text/javascript">
function $(id){
return document.getElementById(id)?document.getElementById(id):false;
}
function sack(file) {
this.xmlhttp = null;

this.resetData = function() {
this.method = "GET";
this.URLString = "";
this.encodeURL = true;
this.file = file;
this.late = true;
this.failed = false;
};

this.resetFunctions = function() {
this.onLoading = function() { };
this.onLoaded = function() { };
this.onInteractive = function() { };
this.onCompletion = function() { };
this.onError = function() { };
this.encode = (encodeURIComponent && this.encodeURL)?function(s) {