Click here to Skip to main content
15,885,914 members
Articles / Programming Languages / XML

Validating data with Flat File Checker

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
30 Oct 2009GPL32 min read 43.7K   881   17  
An article on data validation with a flat file schema generated in Flat File Checker.
Imports System.Xml


Public Class EmptyChecker
    Inherits RequiredChecker

    Public Sub New(ByVal parent As GeneralChecker, ByVal column As DataColumn)
        MyBase.New(column, parent)
    End Sub

    Public Overrides ReadOnly Property Type() As DataRuleType
        Get
            Return DataRuleType.Empty
        End Get
    End Property
    Friend Overrides Function GetNode() As XmlNode
        Dim chkXml As XmlElement
        chkXml = Document.CreateElement("Empty", "")
        Me.AppendWhereXml(chkXml)
        Me.AppendActionXml(chkXml)
        Return chkXml
    End Function

    Public Overrides ReadOnly Property RuleName() As String
        Get
            Return "Empty"
        End Get
    End Property
End Class

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The GNU General Public License (GPLv3)


Written By
Database Developer
United Kingdom United Kingdom
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions