---
title: "parser(_:foundNotationDeclarationWithName:publicID:systemID:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/xmlparserdelegate/parser(_:foundnotationdeclarationwithname:publicid:systemid:)"
---

# parser(_:foundNotationDeclarationWithName:publicID:systemID:)

Sent by a parser object to its delegate when it encounters a notation declaration.

## Declaration

```swift
optional func parser(_ parser: XMLParser, foundNotationDeclarationWithName name: String, publicID: String?, systemID: String?)
```

## Parameters

- `parser`: An NSXMLParser object parsing XML.
- `name`: A string that is the name of the notation.
- `publicID`: A string specifying the public ID associated with the notation name.
- `systemID`: A string specifying the system ID associated with the notation name.

## See Also

### 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(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)](foundation/xmlparserdelegate/parser(_:foundunparsedentitydeclarationwithname:publicid:systemid:notationname:).md)
