public final class XMLUtil extends Object
修飾子とタイプ | メソッドと説明 |
---|---|
static Document |
toDocument(String xmlString)
XML文字列からDocumentオブジェクトを生成します。
|
static String |
toXmlString(Document document)
XML文字列に変換します。
|
public static Document toDocument(String xmlString) throws ParserConfigurationException, SAXException, IOException
xmlString
- XML文字列ParserConfigurationException
- パーサーの重大な例外SAXException
- XML文字列のフォーマット不正があった場合IOException
- 入出力例外public static String toXmlString(Document document) throws TransformerException
document
- DocumentインスタンスTransformerException
- 変換に失敗した場合(値にnullが含まれている等)Copyright © 2012 NTT DATA INTRAMART CORPORATION