Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

XML (WPL) Tool

Name: Anonymous 2006-04-06 20:02

helo world4ch
 
I want to create a txt/html file with only the filenames of a wpl-file.
looks like this:

<?wpl version="1.0"?>
<smil>
    <head>
        <meta name="Generator" content="Microsoft Windows Media Player -- 9.0.0.3344"/>
        <title>teh title</title>
    </head>
    <body>
        <seq>
            <media src="D:\teh file.mp3" tid="{fjfhdufkbhfudjkjfh}"/>
...

so what I need is a simple xml-tool that allows me to make a query for the "src"
or something that does it automatically
or a hint to let firefox doing it

Name: Anonymous 2006-04-07 9:47

$file = "test.wpl";
open(FH,"<$file") or die "Unable to open file for reading";
while ($i = <FH>) {
    next unless $i =~ /media src=([\'\"])([^\'\"]+)\1/;
    $filename = $2;
    print "$filename\n";
}
close(FH);

# Sample output:
# D:\teh file.mp3

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List