parser -> _PARSER, minor code reorg
make sure keys to _type_info are strings.
move xml parsing logic to its own module.
misc fixes and clenups to the xml schema parser code