implement xml grammar class constants
psr-2 cleanup