Class XmlSchemaValidation
Validate XML code in your incoming data against a XML schema definition. You need to define how the XML string can be read from your data row and the schema definition. Rows with a schema that is not valid are send to the error output..
Inheritance
XmlSchemaValidation
Implements
Inherited Members
Namespace: ETLBox.Xml
Assembly: ETLBox.Xml.dll
Syntax
public class XmlSchemaValidation : XmlSchemaValidation<ExpandoObject>, IDataFlowTransformation<ExpandoObject, ExpandoObject>, IDataFlowSource<ExpandoObject>, IDataFlowSource, IDataFlowDestination<ExpandoObject>, IDataFlowDestination, IDataFlowComponent, ILoggableTaskExamples
XmlSchemaValidation<MyXmlRow> schemaValidation = new XmlSchemaValidation<MyXmlRow>();
schemaValidation.XmlSelector = row => row.Xml;
schemaValidation.XmlSchema = xsdMarkup;
source.LinkTo(schemaValidation);
schemaValidation.LinkTo(dest);
schemaValidation.LinkErrorTo(error);Constructors
XmlSchemaValidation()
Declaration
public XmlSchemaValidation()XmlSchemaValidation(string, Func<ExpandoObject, string>)
Declaration
public XmlSchemaValidation(string xmlSchema, Func<ExpandoObject, string> xmlSelector)Parameters
| Type | Name | Description |
|---|---|---|
| string | xmlSchema | |
| Func<ExpandoObject, string> | xmlSelector |