참고: http://www.stylusstudio.com/xmldev/200210/post10820.html

InputSource xmlSource = new InputSource(new StringReader(sb.toString()));