---
title: "parser(_:foundInternalEntityDeclarationWithName:value:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/xmlparserdelegate/parser(_:foundinternalentitydeclarationwithname:value:)"
---

# parser(_:foundInternalEntityDeclarationWithName:value:)

Sent by a parser object to the delegate when it encounters an internal entity declaration.

## Declaration

```swift
optional func parser(_ parser: XMLParser, foundInternalEntityDeclarationWithName name: String, value: String?)
```

## Parameters

- `parser`: An NSXMLParser object parsing XML.
- `name`: A string that is the declared name of an internal entity.
- `value`: A string that is the value of entity 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(_:foundUnparsedEntityDeclarationWithName:publicID:systemID:notationName:)](foundation/xmlparserdelegate/parser(_:foundunparsedentitydeclarationwithname:publicid:systemid:notationname:).md)
- [parser(_:foundNotationDeclarationWithName:publicID:systemID:)](foundation/xmlparserdelegate/parser(_:foundnotationdeclarationwithname:publicid:systemid:).md)
