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 {
sequence{
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>
<email>john.doe@widget.com</email>
<phone>(202) 456-1414</phone>
<logo url="widget.gif"/>
</card>;
c.*.{ Console.WriteLine(it); };
}
}