阅读背景:

将字符串数据转换成bean对象或者list集合

来源:互联网 
<collection xmlns:y="https://tail-f.com/ns/rest">
  <yunwangtong xmlns="https://example.com/yunwangtong">                                        
    <serviceid>510HLW045330</serviceid>
    <upMbps>20</upMbps>
    <downMbps>65</downMbps>
    <rd>64672:861660001</rd>
    <rt>17622:667520001</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ZTE</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/510HLW045330/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/510HLW045330/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/510HLW045330/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/510HLW045330/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/510HLW045330/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/510HLW045330/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/510HLW045330/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>510HLW045367</serviceid>
    <servstate>run</servstate>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:861660002</rd>
    <rt>17622:667520002</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-CSR1KV</device>
    </sr>
    <y:operations>
      <check-sync>/api/running/yunwangtong/510HLW045367/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/510HLW045367/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/510HLW045367/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/510HLW045367/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/510HLW045367/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/510HLW045367/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/510HLW045367/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>510HLW045368</serviceid>
    <servstate>run</servstate>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:861660001</rd>
    <rt>17622:667520001</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-CSR1KV</device>
    </sr>
    <y:operations>
      <check-sync>/api/running/yunwangtong/510HLW045368/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/510HLW045368/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/510HLW045368/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/510HLW045368/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/510HLW045368/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/510HLW045368/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/510HLW045368/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>510HLW045369</serviceid>
    <servstate>run</servstate>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:861660000</rd>
    <rt>17622:667520000</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-CSR1KV</device>
    </sr>
    <y:operations>
      <check-sync>/api/running/yunwangtong/510HLW045369/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/510HLW045369/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/510HLW045369/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/510HLW045369/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/510HLW045369/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/510HLW045369/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/510HLW045369/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>BRAS-ZTE-001</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:561660001</rd>
    <rt>17622:567520001</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ZTE</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/BRAS-ZTE-001/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/BRAS-ZTE-001/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/BRAS-ZTE-001/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/BRAS-ZTE-001/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/BRAS-ZTE-001/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/BRAS-ZTE-001/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/BRAS-ZTE-001/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>BRAS-ZTE-004</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:561660004</rd>
    <rt>17622:567520004</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ZTE</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/BRAS-ZTE-004/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/BRAS-ZTE-004/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/BRAS-ZTE-004/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/BRAS-ZTE-004/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/BRAS-ZTE-004/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/BRAS-ZTE-004/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/BRAS-ZTE-004/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SR-CISCO-BRAS-HW-001</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:888112301</rd>
    <rt>17622:888112301</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-CSR1KV</device>
    </sr>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-HW</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SR-CISCO-BRAS-HW-001/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SR-HW-0001</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>1234:1234</rd>
    <rt>1762:667520101</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-HW</device>
    </sr>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SR-HW-0001/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SR-HW-0001/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SR-HW-0001/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SR-HW-0001/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SR-HW-0001/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SR-HW-0001/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SR-HW-0001/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SR-HW-0002</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>1234:123400002</rd>
    <rt>1762:667520102</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-HW</device>
    </sr>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SR-HW-0002/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SR-HW-0002/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SR-HW-0002/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SR-HW-0002/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SR-HW-0002/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SR-HW-0002/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SR-HW-0002/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SR-HW-BRAS-ALU-001</serviceid>
    <upMbps>15</upMbps>
    <downMbps>45</downMbps>
    <rd>64672:888122301</rd>
    <rt>17622:888122301</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-HW</device>
    </sr>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ALU-TEST</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SR-HW-BRAS-ALU-001/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SR-HW-BRAS-ZTE-001</serviceid>
    <upMbps>25</upMbps>
    <downMbps>50</downMbps>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SR-HW-BRAS-ZTE-001/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SR-HW-BRAS-ZTE-002</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>64672:888122202</rd>
    <rt>17622:888122202</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-HW</device>
    </sr>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ZTE</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SR-HW-BRAS-ZTE-002/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>SRHWBRASZTE0033</serviceid>
    <upMbps>12</upMbps>
    <downMbps>24</downMbps>
    <rd>64672:888122233</rd>
    <rt>17622:888122233</rt>
    <sr xmlns="https://example.com/yunwangtong">
      <device>SR-HW</device>
    </sr>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ZTE</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/SRHWBRASZTE0033/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>alutestvprn9121</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>17816:12340006</rd>
    <rt>64672:12340006</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ALU-TEST</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/alutestvprn9121/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/alutestvprn9121/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/alutestvprn9121/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/alutestvprn9121/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/alutestvprn9121/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/alutestvprn9121/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/alutestvprn9121/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>alutestvprn9122</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>17816:12340022</rd>
    <rt>64672:12340022</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ALU-TEST</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/alutestvprn9122/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/alutestvprn9122/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/alutestvprn9122/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/alutestvprn9122/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/alutestvprn9122/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/alutestvprn9122/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/alutestvprn9122/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>vprn9127test</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>17816:12340007</rd>
    <rt>64672:12340007</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ALU</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/vprn9127test/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/vprn9127test/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/vprn9127test/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/vprn9127test/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/vprn9127test/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/vprn9127test/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/vprn9127test/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>vprn9128test</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>17816:12340008</rd>
    <rt>64672:12340008</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ALU</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/vprn9128test/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/vprn9128test/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/vprn9128test/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/vprn9128test/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/vprn9128test/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/vprn9128test/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/vprn9128test/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>

  <yunwangtong xmlns="https://example.com/yunwangtong">
    <serviceid>vprn9129test</serviceid>
    <upMbps>10</upMbps>
    <downMbps>20</downMbps>
    <rd>17816:12340009</rd>
    <rt>64672:12340009</rt>
    <bras xmlns="https://example.com/yunwangtong">
      <device>BRAS-ALU</device>
    </bras>
    <y:operations>
      <check-sync>/api/running/yunwangtong/vprn9129test/_operations/check-sync</check-sync>
      <deep-check-sync>/api/running/yunwangtong/vprn9129test/_operations/deep-check-sync</deep-check-sync>
      <re-deploy>/api/running/yunwangtong/vprn9129test/_operations/re-deploy</re-deploy>
      <reactive-re-deploy>/api/running/yunwangtong/vprn9129test/_operations/reactive-re-deploy</reactive-re-deploy>
      <touch>/api/running/yunwangtong/vprn9129test/_operations/touch</touch>
      <get-modifications>/api/running/yunwangtong/vprn9129test/_operations/get-modifications</get-modifications>
      <un-deploy>/api/running/yunwangtong/vprn9129test/_operations/un-deploy</un-deploy>
    </y:operations>
  </yunwangtong>
</collection><collection xmlns:y="https://tail-f.com/ns/rest



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: