General discussion

Locked

Wnat to parse below mentioned xml file

By adityam1977 ·
Hello,

I want to parse this file using perl and wan to take name and recset in variable using loop


<allchans>
<groupname="kenya">
<groupadmin="nanda"/>
<groupemail="nanda@dyyno.com"/>
<groupphone="16504943200"/>
<subgroupname="kenya">
<subgroupadmin="nanda"/>
<subgroupemail="nanda@dyyno.com;greg@dyyno.com"/>
<subgroupphone="16504943200"/>
<channel>
<name>kenyakbc</name>
<stream>live</stream>
<recset>fine</recset>
<recasof>date</recasof>
<hls>fine</hls>
<hlsasof>date</hlsasof>
<web>fine</web>
<webasof>date</webasof>
</channel>
<channel>
<name>kenyan24</name>
<stream>sr</stream>
<recset>fine</recset>
<recasof>date</recasof>
<hls>fine</hls>
<hlsasof>date</hlsasof>
<web>fine</web>
<webasof>date</webasof>
</channel>
</subgroup>
<subgroupname="newkenya">
<channel>
<name>kenyan24</name>
<stream>sr</stream>
<recset>fine</recset>
<recasof>date</recasof>
<hls>fine</hls>
<hlsasof>date</hlsasof>
<web>fine</web>
<webasof>date</webasof>
</channel>
</subgroup>
</group>
<groupname="bomtv">
<subgroupname="bomtv">
<channel>
<name>asianet</name>
<stream>sr</stream>
<recset>fine</recset>
<recasof>date</recasof>
<hls>fine</hls>
<hlsasof>date</hlsasof>
<web>fine</web>
<webasof>date</webasof>
</channel>
</subgroup>
</group>
</allchans>

This conversation is currently closed to new comments.

0 total posts (Page 1 of 1)  
| Thread display: Collapse - | Expand +

All Comments

Back to Software Forum
0 total posts (Page 1 of 1)  

Related Discussions

Related Forums