Foxtable(狐表)用户栏目专家坐堂 → 这种不对称的要如何生成XML


  共有2821人关注过本帖树形打印复制链接

主题:这种不对称的要如何生成XML

帅哥,在线噢!
有点蓝
  1楼 | 信息 | 搜索 | 邮箱 | 主页 | UC


加好友 发短信
等级:超级版主 帖子:110590 积分:562846 威望:0 精华:9 注册:2015/6/24 9:21:00
  发帖心情 Post By:2021/4/19 14:12:00 [显示全部帖子]

Dim jo As New Foxtable.XObject
jo("@id") = "FPKJ"
jo("REQUEST_COMMON_FPKJ") = new  JObject
jo("REQUEST_COMMON_FPKJ")("@class") = "REQUEST_COMMON_FPKJ"
jo("REQUEST_COMMON_FPKJ")("COMMON_FPKJ_FPT") = new  JObject
jo("REQUEST_COMMON_FPKJ")("COMMON_FPKJ_FPT")("@class") = "COMMON_FPKJ_FPT"
jo("REQUEST_COMMON_FPKJ")("COMMON_FPKJ_FPT")("FPQQLSH") = "2104181724080000001"
'其它属性
jo("REQUEST_COMMON_FPKJ")("COMMON_FPKJ_XMXXS") = new  JObject
jo("REQUEST_COMMON_FPKJ")("COMMON_FPKJ_XMXXS")("@class") = "COMMON_FPKJ_XMXX"
'其它属性
Dim ja As New JArray
Dim so As new JObject
so("FPHXZ") = 0
so("FPHXZ") = "1090413010100000000"
'其它属性
ja.Add(so)

so = new JObject
so("FPHXZ") = 0
so("FPHXZ") = "1090413050000000000"
'其它属性
ja.Add(so)
jo("REQUEST_COMMON_FPKJ")("COMMON_FPKJ_XMXXS")("COMMON_FPKJ_XMXX") = ja

Dim jo2 As New Foxtable.XObject
jo2("business") = jo
Output.Show(jo2.ToXML)

 回到顶部