代码拉取完成,页面将自动刷新
同步操作将从 Cheedoong/xml2json 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
a C++ header-only library to convert XML document to JSON format
the first carefully written C++ library that converts XML to JSON, already used in the soft subtitle cross-domain solution at the server-end of Tencent Video (http://v.qq.com) and its CDNs
simple and fast, and almost fully support for XML standards
it follows these simple but carefully considered rules below:
Pattern | XML | JSON | Access |
1 |
<e/>
|
"e": null
|
o.e
|
2 |
<e>text</e>
|
"e": "text"
|
o.e
|
3 |
<e name="value" />
|
"e":{"@name": "value"}
|
o.e["@name"]
|
4 |
<e name="value">text</e>
|
"e": {
"@name": "value",
"#text": "text"
}
|
o.e["@name"]
o.e["#text"]
|
5 |
<e>
<a>text</a>
<b>text</b>
</e>
|
"e": {
"a": "text",
"b": "text"
}
|
o.e.a
o.e.b
|
6 |
<e>
<a>text</a>
<a>text</a>
</e>
|
"e": {
"a": ["text", "text"]
}
|
o.e.a[0]
o.e.a[1]
|
7 |
<e>
text
<a>text</a>
</e>
|
"e": {
"#text": "text",
"a": "text"
}
|
o.e["#text"]
o.e.a
|
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。