Dycode SimpleUBL UBL 2.0 Class Library

ForwardingInstructions.GetSchemaValidationErrors Method

Validate document by schema. If document is not valid, return validation error. If document is valid, return null.

// Check document from stream (Only C++, .NET)

public string GetSchemaValidationErrors(Stream str, string schemaFile);

// Check document from file

public string GetSchemaValidationErrors(string file, string schemaFile);

// Check document from XML string

public string GetSchemaValidationErrorsFromXML(string xml, string schemaFile);

Parameters

str
XML document stream
file
Full filename, or relative to the current path.
xml
XML document string
schemaFile
XSD file location

See Also

ForwardingInstructions Class | Dycode.SimpleUBL | Two-phase validation