知深
2019-08-21 10:34
采纳率: 100%
浏览 213

java 解析xml文件遇到这种结构怎么解析

<?xml version="1.0" encoding="UTF-8"?>

<data> 
  <channel id="Sportv3.br"> 
    <display-name>SPORTV 3 HD</display-name> 
  </channel>  
  <channel id="Sportv2.br"> 
    <display-name>SPORTV 2 FULLHD</display-name> 
  </channel>  

  <programme start="20190721050000 -0300" stop="20190721070000 -0300" channel="Sportv3.br"> 
    <title>VT de Eventos</title>  
    <desc>Bunnicula e sua gangue, os "Bunny Boyz", se aventuram em Nova Orleans para recuperar as orelhas roubadas dele.</desc> 
  </programme>  
  <programme start="20190721070000 -0300" stop="20190721100500 -0300" channel="Sportv2.br"> 
    <title>VT de Eventos</title>  
    <desc>Bunnicula e sua gangue, os "Bunny Boyz", se aventuram em Nova Orleans para recuperar as orelhas roubadas dele.</desc> 
  </programme>  
    </data>

有大佬知道怎么解析这样的结构吗

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • Json-Huang 2019-08-21 12:44
    已采纳
    打赏 评论

相关推荐 更多相似问题