lang = new Locale(langISO.toLowerCase());
} else {
lang = new Locale(langISO.toLowerCase(), countryISO.toLowerCase());
}
} else {
throw new StaxNavException(navigator.getLocation(), "The attribute xml:lang='" + attribute
+ "' does not represent a valid language pattern (ie: en, en-us).");
}
}
String value = StaxNavUtils.getRequiredContent(navigator, false);