<xml></xml>

Saxon API for .NET |

# SchemaValidator.SetDestination Method

Supply the destination to hold the validated document. If no destination is supplied, the validated document is discarded.

public void SetDestination(
XmlDestination destination
);

#### Remarks

The destination differs from the source in that (a) default values of missing elements and attributes are supplied, and (b) the typed values of elements and attributes are available. However, typed values can only be accessed if the result is represented using the XDM data model, that is, if the destination is supplied as an XdmDestination.

#### See Also

SchemaValidator Class | Saxon.Api Namespace