Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
ProcessingInstruction.cs
2using System.Text;
3using System.Xml;
4
5namespace Waher.Content.Html
6{
11 {
12 private readonly string instruction;
13
23 int EndPosition, string Instruction)
25 {
26 this.instruction = Instruction;
27 }
28
32 public string Instruction => this.instruction;
33
39 public override void Export(XmlWriter Output, Dictionary<string, string> Namespaces)
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:13
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, Dictionary< string, string > Namespaces)
Exports the HTML document to XML.
override void Export(StringBuilder Output)
Exports the HTML document to XML.