共用方式為


SerializerOptions interface

管理 xml 剖析器和產生器行為的選項。

屬性

includeRoot

指出剖析 XML 時,是否要在輸出中包含根元素。

rootName

表示建置 XML 時所產生 XML 中根元素的名稱。

xmlCharKey

用來在剖析 XML 時存取 XML 值內容的索引鍵。

屬性詳細資料

includeRoot

指出剖析 XML 時,是否要在輸出中包含根元素。

includeRoot?: boolean

屬性值

boolean

rootName

表示建置 XML 時所產生 XML 中根元素的名稱。

rootName?: string

屬性值

string

xmlCharKey

用來在剖析 XML 時存取 XML 值內容的索引鍵。

xmlCharKey?: string

屬性值

string