6 private string publicId;
8 private string systemId;
10 private string notationName;
14 private string unparsedReplacementStr;
16 private string baseURI;
20 private bool childrenFoliating;
29 public override string Name => name;
42 return base.InnerText;
50 internal override bool IsContainer =>
true;
56 if (lastChild ==
null && !childrenFoliating)
58 childrenFoliating =
true;
59 XmlLoader xmlLoader =
new XmlLoader();
60 xmlLoader.ExpandEntity(
this);
88 public override string OuterXml =>
string.Empty;
109 internal XmlEntity(
string name,
string strdata,
string publicId,
string systemId,
string notationName,
XmlDocument doc)
113 this.publicId = publicId;
114 this.systemId = systemId;
115 this.notationName = notationName;
116 unparsedReplacementStr = strdata;
117 childrenFoliating =
false;
130 internal override bool IsValidChildType(
XmlNodeType type)
151 internal void SetBaseURI(
string inBaseURI)
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
XmlNameTable NameTable
Gets the T:System.Xml.XmlNameTable associated with this implementation.
override void WriteTo(XmlWriter w)
Saves the node to the specified T:System.Xml.XmlWriter. For XmlEntity nodes, this method has no effec...
override void WriteContentTo(XmlWriter w)
Saves all the children of the node to the specified T:System.Xml.XmlWriter. For XmlEntity nodes,...
override string OuterXml
Gets the markup representing this node and all its children.
override string LocalName
Gets the name of the node without the namespace prefix.
override XmlNode CloneNode(bool deep)
Creates a duplicate of this node. Entity nodes cannot be cloned. Calling this method on an T:System....
XmlNodeType
Specifies the type of node.
override bool IsReadOnly
Gets a value indicating whether the node is read-only.
string PublicId
Gets the value of the public identifier on the entity declaration.
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
override XmlNodeType NodeType
Gets the type of the node.
string NotationName
Gets the name of the optional NDATA attribute on the entity declaration.
Represents an entity declaration, such as <!ENTITY... >.
override string InnerText
Gets the concatenated values of the entity node and all its children.
Gets the node immediately preceding or following this node.
abstract string Add(char[] array, int offset, int length)
When overridden in a derived class, atomizes the specified string and adds it to the XmlNameTable.
override string InnerXml
Gets the markup representing the children of this node.
override string BaseURI
Gets the base Uniform Resource Identifier (URI) of the current node.
override string Name
Gets the name of the node.
The exception that is thrown when a method call is invalid for the object's current state.
Represents a single node in the XML document.
string SystemId
Gets the value of the system identifier on the entity declaration.