Click here to Skip to main content
13,403,621 members (49,656 online)
Click here to Skip to main content

Stats

46.7K views
44 bookmarked
Posted 6 Sep 2005

Parser Schemas– Easy and Powerful parsing of XML-based languages

, 18 Oct 2005
An article on parsing XML files according to the specified schema.
//------------------------------------------------------------------------------
// <auto-generated>
//     This code was generated by a tool.
//     Runtime Version:2.0.50215.44
//
//     Changes to this file may cause incorrect behavior and will be lost if
//     the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------

[assembly: global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="Comnicate.CodeDom.Xml.ParserSchemas.Resources.get_ResourceManager():System.Resour" +
    "ces.ResourceManager")]
[assembly: global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="Comnicate.CodeDom.Xml.ParserSchemas.Resources.get_Culture():System.Globalization." +
    "CultureInfo")]
[assembly: global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode", Scope="member", Target="Comnicate.CodeDom.Xml.ParserSchemas.Resources.set_Culture(System.Globalization.Cu" +
    "ltureInfo):Void")]

namespace Comnicate.CodeDom.Xml.ParserSchemas {
    
    
    /// <summary>
    ///   A strongly-typed resource class, for looking up localized strings, etc.
    /// </summary>
    // This class was auto-generated by the StronglyTypedResourceBuilder
    // class via a tool like ResGen or Visual Studio.
    // To add or remove a member, edit your .ResX file then rerun ResGen
    // with the /str option, or rebuild your VS project.
    [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
    [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
    internal class Resources {
        
        private static global::System.Resources.ResourceManager resourceMan;
        
        private static global::System.Globalization.CultureInfo resourceCulture;
        
        [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
        internal Resources() {
        }
        
        /// <summary>
        ///   Returns the cached ResourceManager instance used by this class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Resources.ResourceManager ResourceManager {
            get {
                if ((resourceMan == null)) {
                    global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Comnicate.CodeDom.Xml.ParserSchemas.Resources", typeof(Resources).Assembly);
                    resourceMan = temp;
                }
                return resourceMan;
            }
        }
        
        /// <summary>
        ///   Overrides the current thread's CurrentUICulture property for all
        ///   resource lookups using this strongly typed resource class.
        /// </summary>
        [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
        internal static global::System.Globalization.CultureInfo Culture {
            get {
                return resourceCulture;
            }
            set {
                resourceCulture = value;
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to This document does not conform to the specified parser schema. {0}.
        /// </summary>
        internal static string ExceptionMsg_Formatable1_InvalidDocument {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable1_InvalidDocument", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The &apos;{0}&apos; rule implementation is invalid. Contact application vendor..
        /// </summary>
        internal static string ExceptionMsg_Formatable1_InvalidRuleImpl {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable1_InvalidRuleImpl", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Cannot validate value of node &apos;{0}&apos; because the rule does not captured any value. Set NodeValueOptions to GetValue | RequireValue..
        /// </summary>
        internal static string ExceptionMsg_Formatable1_NoValueSupplied {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable1_NoValueSupplied", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Parent node &apos;{0}&apos; was not found..
        /// </summary>
        internal static string ExceptionMsg_Formatable1_ParentNodeNotFound {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable1_ParentNodeNotFound", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to An error occurred during the schema evaluation. {0}.
        /// </summary>
        internal static string ExceptionMsg_Formatable1_SchemaCannotBeEvaluated {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable1_SchemaCannotBeEvaluated", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Element &apos;{0}&apos; requires at least one child node. Parent markup: {1}.
        /// </summary>
        internal static string ExceptionMsg_Formatable2_AtLeastOneOptionalChildExpected {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable2_AtLeastOneOptionalChildExpected", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Element &apos;{0}&apos; is empty but is required to contain a value. Parent markup: {1}.
        /// </summary>
        internal static string ExceptionMsg_Formatable2_MissingNodeValue {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable2_MissingNodeValue", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Value &apos;{0}&apos; is invalid for the &apos;{1}&apos; node..
        /// </summary>
        internal static string ExceptionMsg_Formatable2_ValueIsInvalid {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable2_ValueIsInvalid", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Required child node &apos;{0}&apos; of node &apos;{1}&apos; was not found. Parent markup: {2}.
        /// </summary>
        internal static string ExceptionMsg_Formatable3_RequiredChildNotFound {
            get {
                return ResourceManager.GetString("ExceptionMsg_Formatable3_RequiredChildNotFound", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The rule is already linked to this rule..
        /// </summary>
        internal static string ExceptionMsg_LinkAlreadyExists {
            get {
                return ResourceManager.GetString("ExceptionMsg_LinkAlreadyExists", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The rule has not been linked to this rule..
        /// </summary>
        internal static string ExceptionMsg_LinkNotFound {
            get {
                return ResourceManager.GetString("ExceptionMsg_LinkNotFound", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to 0 optional child nodes required at the same time with the &apos;At least one optional child required&apos; option..
        /// </summary>
        internal static string ExceptionMsg_MaximumChildsCountToMatchOptionMisunderstood {
            get {
                return ResourceManager.GetString("ExceptionMsg_MaximumChildsCountToMatchOptionMisunderstood", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to None of passed arguments can be null..
        /// </summary>
        internal static string ExceptionMsg_NullArgumentsPassed {
            get {
                return ResourceManager.GetString("ExceptionMsg_NullArgumentsPassed", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to Provided schema was already evaluated..
        /// </summary>
        internal static string ExceptionMsg_SchemaAlreadyEvaluated {
            get {
                return ResourceManager.GetString("ExceptionMsg_SchemaAlreadyEvaluated", resourceCulture);
            }
        }
        
        /// <summary>
        ///   Looks up a localized string similar to The text element must not have child nodes. It is supposed to have text content only..
        /// </summary>
        internal static string ExceptionMsg_TextElementShouldNotHaveChildNodes {
            get {
                return ResourceManager.GetString("ExceptionMsg_TextElementShouldNotHaveChildNodes", resourceCulture);
            }
        }
    }
}

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 has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

Tomas Deml
Czech Republic Czech Republic
I'm a student of the Low-voltage Electrical Engineering specialized on Computing from the Czech republic.

I'm a C# kind of guy, fan of .NET.

I've formed a programming group called 'Comnicate!'. Currently the only member of the group is myself. Wink | ;-)

You may also be interested in...

Pro
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web03 | 2.8.1802120.2 | Last Updated 18 Oct 2005
Article Copyright 2005 by Tomas Deml
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid