The IXmlElement type exposes the following members.
Methods
Name | Description | |
---|---|---|
AddAttribute |
Provides a means to add a new attribute value.
| |
AddElement |
Create a new element and add it as a child element to this
element.
| |
Clone | Creates a new object that is a copy of the current instance. (Inherited from ICloneable.) | |
EnsureElement |
Ensure that a child element exists.
| |
Equals |
Compare this XML value with another XML value for equality.
(Inherited from IXmlValue.) | |
FindElement |
Find a child element with the specified '/'-delimited path.
| |
GetAttribute |
Get an attribute value.
| |
GetBinary()()()() |
Get the value as Binary.
(Inherited from IXmlValue.) | |
GetBinary(Binary) |
Get the value as Binary.
(Inherited from IXmlValue.) | |
GetBoolean()()()() |
Get the value as a boolean.
(Inherited from IXmlValue.) | |
GetBoolean(Boolean) |
Get the value as a boolean.
(Inherited from IXmlValue.) | |
GetDateTime()()()() |
Get the value as a DateTime.
(Inherited from IXmlValue.) | |
GetDateTime(DateTime) |
Get the value as a DateTime.
(Inherited from IXmlValue.) | |
GetDecimal()()()() |
Get the value as a decimal.
(Inherited from IXmlValue.) | |
GetDecimal(Decimal) |
Get the value as a decimal.
(Inherited from IXmlValue.) | |
GetDouble()()()() |
Get the value as a double.
(Inherited from IXmlValue.) | |
GetDouble(Double) |
Get the value as a double.
(Inherited from IXmlValue.) | |
GetElement |
Get a child element.
| |
GetElements |
Get an enumerator of child elements that have a specific name.
| |
GetHashCode |
Provide a hash value for this XML value.
(Inherited from IXmlValue.) | |
GetInt()()()() |
Get the value as an int.
(Inherited from IXmlValue.) | |
GetInt(Int32) |
Get the value as an int.
(Inherited from IXmlValue.) | |
GetLong()()()() |
Get the value as a long.
(Inherited from IXmlValue.) | |
GetLong(Int64) |
Get the value as a long.
(Inherited from IXmlValue.) | |
GetSafeAttribute |
Get an attribute value, and return a temporary value if the
attribute does not exist.
| |
GetSafeElement |
Return the specified child element using the same path notation
as supported by FindElement(String), but return a
read-only element if the specified element does not exist.
| |
GetString()()()() |
Get the value as a string.
(Inherited from IXmlValue.) | |
GetString(String) |
Get the value as a string.
(Inherited from IXmlValue.) | |
SetAttribute |
Set an attribute value.
| |
SetBinary |
Set the Binary value.
(Inherited from IXmlValue.) | |
SetBoolean |
Set the boolean value.
(Inherited from IXmlValue.) | |
SetDateTime |
Set the value as a DateTime.
(Inherited from IXmlValue.) | |
SetDecimal |
Set the decimal value.
(Inherited from IXmlValue.) | |
SetDouble |
Set the double value.
(Inherited from IXmlValue.) | |
SetInt |
Set the int value.
(Inherited from IXmlValue.) | |
SetLong |
Set the long value.
(Inherited from IXmlValue.) | |
SetString |
Set the string value.
(Inherited from IXmlValue.) | |
ToString |
Format the XML value into a string in a display format.
(Inherited from IXmlValue.) | |
WriteValue |
Write the value as it will appear in XML.
(Inherited from IXmlValue.) | |
WriteXml |
Write the element as it will appear in XML.
|
Properties
Name | Description | |
---|---|---|
AbsolutePath |
Get the '/'-delimited path of the element starting from the root
element.
| |
Attributes |
Get the dictionary of all attributes.
| |
Comment |
Get or set the text of any comments that are in the XML element.
| |
ElementList |
Get the list of all child elements.
| |
IsAttribute |
Determine if this value is an element attribute.
(Inherited from IXmlValue.) | |
IsContent |
Determine if this value is an element's content.
(Inherited from IXmlValue.) | |
IsEmpty |
Determine if the value is empty.
(Inherited from IXmlValue.) | |
IsMutable |
Determine if this value can be modified.
(Inherited from IXmlValue.) | |
Name |
Get or set the name of the element.
| |
Parent |
Get or set the parent element of this value.
(Inherited from IXmlValue.) | |
Root |
Get the root element.
| |
Value |
Get the value as an object.
(Inherited from IXmlValue.) |