internal void AddProcessingInstruction(string name, string text) { if (this.current != null) { ProcessingInstructionNode node = new ProcessingInstructionNode(name, text, this.CurrentElement); this.VerifySize(node); this.CurrentElement.Add(node); } }
protected override void Visit(ProcessingInstructionNode node) { if (string.IsNullOrEmpty(node.Body)) { this.AddLiteral("<?" + node.Name + "?>"); } else { this.AddLiteral("<?" + node.Name + " " + node.Body + "?>"); } }
protected override void Visit(ProcessingInstructionNode node) { //[16] PI ::= '<?' PITarget (S (Char* - (Char* '?>' Char*)))? '?>' if (string.IsNullOrEmpty(node.Body)) { AddLiteral(string.Concat("<?", node.Name, "?>")); } else { AddLiteral(string.Concat("<?", node.Name, " ", node.Body, "?>")); } }
protected abstract void Visit(ProcessingInstructionNode node);
protected override void Visit(ProcessingInstructionNode node) { this.Nodes.Add(node); }
internal void AddProcessingInstruction(string name, string text) { if (this.current != null) { ProcessingInstructionNode node = new ProcessingInstructionNode(name, text, this.CurrentElement); this.VerifySize(node); this.CurrentElement.Add(node); } }