以文本方式查看主题 - Foxtable(狐表) (http://foxtable.net/bbs/index.asp) -- 专家坐堂 (http://foxtable.net/bbs/list.asp?boardid=2) ---- 这种不对称的要如何生成XML (http://foxtable.net/bbs/dispbbs.asp?boardid=2&id=162978) |
-- 作者:keli0917 -- 发布时间:2021/4/19 13:36:00 -- 这种不对称的要如何生成XML <?xml version="1.0" encoding="GBK"?>
上面标红色的,这种不对称的如何用 用XObject生成XML |
-- 作者:有点蓝 -- 发布时间: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)
|