rewrite of alphalevels2xml so it doesn't rely on the XML package anymore