请问.net如何读取xml的值
请问.net如何读取xml的值 写到数据库 希望给出完整的代码 谢谢
<?xml version="1.0" encoding="utf-8" ?>
- <channel>
- <item>
<userId>427 </userId>
<proId>2 </proId>
<proname>fsdfsd </proname>
<keywords>fsdfs </keywords>
<details>sdfsdfsf </details>
<picture />
<minorder>fsdfPiece/Pieces </minorder>
<fobprice>fsd~fsdfGBP </fobprice>
<port>sdfsd </port>
<payment>D/P </payment>
<deliverytime>sdf </deliverytime>
<supplyability>sdfPiece/Pieces per Day </supplyability>
<package>sdfsdfsd </package>
</item>
- <item>
<userId>427 </userId>
<proId>3 </proId>
<proname>fsd </proname>
<keywords>说的方法 </keywords>
<details>时代发生的发 </details>
<picture />
<minorder>312313Milligram </minorder>
<fobprice>3123~123USD </fobprice>
<port />
<payment>L/C,D/A, D/P,
相关问答:
我要在HTML中用JavaScript代码异步获取XML文件中一个节点的值比如
<?xml version="1.0" encoding="GB2312"?>
<configuration>
<appSettings>
......
xml文件 内容为:
<?xml version="1.0" encoding="utf-8" ?>
<UserInfo>
<User>
<name>jyhlp </name>
......
如题。
webService的函数如下:
VB.NET code:
Public Function RecordSetBySql(ByVal Sql As String) As XmlDataDocument
Dim xRs As ADODB.Recordset
Dim cmd As ADODB.Command
......
以下代码在IE下是可以正常,但是用NETBOX封装就不行了,运行到红色的地方就出错了,说缺少对像,请问怎么样修改。
JScript code:
//////////////////// AJAX类////////////////
function getxml ......
我生成的xml是这样的
<?xml version="1.0"?>
<message>
<title>dd </title>
<content>ee </content>
</message>
写了这 ......