Parsing types & stuff, simple XML generator