如何将xml岛绑定到html [英] how to bind xml island to html

查看:85
本文介绍了如何将xml岛绑定到html的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我是xml岛文件中的新手,

i对xml有些怀疑。

我正在尝试做xml在我的应用程序中的岛概念。

我在dot net framework 4.5版中使用的概念(vs2012)

我的问题是如何使用vs2012将xml岛绑定到html表。

但实际上我尝试使用下面的代码但是还没有

所以请为我提供一个解决方案。



我的代码是:

 <  ! DOCTYPE     html  >  
< html < span class =code-attribute> xmlns = http://www.w3.org/ 1999 / xhtml >
< head >
< title > xmltest < / title >
< xml < span class =code-attribute> id = productisland >
< 产品 >
< product pcode = 1300 pname = test 价格 = 2030 > < / product >
< product pcode = 1003 pname = test 价格 = 2030 > < / product >
< product pcode = 1300 pname = test price = 2030 > < / product >
< / products >
< / xml >
< / head >
< body >
< table datasrc = #productisland < span class =code-attribute> border = 1 style = width:397px;高度:73px >
< tr >
< td > < span DATAFLD = pcode > < / span > < / td >
< td > < span DATAFLD = pname > < / span > < span class =code-keyword>< / td >
< td > < span DATAFLD = price > < / span > < / td >
< / tr >
< / table >
< / body >
< / html >









问候,

stellus。

解决方案

似乎不再支持此功能了。 />


XML数据岛不再支持 [<啊ref =https://msdn.microsoft.com/en-us/library/hh801224(v=vs.85).aspx\"target =_ blanktitle =New Window> ^ ]

Hi all,
am new in xml island file,
i have a few doubts about xml.
am trying to do the xml island concept in my application.
the concept i was used in dot net framework version 4.5(vs2012)
my question is how to bind xml island to html table using vs2012.
but actually i tried with the code below but am not yet
so please kindly drop a solution for me.

my code is :

<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>xmltest</title>
    <xml id="productisland">
        <products>
            <product pcode="1300" pname="test" price="2030"></product>
            <product pcode="1003" pname="test" price="2030"></product>
            <product pcode="1300" pname="test" price="2030"></product>
        </products>
    </xml>
</head>
<body>
    <table datasrc="#productisland" border="1" style="width: 397px; height: 73px">
        <tr>
            <td> <span DATAFLD="pcode"></span></td>
            <td><span DATAFLD="pname"></span></td>
            <td><span DATAFLD="price"></span></td>
        </tr>
    </table>
</body>
</html>





with regards,
stellus.

解决方案

Seems like this feature is no longer supported.

XML data islands are no longer supported[^]


这篇关于如何将xml岛绑定到html的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆