System.Xml.EntityHandling Enumeration

Assembly: System.Xml.dll
Namespace: System.Xml
Summary
Specifies how entities are handled.
C# Syntax:
[Serializable]
public enum EntityHandling
See also:
System.Xml Namespace | XmlValidatingReader.EntityHandling

System.Xml.EntityHandling Member List:

Public Fields
ExpandCharEntities Expands character entities and returns general entities as nodes ( XmlValidatingReader.NodeType =XmlNodeType.EntityReference, XmlValidatingReader.Name =the name of the entity, XmlValidatingReader.HasValue = false). You must call XmlReader.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 XmlReader.GetAttribute method expands all entities (both general and character entities).
ExpandEntities Expands all entities. This is the default. Entity reference nodes ( XmlValidatingReader.NodeType = XmlNodeType.EntityReference) are not returned. The entity text is expanded in place of the entity references.

Hierarchy:


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.