mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2024-11-30 02:41:51 +00:00
!14557 Add ConvertXml fastConvertToJSObject method
Merge pull request !14557 from yaoyuan/fastConvertToJSObject
This commit is contained in:
commit
fb2ad2ac88
17
api/@ohos.convertxml.d.ts
vendored
17
api/@ohos.convertxml.d.ts
vendored
@ -625,6 +625,23 @@ declare namespace xml {
|
||||
* @since 11
|
||||
*/
|
||||
convertToJSObject(xml: string, options?: ConvertOptions): Object;
|
||||
|
||||
/**
|
||||
* To convert XML text to JavaScript object with better performance.
|
||||
*
|
||||
* @param { string } xml - xml xml The xml text to be converted.
|
||||
* @param { ConvertOptions } [options] - options option Option Inputted by user to set.
|
||||
* @returns { Object } Returns a JavaScript object converting from XML text.
|
||||
* @throws { BusinessError } 401 - Parameter error. Possible causes:
|
||||
* 1.Mandatory parameters are left unspecified;
|
||||
* 2.Incorrect parameter types.
|
||||
* @throws { BusinessError } 10200002 - Invalid xml string.
|
||||
* @syscap SystemCapability.Utils.Lang
|
||||
* @crossplatform
|
||||
* @atomicservice
|
||||
* @since 14
|
||||
*/
|
||||
fastConvertToJSObject(xml: string, options?: ConvertOptions): Object;
|
||||
}
|
||||
}
|
||||
export default xml;
|
||||
|
Loading…
Reference in New Issue
Block a user