com.amazonaws.util

## クラス XMLWriter

- java.lang.Object
- - com.amazonaws.util.XMLWriter

-     public class XMLWriter
      extends java.lang.Object

  Utility for creating easily creating XML documents, one element at a time.

- - ### コンストラクタの概要

    コンストラクタ
    コンストラクタと説明
    `XMLWriter(java.io.Writer w)` Creates a new XMLWriter, ready to write an XML document to the specified writer.
    `XMLWriter(java.io.Writer w, java.lang.String xmlns)` Creates a new XMLWriter, ready to write an XML document to the specified writer.

  - ### メソッドの概要

    メソッド
    修飾子とタイプ | メソッドと説明
    --- | ---
    `XMLWriter` | `endElement()` Closes the last opened element at the current position in the in-progress XML document.
    `XMLWriter` | `startElement(java.lang.String element)` Starts a new element with the specified name at the current position in the in-progress XML document.
    `XMLWriter` | `value(java.util.Date date)` Adds the specified date as text to the current position of the in-progress XML document.
    `XMLWriter` | `value(java.lang.Object obj)` Adds the string representation of the specified object to the current position of the in progress XML document.
    `XMLWriter` | `value(java.lang.String s)` Adds the specified value as text to the current position of the in progress XML document.

    - ### クラスから継承されたメソッド java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### コンストラクタの詳細

    - #### XMLWriter

          public XMLWriter(java.io.Writer w)

      Creates a new XMLWriter, ready to write an XML document to the specified writer. The XML document will not specify an xmlns attribute.
      パラメータ:
        `w` - The writer this XMLWriter will write to.

    - #### XMLWriter

          public XMLWriter(java.io.Writer w,
                   java.lang.String xmlns)

      Creates a new XMLWriter, ready to write an XML document to the specified writer. The root element in the XML document will specify an xmlns attribute with the specified namespace parameter.
      パラメータ:
        `w` - The writer this XMLWriter will write to.
        `xmlns` - The XML namespace to include in the xmlns attribute of the root element.

  - ### メソッドの詳細

    - #### startElement

          public XMLWriter startElement(java.lang.String element)

      Starts a new element with the specified name at the current position in the in-progress XML document.
      パラメータ:
        `element` - The name of the new element.
      戻り値:
        This XMLWriter so that additional method calls can be chained together.

    - #### endElement

          public XMLWriter endElement()

      Closes the last opened element at the current position in the in-progress XML document.
      戻り値:
        This XMLWriter so that additional method calls can be chained together.

    - #### value

          public XMLWriter value(java.lang.String s)

      Adds the specified value as text to the current position of the in progress XML document.
      パラメータ:
        `s` - The text to add to the XML document.
      戻り値:
        This XMLWriter so that additional method calls can be chained together.

    - #### value

          public XMLWriter value(java.util.Date date)

      Adds the specified date as text to the current position of the in-progress XML document.
      パラメータ:
        `date` - The date to add to the XML document.
      戻り値:
        This XMLWriter so that additional method calls can be chained together.

    - #### value

          public XMLWriter value(java.lang.Object obj)

      Adds the string representation of the specified object to the current position of the in progress XML document.
      パラメータ:
        `obj` - The object to translate to a string and add to the XML document.
      戻り値:
        This XMLWriter so that additional method calls can be chained together.