XmlTextReader.IsDefault Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Gets a value indicating whether the current node is an attribute that was generated from the default value defined in the DTD or schema.

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

public override bool IsDefault { get; }

Property Value

Type: System.Boolean

This property always returns false. (XmlTextReader does not expand default attributes.)


Starting with the .NET Framework 2.0, we recommend that you create XmlReader instances by using the XmlReader.Create method to take advantage of new functionality.

This property applies only to attribute nodes.

.NET Framework
Available since 1.1
Return to top