Xen, an .Net based XML programming language

 After a year or two, Microsoft Research has released a research paper on Xen, a .Net based programming language design to work with well with XML. Here is an simple example of what changes in the language:

public class card {
      string  name;
      string  title;
      string  email;
      string? phone;
      logo?   logo;

  public class logo {
    attribute string url;

  public class Test {

      static void Main() {
        card c = <card>
                   <name>John Doe</name>
                   <title>CEO, Widget Inc.</title>
                   <phone>(202) 456-1414</phone>
                   <logo url="widget.gif"/>
        c.*.{ Console.WriteLine(it); };

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s