---
title: "parser(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/xmlparserdelegate/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.

## Declaration

```swift
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

### Related Documentation

- [parser(_:resolveExternalEntityName:systemID:)](foundation/xmlparserdelegate/parser(_:resolveexternalentityname:systemid:).md)

### Handling the DTD

- [parser(_:foundAttributeDeclarationWithName:forElement:type:defaultValue:)](foundation/xmlparserdelegate/parser(_:foundattributedeclarationwithname:forelement:type:defaultvalue:).md)
- [parser(_:foundElementDeclarationWithName:model:)](foundation/xmlparserdelegate/parser(_:foundelementdeclarationwithname:model:).md)
- [parser(_:foundExternalEntityDeclarationWithName:publicID:systemID:)](foundation/xmlparserdelegate/parser(_:foundexternalentitydeclarationwithname:publicid:systemid:).md)
- [parser(_:foundInternalEntityDeclarationWithName:value:)](foundation/xmlparserdelegate/parser(_:foundinternalentitydeclarationwithname:value:).md)
- [parser(_:foundNotationDeclarationWithName:publicID:systemID:)](foundation/xmlparserdelegate/parser(_:foundnotationdeclarationwithname:publicid:systemid:).md)
