Instance Method インスタンスメソッド

xmlData(options:)

Returns the XML string representation of the receiver—that is, the entire document—encapsulated in a data object. レシーバのXML文字列表現を返します — すなわち、書類全体 — データオブジェクトの中にカプセル化されます。

Declaration 宣言

func xmlData(options: XMLNode.Options = []) -> Data

Parameters パラメータ

options オプション

One or more options (bit-OR'd if multiple) to affect the output of the document; see Constants for the valid output options. 1つ以上のオプション(複数ならばビットORされます)、書類の出力に影響を与えます;定数を有効な出力オプションとして見てください。

Discussion 議論

The encoding used is based on the value returned from characterEncoding. 使われる符号化は、characterEncodingから返される値に基づきます。

See Also 参照

Writing a Document as XML Data 書類をXMLデータとして書き出す