<!--
{
  "documentType" : "article",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/xml-processing-and-modeling",
  "metadataVersion" : "0.1.0",
  "role" : "collectionGroup",
  "title" : "XML Processing and Modeling"
}
-->

# XML Processing and Modeling

Parse XML documents.

## Topics

### Tree-Based Processing

[`XMLDTD`](/documentation/Foundation/XMLDTD)

A representation of a Document Type Definition.

[`XMLDTDNode`](/documentation/Foundation/XMLDTDNode)

A representation of element, attribute-list, entity, and notation declarations in a Document Type Definition.

[`XMLDocument`](/documentation/Foundation/XMLDocument)

An XML document as internalized into a logical tree structure.

[`XMLElement`](/documentation/Foundation/XMLElement)

The element nodes in an XML tree structure.

[`XMLNode`](/documentation/Foundation/XMLNode)

The nodes in the abstract, logical tree structure that represents an XML document.

### Event-Based Processing

[`XMLParser`](/documentation/Foundation/XMLParser)

An event driven parser of XML documents (including DTD declarations).

[`XMLParserDelegate`](/documentation/Foundation/XMLParserDelegate)

The interface an XML parser uses to inform its delegate about the content of the parsed document.



---

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)