+ "']";
Document pinyinToGwoyeuMappingDoc =
GwoyeuRomatzyhResource.getInstance().getPinyinToGwoyeuMappingDoc();
Element hanyuNode = pinyinToGwoyeuMappingDoc.xpathSelectElement(xpathQuery1);
if (null != hanyuNode) {
// find the node of target Pinyin system
String xpathQuery2 =
"../" + PinyinRomanizationType.GWOYEU_ROMATZYH.getTagName()
+ tones[Integer.parseInt(toneNumberStr) - 1] + "/text()";
String targetPinyinStrWithoutToneNumber = hanyuNode.xpathSelectString(xpathQuery2);
gwoyeuStr = targetPinyinStrWithoutToneNumber;
}
} catch (ParseException e) {
e.printStackTrace();