Draws a tournament bracket based on an XML file.
The XML is composed of a <tournament>, which contains an optional <title>, and one <match>. Each <match> element contains either one or two participants. Matches with only one participant automatically get a bye. A participant is either a <match> or a <player>. <player> elements should contain the player's name. Both <player>s and <match>es can have an optional score attribute; if both participants in a match have a score then that determines the winner.
Here's a sample XML file:
<?xml version="1.0" encoding="UTF-8"?> <tournament> <title>Who Is Best At Twitter?</title> <match> <match> <match> <player score="600">Burrito Justice</player> </match> <match> <player score="200">Jef</player> <player score="500">Miche</player> </match> </match> <match> <player score="300">Lisa</player> <player score="400">Addie</player> </match> </match> </tournament>
ACME Laboratories / Bracketr