Moves XNA 4 files for Github migration.
This commit is contained in:
47
Plan B Html Parser/Nodes/HtmlDocumentNode.cs
Normal file
47
Plan B Html Parser/Nodes/HtmlDocumentNode.cs
Normal file
@@ -0,0 +1,47 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
|
||||
namespace PlanB.Html.Nodes
|
||||
{
|
||||
public class HtmlDocumentNode: HtmlNode
|
||||
{
|
||||
public HtmlDocumentNode()
|
||||
{
|
||||
Type = HtmlNodeType.Document_;
|
||||
}
|
||||
|
||||
public override string InnerHtml
|
||||
{
|
||||
get
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
|
||||
foreach (HtmlNode child in Children)
|
||||
{
|
||||
sb.Append(child.OuterHtml);
|
||||
}
|
||||
|
||||
return sb.ToString();
|
||||
}
|
||||
}
|
||||
|
||||
public override string OuterHtml
|
||||
{
|
||||
get
|
||||
{
|
||||
return InnerHtml;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public override string TagName
|
||||
{
|
||||
get { return "_Document"; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user