Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
HumanReadableTextNode.cs
1using System;
2using System.Threading.Tasks;
3using System.Xml;
5
7{
12 {
17 : base()
18 {
19 }
20
24 public string Text { get; set; }
25
29 public string Language { get; set; }
30
35 public override Task Parse(XmlElement Xml)
36 {
37 this.ChildNodes = Array.Empty<IStateMachineNode>();
38
39 this.Language = XML.Attribute(Xml, "lang");
40 this.Text = Xml.InnerText;
41
42 return Task.CompletedTask;
43 }
44 }
45}
Helps with common XML-related tasks.
Definition: XML.cs:21
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:1062
Abstract base class for state machine nodes representing human-readable text.
HumanReadableTextNode()
Abstract base class for state machine nodes representing human-readable text.
override Task Parse(XmlElement Xml)
Parses the State-machine node.
Abstract base class for State-Machine nodes.