Info icon

WMS Beautifier


You know what a pain it is to read somebody else's code, don't you?
 
You know what a pain it is to read somebody else's code, don't you?

Skins code is no different. Recently my job required me to deal with Windows Media Playe skins. After dissecting one or two skins I have decided that it's just too much to bare, thus "WMS beautifier" came to existence.

source available here

to compile and run it you will neeed any of a variety of XML parsers. Required api's:
import java.io.*;
import javax.xml.parsers.*;
import org.w3c.dom.*;

Xerces that comes with recent Java SDK's will do.
compile:
javac -classpath .;xercesImpl.jar;xmlParserAPIs.jar WMSBeautifier.java

or compile.cmd

run:
java -classpath ".;xercesImpl.jar;xmlParserAPIs.jar" WMSBeautifier "wmp_skin_filename_with_full_path.wms"

or
beautify.cmd "wmp_skin_filename_with_full_path.wms"


The obligatory disclaimer
 
If you don't have the SDK you may get the compiled class here or get your copy of SDK from Sun

Get Java!

"Java and the Java Coffee Cup Logo are trademarks or registered trademarks of Sun Microsystems, Inc. in the U.S. and other countries."