Options
All
  • Public
  • Public/Protected
  • All
Menu

Index

Functions

Functions

decode

  • decode(content: string): Object
  • 将xml文档内容解码为Object对象。

    特别注意,只支持简单的xml内容,不支持复杂的xml内容,如有模式定义引用等。

    Parameters

    • content: string

      xml字符串

    Returns Object

encode

  • encode(object: Object): string
  • 将Object对象编码为xml文档。

    Parameters

    • object: Object

      对象内容

    Returns string