Saxon API for .NET |

# DocumentBuilder.DtdValidation Property

Determines whether DTD validation is applied to documents loaded using this `DocumentBuilder`.

public bool DtdValidation {get; set;}

#### Remarks

By default, no DTD validation takes place.

Note that with the Microsoft `System.Xml` parser, if no DTD validation takes place, then `ID` and `IDREF` attributes declared in the DTD are not reported (and are therefore not accessible to the `id()` and `idref()` functions). Also, default and fixed values of attributes defined in the DTD will not be reported.

#### See Also

DocumentBuilder Class | Saxon.Api Namespace