创作了一个xml的替代格式
2024-10-18 21:53:43
xml格式:
<?xml version="1.0" encoding="GB2312"?>
<Relations>
<Relation name="PuDian.FrontFlow.In.text" type="1" transmit="PuDian.FrontFlow.In.arr" comment="大厦前置In">
<Agent object="PuDian.YW2.PD-YW2-4948-B4_2-1-4M214.Port-channel1.ifInBitsRate" />
<Agent object="PuDian.YW2.PD-YW2-4948-B4_2-2-4M213.Port-channel1.ifInBitsRate" />
</Relation>
<Relation name="PuDian.FrontFlow.Out.text" type="1" transmit="PuDian.FrontFlow.Out.arr" comment="大厦前置Out">
<Agent object="PuDian.YW2.PD-YW2-4948-B4_2-1-4M214.Port-channel1.ifOutBitsRate" />
<Agent object="PuDian.YW2.PD-YW2-4948-B4_2-2-4M213.Port-channel1.ifOutBitsRate" />
</Relation>
<Relation name="ZhangJ.FrontFlow.In.text" type="1" transmit="ZhangJ.FrontFlow.In.arr" comment="张江前置In">
<Agent object="ZhangJ.YW2.ZJ-YW2-4948-B4_2-1-2M108.Port-channel1.ifInBitsRate" />
<Agent object="ZhangJ.YW2.ZJ-YW2-4948-B4_2-2-2M107.Port-channel1.ifInBitsRate" />
<Agent text="cc">Hello</Agent>
</Relation>
</Relations>
自创格式:
Relatios:
{
Relation:name="PuDian.FrontFlow.In.text", type="1", transmit="PuDian.FrontFlow.In.arr", comment="大厦前置In"
{
Agent:object="PuDian.YW2.PD-YW2-4948-B4_2-1-4M214.Port-channel1.ifInBitsRate",
Agent:object="PuDian.YW2.PD-YW2-4948-B4_2-2-4M213.Port-channel1.ifInBitsRate"
},
Relation:name="PuDian.FrontFlow.Out.text", type="1", transmit="PuDian.FrontFlow.Out.arr", comment="大厦前置Out"
{
Agent:object="PuDian.YW2.PD-YW2-4948-B4_2-1-4M214.Port-channel1.ifOutBitsRate",
Agent:object="PuDian.YW2.PD-YW2-4948-B4_2-2-4M213.Port-channel1.ifOutBitsRate"
},
Relation:name="ZhangJ.FrontFlow.In.text", type="1", transmit="ZhangJ.FrontFlow.In.arr", comment="张江前置In"
{
Agent:object="ZhangJ.YW2.ZJ-YW2-4948-B4_2-1-2M108.Port-channel1.ifInBitsRate",
Agent:object="ZhangJ.YW2.ZJ-YW2-4948-B4_2-2-2M107.Port-channel1.ifInBitsRate",
Agent:text="cc",@text="Hello"
}
}
其中@打头的是用来保存<tag>text</tag>中的text,后面有时间搞个解释器。
最新文章
- 使用 Fiddler 上传微信公众账号 自定义菜单
- Python文件使用“wb”方式打开,写入内容
- oracle表空间不足时的处理方法
- 在PHP中$_SESSION的使用方法
- Connect教程系列--响应式布局(一)
- 译:在C#中使用LINQ To SQL
- 安装GRID时跑root.sh脚本报错(ORA-27091: unable to queue I/O)
- Dzz任务板初版完成笔记-仿trello私有部署的一款轻量团队任务协作工具。
- BZOJ 2588: Spoj 10628. Count on a tree 树上跑主席树
- HTML Entity 字符实体
- 05_MyBatis基于注解的开发
- Filter过滤器介绍
- Hive错误:User root is not allowed to impersonate anonymous
- jmeter之 jp@gc - Stepping Thread Group
- C# #if, #else和#endif预处理指令
- 视频支持拖动进度条播放的实现(基于nginx)
- XmlIgnore的使用
- FastReport.Net使用:[9]多栏报表(多列报表)
- 【2017年最新】 iOS面试题及答案
- HDU - 1223 DP 分类