14 public override string Name => name;
24 public override string Value 45 internal override bool IsContainer =>
true;
63 internal string ChildBaseURI
68 if (entityNode !=
null)
86 if (!doc.IsLoading && name.Length > 0 && name[0] ==
'#')
88 throw new ArgumentException(Res.GetString(
"Xdom_InvalidCharacter_EntityReference"));
91 doc.fEntRefNodesPresent =
true;
103 internal override void SetParent(
XmlNode node)
105 base.SetParent(node);
106 if (LastNode ==
null && node !=
null && node !=
OwnerDocument)
108 XmlLoader xmlLoader =
new XmlLoader();
109 xmlLoader.ExpandEntityReference(
this);
113 internal override void SetParentForLoad(XmlNode node)
118 internal override bool IsValidChildType(
XmlNodeType type)
159 if (disposable !=
null)
166 private string ConstructBaseURI(
string baseURI,
string systemId)
172 int num = baseURI.LastIndexOf(
'/') + 1;
173 string str = baseURI;
174 if (num > 0 && num < baseURI.Length)
176 str = baseURI.Substring(0, num);
182 return str + systemId.Replace(
'\\',
'/');
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
override XmlNode CloneNode(bool deep)
Creates a duplicate of this node.
override void WriteTo(XmlWriter w)
Saves the node to the specified T:System.Xml.XmlWriter.
IEnumerator GetEnumerator()
Get an enumerator that iterates through the child nodes in the current node.
bool MoveNext()
Advances the enumerator to the next element of the collection.
XmlNameTable NameTable
Gets the T:System.Xml.XmlNameTable associated with this implementation.
override string BaseURI
Gets the base URI of the current node.
virtual XmlDocument OwnerDocument
Gets the T:System.Xml.XmlDocument to which this node belongs.
override bool IsReadOnly
Gets a value indicating whether the node is read-only.
abstract void WriteTo(XmlWriter w)
Saves the current node to the specified T:System.Xml.XmlWriter, when overridden in a derived class.
Provides a mechanism for releasing unmanaged resources.To browse the .NET Framework source code for t...
Represents an entity reference node.
internal XmlEntityReference(string name, XmlDocument doc)
Initializes a new instance of the T:System.Xml.XmlEntityReference class.
XmlNodeType
Specifies the type of node.
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
Represents an entity declaration, such as <!ENTITY... >.
Gets the node immediately preceding or following this node.
object Current
Gets the element in the collection at the current position of the enumerator.
abstract void WriteEntityRef(string name)
When overridden in a derived class, writes out an entity reference as &name;.
The exception that is thrown when one of the arguments provided to a method is not valid.
override string Value
Gets or sets the value of the 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.
virtual XmlEntityReference CreateEntityReference(string name)
Creates an T:System.Xml.XmlEntityReference with the specified name.
override void WriteContentTo(XmlWriter w)
Saves all the children of the node to the specified T:System.Xml.XmlWriter.
override string BaseURI
Gets the base Uniform Resource Identifier (URI) of the current node.
The exception that is thrown when a method call is invalid for the object's current state.
override XmlNodeType NodeType
Gets the type of the node.
override string BaseURI
Gets the base Uniform Resource Identifier (URI) of the current node.
void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resourc...
override string Name
Gets the name of the node.
Represents a single node in the XML document.
Supports a simple iteration over a non-generic collection.
string SystemId
Gets the value of the system identifier on the entity declaration.
override string LocalName
Gets the local name of the node.