Interface IX2JS

Index

Construct signatures

Methods

Construct signatures

constructor(config?: IX2JSOption): IX2JS

Parameters

Returns

IX2JS

Methods

public asArray(prop: any): Array<any>

Parameters

  • prop: any

Returns

Array<any>

public asDateTime(key: string): string

Parameters

  • key: string

Returns

string

public asXmlDateTime(date: Date): string

Parameters

  • date: Date

Returns

string

public asXmlDateTime(date: number): string

Parameters

  • date: number

Returns

string

public getVersion(): string

Returns

string

public json2xml(json: T): Node

Parameters

  • json: T

Returns

Node

public json2xml_str(json: T): string

Parameters

  • json: T

Returns

string

public parseXmlString(xml: string): Node

Parameters

  • xml: string

Returns

Node

public xml2json(dom: Node): T

Parameters

  • dom: Node

Returns

T

public xml_str2json(xml: string): T

Parameters

  • xml: string

Returns

T