什么是xml数据岛?
数据岛是指存在于html页面中的xml代码。数据岛允许你在html页面中集成xml,对xml编
写脚本,而不需要通过脚本或<object>标签读取xml。几乎所有能够存在于一个结构完整
的xml文档中的东西都能存在于一个数据岛中。包括处理指示、doctype声明和内部子集
。(注意,编码串不能放在数据岛中。)
<xml>元素标记数据岛的开始,它的id属性提供了一个可以用来引用数据岛的名称。
数据岛的xml可以是内嵌的:
<xml id="xmlid">
<customer>
<name>herbert hanley</name>
<custid>81422</custid>
</customer>
</xml>
或者在xml标签中通过src属性引用:
<xml id="xmlid" src="customer.xml"></xml>
也可以使用<script>标签来创建一个数据岛:
<script language="xml" id="xmlid">
<customer>
<name>mark hanson</name>
<custid>81422</custid>
</customer>
</script>
Java Asp PHP .Net XML C/C++ CGI VB Jsp J2ee J2se J2me EJB Servlet Tomcat Resin Struts Weblogic Eclipse ANT GUI JMS Web servise IDEA Webphere Hibernate Spring Jboss Applet Swing Socket Javamail Perl Ajax P2P 安全 模式 框架 测试 开源 游戏
Windows XP Windows 2000 Windows 2003 Windows Me Windows 9.x Linux UNIX 注册表 操作系统 服务器 应用服务器