---
title: shouldReportNamespacePrefixes
framework: foundation
role: symbol
role_heading: Instance Property
path: foundation/xmlparser/shouldreportnamespaceprefixes
---

# shouldReportNamespacePrefixes

A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations.

## Declaration

```swift
var shouldReportNamespacePrefixes: Bool { get set }
```

## Discussion

Discussion true if the parser reports the scope of namespace declarations, false otherwise. The default value is false. The parser reports prefixes with the delegate methods parser(_:didStartMappingPrefix:toURI:) and parser(_:didEndMappingPrefix:).

## See Also

### Managing Parser Behavior

- [shouldProcessNamespaces](foundation/xmlparser/shouldprocessnamespaces.md)
- [shouldResolveExternalEntities](foundation/xmlparser/shouldresolveexternalentities.md)
