<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/XMLParserDelegate/parser(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(pl)NSXMLParserDelegate(im)parser:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:"
  },
  "title" : "parser(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)"
}
-->

# parser(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)

Sent by a parser object to its delegate when it encounters an unparsed entity declaration.

```
optional func parser(_ parser: XMLParser, foundUnparsedEntityDeclarationWithName name: String, publicID: String?, systemID: String?, notationName: String?)
```

## Parameters

`parser`

An `NSXMLParser` object parsing XML.

`name`

A string that is the name of the unparsed entity in the declaration.

`publicID`

A string specifying the public ID associated with the entity `name`.

`systemID`

A string specifying the system ID associated with the entity `name`.

`notationName`

A string specifying a notation of the declaration of entity `name`.

## See Also

[`parser(_:resolveExternalEntityName:systemID:)`](/documentation/Foundation/XMLParserDelegate/parser(_:resolveExternalEntityName:systemID:))

Sent by a parser object to its delegate when it encounters a given external entity with a specific system ID.



---

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)