mirror of
https://gitee.com/openharmony/interface_sdk-js
synced 2025-02-16 23:20:22 +00:00
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:
parent
6f2cfbb06b
commit
260ce2dd01
15
api/@ohos.xml.d.ts
vendored
15
api/@ohos.xml.d.ts
vendored
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user