Hi, I have seen that wayland76 was playing with an XML Grammar on #perl6, so I think that it was maybe the time to send what I already have done.
Maybe it should be a perl6.user posting, but as there is actualy no working xml library available for perl 6 and it is a good test for how it feel to write a grammar with the actual specification, I post it here. I simply started with the pseudo XML grammar from Moritz on his blog and found myself reading the whole XML specification. I am definitively not a XML specialist and have no experience with sax or libxml and simply wanted to learn more about the perl 6 grammar syntax and features to be able to anderstand STD.pm. It's only a grammar for now without actions because a ran out of tuits. It is using only tokens and no rules because at the time the overriding of <ws> was not working properly. But hey, it (mostly) works and is a good examle of what you can do today with a perl 6 :) Feel free to propose better way to do it :)
xml.pl
Description: Perl program
Grammar.pm
Description: Perl program