<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.0.0 -",
    "macOS: 10.0.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Foundation",
  "identifier" : "/documentation/Foundation/XMLParser/shouldResolveExternalEntities",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Foundation"
    ],
    "preciseIdentifier" : "c:objc(cs)NSXMLParser(py)shouldResolveExternalEntities"
  },
  "title" : "shouldResolveExternalEntities"
}
-->

# shouldResolveExternalEntities

A Boolean value that determines whether the parser reports declarations of external entities.

```
var shouldResolveExternalEntities: Bool { get set }
```

## Discussion

<doc://com.apple.documentation/documentation/Swift/true> if the parser reports declarations of external entities, <doc://com.apple.documentation/documentation/Swift/false> otherwise. The default value is <doc://com.apple.documentation/documentation/Swift/false>. If you set this property to <doc://com.apple.documentation/documentation/Swift/true>, you may cause other I/O operations, either network-based or disk-based, to load the external DTD.

The parser reports declarations of external entities with the delegate method [`parser(_:foundExternalEntityDeclarationWithName:publicID:systemID:)`](/documentation/Foundation/XMLParserDelegate/parser(_:foundExternalEntityDeclarationWithName:publicID:systemID:)).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)