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