---
title: "notationDeclaration(forName:)"
framework: foundation
role: symbol
role_heading: Instance Method
path: "foundation/xmldtd/notationdeclaration(forname:)"
---

# notationDeclaration(forName:)

Returns the DTD node representing the notation declaration identified by the specified notation name.

## Declaration

```swift
func notationDeclaration(forName name: String) -> XMLDTDNode?
```

## Parameters

- `name`: A string that is the name of a notation.

## Return Value

Return Value An autoreleased XMLDTDNode object, or nil if there is no match.

## See Also

### Getting DTD Nodes by Name

- [predefinedEntityDeclaration(forName:)](foundation/xmldtd/predefinedentitydeclaration(forname:).md)
- [elementDeclaration(forName:)](foundation/xmldtd/elementdeclaration(forname:).md)
- [attributeDeclaration(forName:elementName:)](foundation/xmldtd/attributedeclaration(forname:elementname:).md)
- [entityDeclaration(forName:)](foundation/xmldtd/entitydeclaration(forname:).md)
