2.8 正文XML示例
能耗监测数据以XML格式,采用UTF-8编码,封装在基础协议正文中,通过TCP/IP协议发送至服务器。
正文XML示例如下:
正文XML示例:
<?xml version="1.0" encoding="utf-8"?>
<!-- head 报头 -->
11000001 <!-- CentreId 数据中心编码 -->
110000 <!-- DistCode 城市编码 -->
2009-01-01 <!-- startTime 开始日期 -->
2010-08-31 <!-- endTime 截至日起 -->
<!-- 报体 -->
<!-- item 记录行 r 行序号 -->
<!-- func 分类编码; CollTime 数据采集日期; SumBuild 总栋数; TotalArea 建筑面积; AirArea 空调面积; HeatArea 采暖面积-->
<!-- EZValue 照明插座用电; EKValue 空调用电; EDValue 动力用电; ETValue 特殊用电; EValue 总电能耗值; SumValue 总能耗值 -->
<item r="1" func="A" CollTime="2009-05-01" SumBuild="16" TotalArea="645720.0000" AirArea="478424.0000" HeatArea="478424.0000"
EZValue="2168.0000" EKValue="12.0000" EDValue="0" ETValue="950.0000" EValue="3130.0000" SumValue="3130.0000"/>
<item r="2" func="B" CollTime="2009-05-01" SumBuild="36" TotalArea="1442864.0000" AirArea="1234665.0000" HeatArea="1238665.0000"
EZValue="7158.0100" EKValue="523.4900" EDValue="942.4940" ETValue="653.0060" EValue="9277.0000" SumValue="9277.0000"/>
<item r="3" func="D" CollTime="2009-05-01" SumBuild="44" TotalArea="1617093.0000" AirArea="1355361.0000" HeatArea="1411551.0000"
EZValue="13119.3820" EKValue="553.3950" EDValue="2894.6620" ETValue="2213.5180" EValue="18780.9570" SumValue="18780.9570"/>
<item r="4" func="A" CollTime="2009-05-02" SumBuild="16" TotalArea="645720.0000" AirArea="478424.0000" HeatArea="478424.0000"
EZValue="1276.0000" EKValue="15.0000" EDValue="0" ETValue="518.0000" EValue="1809.0000" SumValue="1809.0000"/>
<item r="5" func="B" CollTime="2009-05-02" SumBuild="36" TotalArea="1442864.0000" AirArea="1234665.0000" HeatArea="1238665.0000"
EZValue="4592.9280" EKValue="275.8560" EDValue="662.6440" ETValue="406.2500" EValue="5937.6780" SumValue="5937.6780"/>
<item r="6" func="D" CollTime="2009-05-02" SumBuild="44" TotalArea="1617093.0000" AirArea="1355361.0000" HeatArea="1411551.0000"
EZValue="7810.8160" EKValue="182.7120" EDValue="2526.0480" ETValue="1477.0960" EValue="11996.6720" SumValue="11996.6720"/>
<item r="7" func="A" CollTime="2009-05-03" SumBuild="16" TotalArea="645720.0000" AirArea="478424.0000" HeatArea="478424.0000"
EZValue="1319.8560" EKValue="13.5440" EDValue="0" ETValue="499.6560" EValue="1833.0560" SumValue="1833.0560"/>
<item r="8" func="B" CollTime="2009-05-03" SumBuild="36" TotalArea="1442864.0000" AirArea="1234665.0000" HeatArea="1238665.0000"
EZValue="4698.0950" EKValue="253.1920" EDValue="665.3080" ETValue="417.7500" EValue="6034.3450" SumValue="6034.3450"/>
<item r="9" func="D" CollTime="2009-05-03" SumBuild="44" TotalArea="1617093.0000" AirArea="1355361.0000" HeatArea="1411551.0000"
EZValue="7619.1670" EKValue="174.2940" EDValue="2582.9510" ETValue="1568.9020" EValue="11945.3140" SumValue="11945.3140"/>