core: added support for hex numbers in XMLUtil::ToInt and XMLUtil::ToUnsigned