Xml Class
Assembly: CodeEffects.Rule.Editor.dll
Namespace: CodeEffects.Rule.Editor.Utils
Summary
Provides helper methods for processing and managing Rule XML and Source XML.
Syntax
public static partial class Xml
Properties
RuleNamespace
Type: System.String
Gets the location of the Rule XML schema and defines the rule namespace used by the current version of Code Effects.
SourceNamespace
Type: System.String
Gets the location of the Source XML schema and defines the source namespace used by the current version of Code Effects.
UiNamespace
Type: System.String
Gets the namespace and location of the XML schema for supporting attributes used by the rule schema in the current version of Code Effects.
Methods
GetEmptyRuleDocument
Returns: System.Xml.XmlDocument
Returns an empty XmlDocument
containing only the root <codeeffects>
element. This document can serve as the starting point for a Rule XML when generating XML files dynamically.
Parameters
None.
GetEmptySourceDocument
Returns: System.Xml.XmlDocument
Returns an empty XmlDocument
containing only the root <codeeffects>
element. This document can serve as the starting point for a Source XML when generating XML files dynamically.
Parameters
None.
IsRuleValid
Returns: System.Boolean
Validates a Rule XML document against the current schema and CodeEffects' internal validation logic.
Parameters
- ruleXml (
System.Xml.XmlDocument
) - A Rule XML document.