Search Results for

    Show / Hide Table of Contents

    Class XmlValidator

    Class that makes XSD validation

    Inheritance
    System.Object
    XmlValidator
    Inherited Members
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.ToString()
    Namespace: OSGeo.MapGuide.MaestroAPI
    Assembly: OSGeo.MapGuide.MaestroAPI.dll
    Syntax
    public class XmlValidator

    Properties

    | Improve this Doc View Source

    ValidationErrors

    Gets the validation errors.

    Declaration
    public ReadOnlyCollection<string> ValidationErrors { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ReadOnlyCollection<System.String>
    | Improve this Doc View Source

    ValidationWarnings

    Gets the validation warnings.

    Declaration
    public ReadOnlyCollection<string> ValidationWarnings { get; }
    Property Value
    Type Description
    System.Collections.ObjectModel.ReadOnlyCollection<System.String>

    Methods

    | Improve this Doc View Source

    Validate(Stream, XmlSchema[])

    Validates the specified XML.

    Declaration
    public void Validate(Stream xml, XmlSchema[] xsds)
    Parameters
    Type Name Description
    System.IO.Stream xml

    The XML.

    System.Xml.Schema.XmlSchema[] xsds

    The array of System.Xml.Schema.XmlSchema objects to validate against.

    | Improve this Doc View Source

    ValidateResourceXmlContent(String, String, out String[], out String[])

    Validates the content of the resource XML.

    Declaration
    public static void ValidateResourceXmlContent(string xmlContent, string xsdPath, out string[] errors, out string[] warnings)
    Parameters
    Type Name Description
    System.String xmlContent

    Content of the XML.

    System.String xsdPath

    The XSD path.

    System.String[] errors

    The errors.

    System.String[] warnings

    The warnings.

    • Improve this Doc
    • View Source
    In This Article
    Back to top Copyright © 2009 - 2022 Jackie Ng