43 XmlLoader xmlLoader =
new XmlLoader();
44 xmlLoader.ParsePartialContent(
this, value,
XmlNodeType.Element);
48 internal override bool IsContainer =>
true;
68 if (ownerDocument ==
null)
72 parentNode = ownerDocument;
85 xmlDocumentFragment.CopyChildren(ownerDocument,
this, deep);
87 return xmlDocumentFragment;
90 internal override bool IsValidChildType(
XmlNodeType type)
117 internal override bool CanInsertAfter(XmlNode newChild, XmlNode refChild)
119 if (newChild.NodeType ==
XmlNodeType.XmlDeclaration)
121 if (refChild ==
null)
123 return LastNode ==
null;
130 internal override bool CanInsertBefore(XmlNode newChild, XmlNode refChild)
132 if (newChild.NodeType ==
XmlNodeType.XmlDeclaration)
134 if (refChild !=
null)
166 if (disposable !=
null)
virtual XmlDocumentFragment CreateDocumentFragment()
Creates an T:System.Xml.XmlDocumentFragment.
Represents an XML document. You can use this class to load, validate, edit, add, and position XML in ...
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.
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...
XmlNodeType
Specifies the type of node.
XPathNodeType
Defines the XPath node types that can be returned from the T:System.Xml.XPath.XPathNavigator class.
Represents a writer that provides a fast, non-cached, forward-only way to generate streams or files t...
override XmlNode ParentNode
Gets the parent of this node (for nodes that can have parents).
override XmlNode CloneNode(bool deep)
Creates a duplicate of this node.
Gets the node immediately preceding or following this node.
override XmlNodeType NodeType
Gets the type of the current node.
object Current
Gets the element in the collection at the current position of the enumerator.
override string Name
Gets the qualified name of the node.
internal XmlDocumentFragment(XmlDocument ownerDocument)
Initializes a new instance of the T:System.Xml.XmlDocumentFragment class.
The exception that is thrown when one of the arguments provided to a method is not valid.
override XmlDocument OwnerDocument
Gets the T:System.Xml.XmlDocument to which this node belongs.
virtual XmlNode FirstChild
Gets the first child of the node.
override void WriteContentTo(XmlWriter w)
Saves all the children of the node to the specified T:System.Xml.XmlWriter.
override string InnerXml
Gets or sets the markup representing the children of this node.
override string LocalName
Gets the local name of the node.
virtual void RemoveAll()
Removes all the child nodes and/or attributes of the current node.
void Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resourc...
override void WriteTo(XmlWriter w)
Saves the node to the specified T:System.Xml.XmlWriter.
Represents a single node in the XML document.
Supports a simple iteration over a non-generic collection.
abstract XmlNodeType NodeType
Gets the type of the current node, when overridden in a derived class.
Represents a lightweight object that is useful for tree insert operations.