Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ProcessingInstruction.cs
1using System;
2using System.Collections.Generic;
3using System.Text;
4using System.Xml;
5
6namespace Waher.Content.Html
7{
12 {
13 private readonly string instruction;
14
24 int EndPosition, string Instruction)
26 {
27 this.instruction = Instruction;
28 }
29
33 public string Instruction => this.instruction;
34
39 public override void Export(XmlWriter Output)
40 {
41 Output.WriteRaw("<?");
42 Output.WriteRaw(this.instruction);
43 Output.WriteRaw("?>");
44 }
45
50 public override void Export(StringBuilder Output)
51 {
52 Output.Append("<?");
53 Output.Append(this.instruction);
54 Output.Append("?>");
55 }
56 }
57}
Base class for all HTML elements.
Definition: HtmlElement.cs:12
Base class for all HTML nodes.
Definition: HtmlNode.cs:11
int StartPosition
Start position of element.
Definition: HtmlNode.cs:60
HtmlDocument Document
HTML Document
Definition: HtmlNode.cs:49
HtmlNode Parent
Parent node, if available.
Definition: HtmlNode.cs:54
int EndPosition
End position of element.
Definition: HtmlNode.cs:69
Represents a Processing instruction inside the document.
ProcessingInstruction(HtmlDocument Document, HtmlElement Parent, int StartPosition, int EndPosition, string Instruction)
Represents a Processing instruction inside the document.
string Instruction
Unparsed Processing instruction.
override void Export(XmlWriter Output)
Exports the HTML document to XML.
override void Export(StringBuilder Output)
Exports the HTML document to XML.