Add XmlPullParser parseXml method

Issue: https://gitee.com/openharmony/interface_sdk-js/issues/IB1HCW

Signed-off-by: yaoyuan <yuanyao14@huawei.com>
Change-Id: I59aadcbe5b60605c639df1cb61be6fa4116c7ab1
This commit is contained in:
yaoyuan 2024-11-01 16:43:12 +08:00
parent 6f2cfbb06b
commit 260ce2dd01

15
api/@ohos.xml.d.ts vendored
View File

@ -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;