System.Xml.XmlDocumentFragment and IXMLDOMDocumentFragment

only for RuBoard

System.Xml.XmlDocumentFragment and IXMLDOMDocumentFragment

XmlDocumentFragment class in the System.Xml namespace is an implementation of the W3C DocumentFragment interface. This class represents a lightweight object that inherits the XmlNode class and is useful for tree insert operations. This can be used as an alternative to XmlDocument class, which might prove to be comparatively heavyweight for some operations on the document. Table B.6 and Table B.7 list the properties and methods respectively found in the XmlDocumentFragment class.

Table B.6. IXMLDOMDocumentFragment and System.Xml.XmlDocumentFragment Properties

XmlDocumentFragment (Inherits XmlNode )

Description

IXMLDOMDocument Fragment

InnerXml (Overrides XMLNode::InnerXml )

Gets or sets the markup representing the children of the current node.

 

LocalName (Overrides XMLNode::LocalName )

Gets the name of the node without the namespace prefix.

baseName

Name (Overrides XMLNode::Name )

Gets the qualified name of the node.

nodeName

NodeType (Overrides XMLNode::NodeType )

Returns an XmlNodeType enumeration member representing this node's type.

nodeType (Gets an IXMLDOMNodeType enumeration member)

OwnerDocument (Overrides XMLNode::OwnerDocument )

Gets the XmlDocument to which the current node belongs.

ownerDocument Gets the IXMLDOMDocument root note to which the current node belongs.

ParentNode (Overrides XMLNode::ParentNode )

Gets the parent of the current node. If the node has been created but not added to the tree, this returns a null reference in C#, or Nothing in Visual Basic .NET.

parentNode

Table B.7. System.Xml.XmlDocumentFragment and IXMLDOMDocumentFragment Methods

XmlDocumentFragment

Description

IXMLDOMDocument Fragment

CloneNode (Overrides XMLNode::CloneNode )

Similar to XMLNode::Clone , but accepts a deep Boolean parameter indicating if the subtree should be duplicated .

cloneNode

WriteContentTo (Overrides XMLNode::WriteContentTo )

Saves the contents of the XmlDocument node to the specified XmlWriter .

 

WriteTo (Overrides XMLNode::WriteTo )

Saves the XmlDocument node to the specified XmlWriter .

 
only for RuBoard


XML and ASP. NET
XML and ASP.NET
ISBN: B000H2MXOM
EAN: N/A
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net