From 260ce2dd01fbffc4267285dbb4325f02ba948626 Mon Sep 17 00:00:00 2001 From: yaoyuan Date: Fri, 1 Nov 2024 16:43:12 +0800 Subject: [PATCH] Add XmlPullParser parseXml method Issue: https://gitee.com/openharmony/interface_sdk-js/issues/IB1HCW Signed-off-by: yaoyuan Change-Id: I59aadcbe5b60605c639df1cb61be6fa4116c7ab1 --- api/@ohos.xml.d.ts | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/api/@ohos.xml.d.ts b/api/@ohos.xml.d.ts index 7443b377d..776e9b60d 100644 --- a/api/@ohos.xml.d.ts +++ b/api/@ohos.xml.d.ts @@ -1282,6 +1282,21 @@ declare namespace xml { * @since 11 */ parse(option: ParseOptions): void; + + /** + * Parse the XML file from XmlPullParser. + * + * @param { ParseOptions } option - Parse options for XmlPullParser, the interface including + * two Boolean variables and three callback functions. + * @throws { BusinessError } 401 - Parameter error. Possible causes: + * 1.Mandatory parameters are left unspecified; + * 2.Incorrect parameter types. + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since 14 + */ + parseXml(option: ParseOptions): void; } } export default xml; -- Gitee