System::Xml::XmlConvert class
Contents
[
Hide
]XmlConvert class
Encodes and decodes XML names, and provides methods for converting between runtime types and XML Schema definition language (XSD) types. When converting data types, the values returned are locale-independent.
class XmlConvert : public System::Object
Methods
Method | Description |
---|---|
static DecodeName(const String&) | Decodes a name. This method does the reverse of the XmlConvert::EncodeName(String) and XmlConvert::EncodeLocalName(String) methods. |
static EncodeLocalName(const String&) | Converts the name to a valid XML local name. |
static EncodeName(const String&) | Converts the name to a valid XML name. |
static EncodeNmToken(const String&) | Verifies the name is valid according to the XML specification. |
static IsNCNameChar(char16_t) | Checks whether the passed-in character is a valid non-colon character type. |
static IsPublicIdChar(char16_t) | Returns the passed-in character instance if the character in the argument is a valid public id character, otherwise nullptr. |
static IsStartNCNameChar(char16_t) | Checks if the passed-in character is a valid Start Name Character type. |
static IsWhitespaceChar(char16_t) | Checks if the passed-in character is a valid XML whitespace character. |
static IsXmlChar(char16_t) | Checks if the passed-in character is a valid XML character. |
static IsXmlSurrogatePair(char16_t, char16_t) | Checks if the passed-in surrogate pair of characters is a valid XML character. |
static ToBoolean(String) | Converts the String to a Boolean equivalent. |
static ToByte(const String&) | Converts the String to a Byte equivalent. |
static ToChar(const String&) | Converts the String to a Char equivalent. |
static ToDateTime(const String&) | Converts the String to a DateTime equivalent. |
static ToDateTime(const String&, const String&) | Converts the String to a DateTime equivalent. |
static ToDateTime(const String&, const ArrayPtr<String>&) | Converts the String to a DateTime equivalent. |
static ToDateTime(const String&, XmlDateTimeSerializationMode) | Converts the String to a DateTime using the XmlDateTimeSerializationMode specified. |
static ToDateTimeOffset(const String&) | Converts the supplied String to a DateTimeOffset equivalent. |
static ToDateTimeOffset(const String&, const String&) | Converts the supplied String to a DateTimeOffset equivalent. |
static ToDateTimeOffset(const String&, const ArrayPtr<String>&) | Converts the supplied String to a DateTimeOffset equivalent. |
static ToDecimal(const String&) | Converts the String to a Decimal equivalent. |
static ToDouble(String) | Converts the String to a Double equivalent. |
static ToGuid(const String&) | Converts the String to a Guid equivalent. |
static ToInt16(const String&) | Converts the String to a Int16 equivalent. |
static ToInt32(const String&) | Converts the String to a Int32 equivalent. |
static ToInt64(const String&) | Converts the String to a Int64 equivalent. |
static ToSByte(const String&) | Converts the String to a SByte equivalent. |
static ToSingle(String) | Converts the String to a Single equivalent. |
static ToString(bool) | Converts the Boolean to a String. |
static ToString(char16_t) | Converts the Char to a String. |
static ToString(Decimal) | Converts the Decimal to a String. |
static ToString(int8_t) | Converts the SByte to a String. |
static ToString(int16_t) | Converts the Int16 to a String. |
static ToString(int32_t) | Converts the Int32 to a String. |
static ToString(int64_t) | Converts the Int64 to a String. |
static ToString(uint8_t) | Converts the Byte to a String. |
static ToString(uint16_t) | Converts the UInt16 to a String. |
static ToString(uint32_t) | Converts the UInt32 to a String. |
static ToString(uint64_t) | Converts the UInt64 to a String. |
static ToString(float) | Converts the Single to a String. |
static ToString(double) | Converts the Double to a String. |
static ToString(TimeSpan) | Converts the TimeSpan to a String. |
static ToString(DateTime) | Converts the DateTime to a String. |
static ToString(DateTime, const String&) | Converts the DateTime to a String. |
static ToString(DateTime, XmlDateTimeSerializationMode) | Converts the DateTime to a String using the XmlDateTimeSerializationMode specified. |
static ToString(DateTimeOffset) | Converts the supplied DateTimeOffset to a String. |
static ToString(DateTimeOffset, const String&) | Converts the supplied DateTimeOffset to a String in the specified format. |
static ToString(Guid) | Converts the Guid to a String. |
static ToTimeSpan(const String&) | Converts the String to a TimeSpan equivalent. |
static ToUInt16(const String&) | Converts the String to a UInt16 equivalent. |
static ToUInt32(const String&) | Converts the String to a UInt32 equivalent. |
static ToUInt64(const String&) | Converts the String to a UInt64 equivalent. |
static VerifyName(const String&) | Verifies that the name is a valid name according to the W3C Extended Markup Language recommendation. |
static VerifyNCName(const String&) | Verifies that the name is a valid NCName according to the W3C Extended Markup Language recommendation. An NCName is a name that cannot contain a colon. |
static VerifyNMTOKEN(const String&) | Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommendation. |
static VerifyPublicId(const String&) | Returns the passed in string instance if all the characters in the string argument are valid public id characters. |
static VerifyTOKEN(const String&) | Verifies that the string is a valid token according to the W3C XML Schema Part2: Datatypes recommendation. |
static VerifyWhitespace(const String&) | Returns the passed-in string instance if all the characters in the string argument are valid whitespace characters. |
static VerifyXmlChars(const String&) | Returns the passed-in string if all the characters and surrogate pair characters in the string argument are valid XML characters, otherwise an XmlException is thrown with information on the first invalid character encountered. |
Typedefs
Typedef | Description |
---|---|
Ptr | An alias for shared pointer to an instance of this class. |
See Also
- Class Object
- Namespace System::Xml
- Library Aspose.PDF for C++