<!--
{
  "availability" : [
    "macOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreFoundation",
  "identifier" : "/documentation/CoreFoundation/CFXMLParserEndXMLStructureCallBack",
  "metadataVersion" : "0.1.0",
  "role" : "Type Alias",
  "symbol" : {
    "kind" : "Type Alias",
    "modules" : [
      "Core Foundation"
    ],
    "preciseIdentifier" : "c:@T@CFXMLParserEndXMLStructureCallBack"
  },
  "title" : "CFXMLParserEndXMLStructureCallBack"
}
-->

# CFXMLParserEndXMLStructureCallBack

Callback function invoked by the parser to notify your application that an XML structure (and all its children) have been completely parsed.

```
typealias CFXMLParserEndXMLStructureCallBack = (CFXMLParser?, UnsafeMutableRawPointer?, UnsafeMutableRawPointer?) -> Void
```

## Parameters

`parser`

The CFXMLParser object making the callback.

`xmlType`

The program-defined value representing the XML element whose end tag has been detected. This value was returned by the [`CFXMLParserCreateXMLStructureCallBack`](/documentation/CoreFoundation/CFXMLParserCreateXMLStructureCallBack) callback.

`info`

The program-defined context data you specified in the [`CFXMLParserContext`](/documentation/CoreFoundation/CFXMLParserContext) structure when creating the parser.

## Discussion

As elements are encountered, this callback is called first, then the [`CFXMLParserAddChildCallBack`](/documentation/CoreFoundation/CFXMLParserAddChildCallBack) callback to add the new structure to its parent, then the [`CFXMLParserAddChildCallBack`](/documentation/CoreFoundation/CFXMLParserAddChildCallBack) callback (potentially several times) to add the new structure’s children to it, and then finally the [`CFXMLParserEndXMLStructureCallBack`](/documentation/CoreFoundation/CFXMLParserEndXMLStructureCallBack) callback to show that the structure has been fully parsed.This callback is optional.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)