diff --git a/api/@ohos.xml.d.ts b/api/@ohos.xml.d.ts index c570cba5a553b8746b974883b6277df443533525..33a5aa34d76c9f2f10f06150f3deda84ff1388a3 100644 --- a/api/@ohos.xml.d.ts +++ b/api/@ohos.xml.d.ts @@ -44,6 +44,20 @@ * @arkts 1.1&1.2 */ declare namespace xml { + /** + * The type of Deque forEach callback function. + * + * @typedef { function } AttributeWithTagCb + * @param { string } tagName - The name of tag + * @param { string } key - The name of attribute + * @param { value } string - The value of attribute + * @returns { boolean } This callback does not return a value + * @syscap SystemCapability.Utils.Lang + * @atomicservice + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 + */ + type AttributeWithTagCb = (tagName: string, key: string, value: string) => boolean /** * The XmlDynamicSerializer interface is used to dynamically generate an xml file. * @@ -1392,6 +1406,18 @@ declare namespace xml { * @arkts 1.1&1.2 */ tokenValueCallbackFunction?: (eventType: EventType, value: ParseInfo) => boolean; + + /** + * Token value callback function. + * + * @type { ?AttributeWithTagCb } + * @syscap SystemCapability.Utils.Lang + * @crossplatform + * @atomicservice + * @since arkts {'1.1':'20', '1.2':'20'} + * @arkts 1.1&1.2 + */ + attributeWithTagCallbackFunction?: AttributeWithTagCb; } /**