Inquiridor
Ler arquivo XML

Pergunta
-
Olá,
Tenho um arquivo XML com a seguinte estrutura:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Playlist CurrentTime="16/07/2007 10:56:03">
<OnAir>
<Break>
<Id>Comercial</Id>
<Op>90 FM</Op>
<SchedTime>16/07/2007 10:55:00</SchedTime>
<StartedTime>16/07/2007 10:51:19</StartedTime>
<Type>C</Type>
<InsCount>11</InsCount>
<MusicCount>1</MusicCount>
<Dur>00:08:37</Dur>
<SchedEnd>16/07/2007 10:59:56</SchedEnd>
<ShedPause/>
</Break>
<CurIns>
<StartedTime>16/07/2007 10:56:03</StartedTime>
<Id>743</Id>
<Name>MOVEIS CAPRICHO - 10 07</Name>
<Type>0</Type>
<Filename>MOVEIS CAPRICHO - 10 07.mp3</Filename>
<Dur>58.9</Dur>
<Intro/>
<Bitrate>256</Bitrate>
</CurIns>
<CurMusic>
<StartedTime/>
<Id/>
<Title/>
<Subtitle/>
<Artist/>
<Album/>
<Track/>
<Publisher/>
<Year/>
<Comment/>
<Language/>
<Genre/>
<RingTone/>
<URLComm/>
<URLCover/>
</CurMusic>
</OnAir>
<Next>s
<NextIns>
<Ins SchedTime="16/07/2007 10:57:01" Id="693" Type="0" Name="SUPER COSTA - CARRO 10 07" Filename="SUPER COSTA - CARRO 10 07.mp3" Dur="46.0" Intro="" Bitrate="160" />
<Ins SchedTime="16/07/2007 10:57:46" Id="729" Type="0" Name="AÇOUGUE DO CARLÃO -1704" Filename="AÇOUGUE DO CARLÃO -1704.mp3" Dur="46.7" Intro="" Bitrate="192"/>
<Ins SchedTime="16/07/2007 10:58:33" Id="735" Type="0" Name="IVAN GÁZ-2506" Filename="IVAN GÁZ-2506.mp3" Dur="40.6" Intro="" Bitrate="192"/>
<Ins SchedTime="16/07/2007 10:59:13" Id="281" Type="0" Name="Prefeitura Ribas(01-12-06) - Limpeza pública" Filename="Prefeitura Ribas(01-12-06) - Limpeza pública.MP3" Dur="33.6" Intro="" Bitrate="256"/>
<Ins SchedTime="16/07/2007 10:59:46" Id="304" Type="0" Name="VHT SAIDA DE BREAK" Filename="VHT SAIDA DE BREAK.mp3" Dur="10.5" Intro="" Bitrate="320"/>
</NextIns>
<NextMusic>
<Music SchedTime="16/07/2007 11:00:24" Id="9617" Title="JORNAL NOTICIAS DO MS - 2ª EDIÇÃO 001" Dur="18:14.8" Intro=""/>
<Music SchedTime="16/07/2007 11:21:39" Id="9618" Title="JORNAL NOTICIAS DO MS - 2ª EDIÇÃO 002" Dur="13:03.0" Intro=""/>
<Music SchedTime="16/07/2007 12:12:13" Id="10347" Title="wilson e soraia di paula - meu grande amor (endless_love) 2007" Dur="4:17.0" Intro=""/>
<Music SchedTime="16/07/2007 12:18:13" Id="10140" Title="marina elali - eu vou seguir 2007 (novela 7 pecados)" Dur="3:46.8" Intro=""/>
<Music SchedTime="16/07/2007 12:22:01" Id="9619" Title="fabio junior e bony tyler - sem limites pra sonhar" Dur="4:11.4" Intro=""/>
</NextMusic>
</Next>
</Playlist>
e preciso ler com ASP os seguintes dados:
<Music SchedTime="16/07/2007 11:00:24" Id="9617" Title="JORNAL NOTICIAS DO MS - 2ª EDIÇÃO 001" Dur="18:14.8" Intro=""/>
<Music SchedTime="16/07/2007 11:21:39" Id="9618" Title="JORNAL NOTICIAS DO MS - 2ª EDIÇÃO 002" Dur="13:03.0" Intro=""/>
<Music SchedTime="16/07/2007 12:12:13" Id="10347" Title="wilson e soraia di paula - meu grande amor (endless_love) 2007" Dur="4:17.0" Intro=""/>
<Music SchedTime="16/07/2007 12:18:13" Id="10140" Title="marina elali - eu vou seguir 2007 (novela 7 pecados)" Dur="3:46.8" Intro=""/>
<Music SchedTime="16/07/2007 12:22:01" Id="9619" Title="fabio junior e bony tyler - sem limites pra sonhar" Dur="4:11.4" Intro=""/>Alguém pode me ajudar ?
Obrigado,
Previatti
Todas as Respostas
-
só corrigindo,
o arquivo xml é o seguinte:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Playlist CurrentTime="16/07/2007 10:56:03">
<OnAir>
<Break>
<Id>Comercial</Id>
<Op>90 FM</Op>
<SchedTime>16/07/2007 10:55:00</SchedTime>
<StartedTime>16/07/2007 10:51:19</StartedTime>
<Type>C</Type>
<InsCount>11</InsCount>
<MusicCount>1</MusicCount>
<Dur>00:08:37</Dur>
<SchedEnd>16/07/2007 10:59:56</SchedEnd>
<ShedPause/>
</Break>
<CurIns>
<StartedTime>16/07/2007 10:56:03</StartedTime>
<Id>743</Id>
<Name>MOVEIS CAPRICHO - 10 07</Name>
<Type>0</Type>
<Filename>MOVEIS CAPRICHO - 10 07.mp3</Filename>
<Dur>58.9</Dur>
<Intro/>
<Bitrate>256</Bitrate>
</CurIns>
<CurMusic>
<StartedTime/>
<Id/>
<Title/>
<Subtitle/>
<Artist/>
<Album/>
<Track/>
<Publisher/>
<Year/>
<Comment/>
<Language/>
<Genre/>
<RingTone/>
<URLComm/>
<URLCover/>
</CurMusic>
</OnAir>
<Next>
<NextIns>
<Ins SchedTime="16/07/2007 10:57:01" Id="693" Type="0" Name="SUPER COSTA - CARRO 10 07" Filename="SUPER COSTA - CARRO 10 07.mp3" Dur="46.0" Intro="" Bitrate="160" />
<Ins SchedTime="16/07/2007 10:57:46" Id="729" Type="0" Name="AÇOUGUE DO CARLÃO -1704" Filename="AÇOUGUE DO CARLÃO -1704.mp3" Dur="46.7" Intro="" Bitrate="192"/>
<Ins SchedTime="16/07/2007 10:58:33" Id="735" Type="0" Name="IVAN GÁZ-2506" Filename="IVAN GÁZ-2506.mp3" Dur="40.6" Intro="" Bitrate="192"/>
<Ins SchedTime="16/07/2007 10:59:13" Id="281" Type="0" Name="Prefeitura Ribas(01-12-06) - Limpeza pública" Filename="Prefeitura Ribas(01-12-06) - Limpeza pública.MP3" Dur="33.6" Intro="" Bitrate="256"/>
<Ins SchedTime="16/07/2007 10:59:46" Id="304" Type="0" Name="VHT SAIDA DE BREAK" Filename="VHT SAIDA DE BREAK.mp3" Dur="10.5" Intro="" Bitrate="320"/>
</NextIns>
<NextMusic>
<Music SchedTime="16/07/2007 11:00:24" Id="9617" Title="JORNAL NOTICIAS DO MS - 2ª EDIÇÃO 001" Dur="18:14.8" Intro=""/>
<Music SchedTime="16/07/2007 11:21:39" Id="9618" Title="JORNAL NOTICIAS DO MS - 2ª EDIÇÃO 002" Dur="13:03.0" Intro=""/>
<Music SchedTime="16/07/2007 12:12:13" Id="10347" Title="wilson e soraia di paula - meu grande amor (endless_love) 2007" Dur="4:17.0" Intro=""/>
<Music SchedTime="16/07/2007 12:18:13" Id="10140" Title="marina elali - eu vou seguir 2007 (novela 7 pecados)" Dur="3:46.8" Intro=""/>
<Music SchedTime="16/07/2007 12:22:01" Id="9619" Title="fabio junior e bony tyler - sem limites pra sonhar" Dur="4:11.4" Intro=""/>
</NextMusic>
</Next>
</Playlist>