System.Xml.XmlAttribute and IXMLDOMAttribute

only for RuBoard

System.Xml.XmlAttribute and IXMLDOMAttribute

XmlAttribute class in the System.Xml namespace is an implementation of the W3C Attr interface. This class represents an attribute in an XmlElement object. Valid and default values for the attribute are defined in a DTD or schema. XmlAttribute inherits from the XmlNode class, but it is important to remember that the DOM does not consider them part of the document tree. Table B.14 and Table B.15 list the properties and methods respectively found in the XmlAttribute class.

Table B.14. System.Xml.XmlAttribute and IXMLDOMAttribute Properties

XmlAttribute (Inherits XmlNode )

Description

MSXML IXMLDOMAttribute

BaseURI Overridden. Gets the base URI of the 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

NamespaceURI (Overrides XMLNode::NamespaceURI )

Returns the namespace URI of the current node.

namespaceURI

NodeType (Overrides XMLNode::NodeType )

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

nodeType (Gets an IXMLDOMNodeType enumeration member)

Value (Overrides XMLNode::Value )

Gets or sets the value (text) of the current node.

nodeValue

OwnerDocument (Overrides XMLNode::OwnerDocument )

Gets the XmlDocument to which the current node belongs.

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

OwnerElement

Gets the XmlElement to which the current attribute belongs.

 

ParentNode (Overrides XMLNode::ParentNode )

Gets the parent of the current node. For XmlAttribute nodes, this returns a null reference in C#, or Nothing in Visual Basic .NET.

parentNode

Prefix (Overrides XMLNode::Prefix )

Gets the namespace prefix associated with the current node.

prefix

Specified

Gets a Boolean value indicating whether the attribute value was explicitly set.

specified

InnerText (Overrides XMLNode::InnerText )

Gets or sets the concatenated values of the node and all its children.

text

InnerXml (Overrides XMLNode::InnerXml )

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

 

Value (Overrides XMLNode::Value )

Gets or sets the value (text) of the current node.

nodeValue

Table B.15. System.Xml.XmlAttribute and IXMLDOMAttribute Methods

XmlAttribute (Inherits XmlNode )

Description

MSXML IXMLDOMAttribute

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