implement XML parsing for Locale