System::Xml::Schema::XmlAtomicValue class

XmlAtomicValue class

Represents the typed value of a validated XML element or attribute. The XmlAtomicValue class cannot be inherited.

class XmlAtomicValue : public System::Xml::XPath::XPathItem

Methods

MethodDescription
Clone()Returns a copy of this XmlAtomicValue object.
get_IsNode() overrideReturns a value indicating whether the validated XML element or attribute is an XPath node or an atomic value.
get_TypedValue() overrideReturns the current validated XML element or attribute as a boxed object of the most appropriate type according to its schema type.
get_Value() overrideReturns the String value of the validated XML element or attribute.
get_ValueAsBoolean() overrideReturns the validated XML element or attribute’s value as a Boolean.
get_ValueAsDateTime() overrideReturns the validated XML element or attribute’s value as a DateTime.
get_ValueAsDouble() overrideReturns the validated XML element or attribute’s value as a Double.
get_ValueAsInt() overrideReturns the validated XML element or attribute’s value as an Int32.
get_ValueAsLong() overrideReturns the validated XML element or attribute’s value as an Int64.
get_ValueType() overrideReturns the type of the validated XML element or attribute.
get_XmlType() overrideReturns the XmlSchemaType for the validated XML element or attribute.
ToString() const overrideReturns the String value of the validated XML element or attribute.
ValueAs(const TypeInfo&, SharedPtr<IXmlNamespaceResolver>) overrideReturns the validated XML element or attribute’s value as the type specified using the IXmlNamespaceResolver object specified to resolve namespace prefixes.

Typedefs

TypedefDescription
PtrAn alias for shared pointer to an instance of this class.

Remarks

Objects of this class should only be allocated using System::MakeObject() function. Never create instances of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.

See Also