# .require. dotnet # .compile-only. # .args. -native-compiler:C:\Windows\Microsoft.NET\Framework\v3.5\csc.exe @ref 'System.Xml' use System.Xml use System.Xml.Linq extend XDocument def element(name as String) as XElement return sharp'_lh_this.Element(name)' class Program def main showname = 'Californication' xml = XDocument.load('http://www.tvrage.com/feeds/episode_list.php?show=[showname]') print xml.element('show')