• Tutorials
  • Api Documentation
  • Download
  • Credits
Show / Hide Table of Contents
  • AutoCheck.Core
    • Output
    • Output.Log
    • Output.Style
    • Output.Type
    • Script
    • Script.ExecutionMode
    • Utils
    • Utils.OS
  • AutoCheck.Core.Connectors
    • Atom
    • Base
    • Compressed
    • Css
    • Csv
    • CsvDocument
    • Dmoj
    • GDrive
    • Html
    • Math
    • Odoo
    • Operator
    • PlainText
    • PlainText.PlainTextDocument
    • Postgres
    • Rss
    • Shell
    • TextStream
    • Xml
    • Xml.XmlNodeType
  • AutoCheck.Core.CopyDetectors
    • Base
    • Base.Mode
    • Css
    • Html
    • PlainText
    • PlainText.File
    • SourceCode
    • SqlLog
    • Xml
  • AutoCheck.Core.Events
    • LogUpdateEventArgs
    • StatusUpdateEventArgs
    • StatusUpdateEventArgs.ExecutionEvent
  • AutoCheck.Core.Exceptions
    • ArgumentInvalidException
    • ArgumentNotFoundException
    • ConfigFileMissingException
    • ConnectionInvalidException
    • ConnectorInvalidException
    • ConnectorNotFoundException
    • DocumentInvalidException
    • DownloadFailedException
    • ItemNotFoundException
    • PorpertyNotFoundException
    • QueryInvalidException
    • RegexInvalidException
    • ResultMismatchException
    • ScriptInvalidException
    • ScriptNotFoundException
    • StyleInvalidException
    • StyleNotAppliedException
    • StyleNotFoundException
    • TableInconsistencyException
    • VariableInvalidException
    • VariableNotFoundException
  • Google.DiffMatchPatch
    • Diff
    • DiffMatchPatch
    • Operation
    • Patch

Class Xml

Allows in/out operations and/or data validations with XML files.

Inheritance
System.Object
Base
Xml
Rss
Inherited Members
Base.ProcessRemoteFile(Utils.OS, String, String, String, Int32, String, Action<String>)
Namespace: AutoCheck.Core.Connectors
Assembly: AutoCheck.Core.dll
Syntax
public class Xml : Base

Constructors

| Improve this Doc View Source

Xml(Utils.OS, String, String, String, Int32, String, ValidationType)

Declaration
public Xml(Utils.OS remoteOS, string host, string username, string password, int port, string filePath, ValidationType validation = null)
Parameters
Type Name Description
Utils.OS remoteOS
System.String host
System.String username
System.String password
System.Int32 port
System.String filePath
ValidationType validation
| Improve this Doc View Source

Xml(Utils.OS, String, String, String, String, ValidationType)

Declaration
public Xml(Utils.OS remoteOS, string host, string username, string password, string filePath, ValidationType validation = null)
Parameters
Type Name Description
Utils.OS remoteOS
System.String host
System.String username
System.String password
System.String filePath
ValidationType validation
| Improve this Doc View Source

Xml(String, ValidationType)

Creates a new connector instance.

Declaration
public Xml(string filePath, ValidationType validation = null)
Parameters
Type Name Description
System.String filePath

XML file path.

ValidationType validation

Validation type.

Properties

| Improve this Doc View Source

Comments

Declaration
public string[] Comments { get; }
Property Value
Type Description
System.String[]
| Improve this Doc View Source

Raw

The original XML file content (unparsed).

Declaration
public string Raw { get; }
Property Value
Type Description
System.String
| Improve this Doc View Source

XmlDoc

The XML document content.

Declaration
public XmlDocument XmlDoc { get; }
Property Value
Type Description
XmlDocument

Methods

| Improve this Doc View Source

CountNodes(String, Xml.XmlNodeType)

Requests for the amount of nodes.

Declaration
public int CountNodes(string xpath, Xml.XmlNodeType type = Xml.XmlNodeType.ALL)
Parameters
Type Name Description
System.String xpath

XPath expression.

Xml.XmlNodeType type
Returns
Type Description
System.Int32

The amount of nodes.

| Improve this Doc View Source

CountNodes(XmlNode, String, Xml.XmlNodeType)

Requests for the amount of nodes.

Declaration
public int CountNodes(XmlNode root, string xpath, Xml.XmlNodeType type = Xml.XmlNodeType.ALL)
Parameters
Type Name Description
XmlNode root

Root node from where the XPath expression will be evaluated.

System.String xpath

XPath expression.

Xml.XmlNodeType type
Returns
Type Description
System.Int32

The amount of nodes.

| Improve this Doc View Source

Dispose()

Disposes the object releasing its unmanaged properties.

Declaration
public override void Dispose()
Overrides
Base.Dispose()
| Improve this Doc View Source

Equals(Xml, Boolean)

Declaration
public bool Equals(Xml xmlConn, bool ignoreSchema = true)
Parameters
Type Name Description
Xml xmlConn
System.Boolean ignoreSchema
Returns
Type Description
System.Boolean
| Improve this Doc View Source

Equals(XmlDocument, Boolean)

Declaration
public bool Equals(XmlDocument xmlDoc, bool ignoreSchema = true)
Parameters
Type Name Description
XmlDocument xmlDoc
System.Boolean ignoreSchema
Returns
Type Description
System.Boolean
| Improve this Doc View Source

SelectNodes(String, Xml.XmlNodeType)

Requests for a set of nodes.

Declaration
public List<XPathNavigator> SelectNodes(string xpath, Xml.XmlNodeType type = Xml.XmlNodeType.ALL)
Parameters
Type Name Description
System.String xpath

XPath expression.

Xml.XmlNodeType type
Returns
Type Description
List<XPathNavigator>

A list of nodes.

| Improve this Doc View Source

SelectNodes(XmlNode, String, Xml.XmlNodeType)

Requests for a set of nodes.

Declaration
public List<XPathNavigator> SelectNodes(XmlNode root, string xpath, Xml.XmlNodeType type = Xml.XmlNodeType.ALL)
Parameters
Type Name Description
XmlNode root

Root node from where the XPath expression will be evaluated.

System.String xpath

XPath expression.

Xml.XmlNodeType type
Returns
Type Description
List<XPathNavigator>

A list of nodes.

Extension Methods

ObjectExtensions.DeepClone<T>(T)
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX