zoukankan      html  css  js  c++  java
  • 创作了一个xml的替代格式

    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,后面有时间搞个解释器。

  • 相关阅读:
    php xdebug的配置、调试、跟踪、调优、分析
    alpine使用的避坑指南
    nginx fastcgi模块ngx_http_fastcgi_module详细解析、使用手册、完整翻译
    深入理解 Kubernetes 资源限制:CPU
    使用xdebug对php做性能分析调优
    alpine安装sshd/ssh server
    冒泡排序的终极改进优化
    基于Maven的Springboot+Mybatis+Druid+Swagger2+mybatis-generator框架环境搭建
    NPM使用
    NodeJS学习历程
  • 原文地址:https://www.cnblogs.com/Roarsun/p/10985316.html
Copyright © 2011-2022 走看看