タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

Javaとxmlに関するtksinodaのブックマーク (1)

  • 出力フォーマットを指定する - 倭マン's BLOG

    今回は、Document オブジェクトをファイルなどに出力する際に、そのフォーマットを指定する org.dom4j.OutputFormat(以下、 OutputFormat)について見ていきます(一覧)。 OutputFormat は概ね org.dom4j.XMLWriter(以下、XMLWriter)と共に用います。 OutputFormat の使い方 OuputFormat を使う手順は OutputFormat オブジェクトを生成する そのOutputFormat オブジェクトを引数にして XMLWriter のインスタンス生成する XMLWriter を用いて Document オブジェクトを出力する です。 これを踏まえて、サンプル・コードを見てみましょう: import java.io.*; import org.dom4j.Document; import org.dom

    出力フォーマットを指定する - 倭マン's BLOG
  • 1