JavaでXMLを扱う時、よくString⇔Documentの変換が必要になる。 どうも、このString⇔Documentの変換をサポートするAPIが見つからなかったので、書いた。 参考:http://www6.airnet.ne.jp/manyo/xml/index.html http://www.hellohiro.com/xmldom.htm 皆々様、レビューをお願いします。 ============================ import java.io.IOException; import java.io.StringReader; import java.io.StringWriter; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFacto