22 lines
357 B
Markdown
22 lines
357 B
Markdown
## xml
|
|
|
|
```ts
|
|
interface XmlPackage {
|
|
/**
|
|
* create xml string
|
|
*
|
|
* @param data object or array
|
|
* @param options options
|
|
*/
|
|
create(data: any, options?: {}): string
|
|
|
|
/**
|
|
* parse xml string to json
|
|
*
|
|
* @param xml xml string
|
|
* @param options options
|
|
*/
|
|
parse(xml: string, options?: {}): any
|
|
}
|
|
```
|