XmlConvert
Encodes and decodes XML names, and provides methods for converting between common language runtime types and XML Schema definition language (XSD) types. When converting data types, the values returned are locale-independent.
Decodes a name. This method does the reverse of the EncodeName and EncodeLocalName methods.
Converts the name to a valid XML local name.
Converts the name to a valid XML name.
Verifies the name is valid according to the XML specification.
Converts the supplied String to a DateTimeOffset equivalent.
Converts the supplied String to a DateTimeOffset equivalent.
Converts the supplied String to a DateTimeOffset equivalent.
Converts the supplied DateTimeOffset to a String.
Converts the supplied DateTimeOffset to a String in the specified format.
Verifies that the name is a valid name according to the W3C Extended Markup Language recommendation.
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.
Verifies that the string is a valid NMTOKEN according to the W3C XML Schema Part2: Datatypes recommendation
Returns the passed in string instance if all the characters in the string argument are valid public id characters.
Returns the passed-in string instance if all the characters in the string argument are valid whitespace characters.
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.