Postxml:= Tstringlist.create;
Postxml.Add('<?xml version="1.0" encoding="GBK" ?>');
Postxml.Add('<parameters>');
Postxml.Add('<parameter>');
idhttp.post(host,postxml);
这样post的数据会变成 <?xml version="1.0" e ......
<?xml version="1.0" encoding="UTF-8"?>
<menus>
<menu name="Members Area" link="#">
</menu>
<menu name="Training Programs" link="#">
<submenu link="#" ......
RT 如何使用JavaScript把一份xml格式的文件中的data读取转换成JSON 数组格式,弄好的在加分数
XML code:
- <channel>
<title>Key Events from Joe Santoro</title>
- <item>
<title>IMPACT 2010</title>
<events:start>May 02, 2010 12:00 AM</events:start> ......
<?xml version="1.0"
encoding="utf-8"?>(注释:最好使用utf-8编码)
<格式1>
<格式2>
<分支 name="测试"/>
</格式2>
</格式1>
(注意:xml是标记语言。标记都可以自己定义)
那flash是怎么读取xml呢??
先用flash几个函数来调用xml
n ......
<?xml version="1.0" encoding="utf-8" ?>
<Tables>
<Table LoadName="标准工时费">
<DisplayColumnName>网点号</DisplayColumnName>
<Parameter>@PointCode</Parameter>
<ExcelColumnName ......
C# code:
public class CfgData
{
public CfgData()
{
}
public CfgData(ChannelData channelData)
{
m_ChannelData = channelData;
}
private ChannelData m_ChannelData = new ChannelData();
[XmlElement("Ser ......