Implement StrPair class and some method of XMLUtil class