EntityHandling Enumeration

EntityHandling Enumeration

Specifies how entities are handled.

[Visual Basic]
Public Enum EntityHandling
public enum EntityHandling
__value public enum EntityHandling
enum EntityHandling


Member name Description

Supported by the .NET Compact Framework.

Expands character entities and returns general entities as nodes (NodeType equals XmlNodeType.EntityReference, Name equals the name of the entity, and HasValue equals false).

You must call ResolveEntity to see what the general entities expand to. This enables you to optimize entity handling by only expanding the entity the first time it is used.

When set to ExpandCharEntities, a reader call to the GetAttribute method expands all entities (both general and character entities).


Supported by the .NET Compact Framework.

Expands all entities. This is the default.

Entity reference nodes (NodeType equals XmlNodeType.EntityReference) are not returned. The entity text is expanded in place of the entity references.


Namespace: System.Xml

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

Assembly: System.Xml (in System.Xml.dll)

See Also

System.Xml Namespace | XmlValidatingReader.EntityHandling

© 2015 Microsoft