all static grammar usage const + xml_tree cleanups