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);
     }
 }
Ejemplo n.º 2
0
 protected override void Visit(ProcessingInstructionNode node)
 {
     if (string.IsNullOrEmpty(node.Body))
     {
         this.AddLiteral("<?" + node.Name + "?>");
     }
     else
     {
         this.AddLiteral("<?" + node.Name + " " + node.Body + "?>");
     }
 }
Ejemplo n.º 3
0
 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, "?>"));
     }
 }
Ejemplo n.º 4
0
 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);
     }
 }