Help save net neutrality! Learn more.
Close

[aa5ad3]: / supernightly.groovy  Maximize  Restore  History

Download this file

22 lines (18 with data), 424 Bytes

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
/* Copyright (C) 2009 Egon Willighagen <egonw@users.sf.net>
*
* LGPL 2.1
*/
import groovy.xml.MarkupBuilder;
def nodes = new XmlParser().parseText(new File("nodes.xml").text)
def writer = new StringWriter()
def xml = new MarkupBuilder(writer)
xml.html(xmlns: "http://www.w3.org/1999/xhtml") {
body() {
table() {
nodes.node.@url.findAll { url ->
tr(url)
}
}
}
}
print writer.toString()