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.Threading.Tasks;
2using System.Xml;
4
6{
11 {
16 : base()
17 {
18 }
19
23 public string Text { get; set; }
24
28 public string Language { get; set; }
29
34 public override Task Parse(XmlElement Xml)
35 {
36 this.ChildNodes = new IStateMachineNode[0];
37
38 this.Language = XML.Attribute(Xml, "lang");
39 this.Text = Xml.InnerText;
40
41 return Task.CompletedTask;
42 }
43 }
44}
Helps with common XML-related tasks.
Definition: XML.cs:19
static string Attribute(XmlElement E, string Name)
Gets the value of an XML attribute.
Definition: XML.cs:914
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.