nodeLoadExternalEntitiesSameOriginOnly
Requests that external entities are always loaded and only applies when a URL has been provided.
Declaration
static var nodeLoadExternalEntitiesSameOriginOnly: XMLNode.Options { get }Discussion
It loads entities with target URLs that match the host, scheme, and port of the document URL.You may choose only one of nodeLoadExternalEntitiesAlways, nodeLoadExternalEntitiesSameOriginOnly, or nodeLoadExternalEntitiesNever or none.
Choosing none results in the system-default behavior. For applications linked on OS X v10.6 and earlier, this is NSXMLNodeLoadExternalEntitiesAlways. For applications linked on macOS 10.7 or later, all entities that don’t require network access are loaded.
If an external entity fails to load, the document is invalid and the parse is aborted with an error.
See Also
Constants
documentIncludeContentTypeDeclarationdocumentTidyHTMLdocumentTidyXMLdocumentValidatedocumentXIncludenodeCompactEmptyElementnodeExpandEmptyElementnodeIsCDATAnodeLoadExternalEntitiesAlwaysnodeLoadExternalEntitiesNevernodeNeverEscapeContentsnodePreserveAllnodePreserveAttributeOrdernodePreserveCDATAnodePreserveCharacterReferences