C# Class SobekCM.Resource_Object.Utilities.METS_Validator_Object

Validates a METS file with references to the SobekCM custom schema
Written by Gus Clifton and Mark Sullivan ( 2005 ).
Exibir arquivo Open project: MarkVSullivan/SobekCM-Web-Application

Public Methods

Method Description
METS_Validator_Object ( bool load_all_schemas ) : System

Constructor for a new instance of the METS_Validator_Object class.

Validate_Against_Schema ( string METS_File ) : bool

Validates a single METS XML file

If this does not validate, the accumulated errors can be reached through the 'Errors' property.

Private Methods

Method Description
MyValidationEventHandler ( object sender, ValidationEventArgs args ) : void

EventHandler is called when there is an error during validation

Method Details

METS_Validator_Object() public method

Constructor for a new instance of the METS_Validator_Object class.
public METS_Validator_Object ( bool load_all_schemas ) : System
load_all_schemas bool Flag indicates whether third-party schemas should be loaded for validation
return System

Validate_Against_Schema() public method

Validates a single METS XML file
If this does not validate, the accumulated errors can be reached through the 'Errors' property.
public Validate_Against_Schema ( string METS_File ) : bool
METS_File string Location and name of file to validate
return bool