diff --git a/api/@ohos.convertxml.d.ts b/api/@ohos.convertxml.d.ts index 60a72f6cf..8d5db7da3 100644 --- a/api/@ohos.convertxml.d.ts +++ b/api/@ohos.convertxml.d.ts @@ -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;