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 SourceValidationErrors
Gets the validation errors.
Declaration
public ReadOnlyCollection<string> ValidationErrors { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<System.String> |
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 SourceValidate(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. |
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. |