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-06 20:23

With Ruby and the REXML library:

require 'rexml/document'
include REXML

file = File.new( 'file.wpl' )
doc = Document.new( file )
doc.elements.each( '//media' ) { |e| puts e.attributes['src'] }
file.close

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