Click or drag to resize

XmlHelper Methods

The XmlHelper type exposes the following members.

Methods
  NameDescription
Public methodAddAttribute
Creates a new attribute with the name attributeName and the value attributeValue in the attributeCollection of the node parentNode, using the parentNode's owner document
Public methodAddNode(XmlNode, String)
Adds a new XmlNode with the name nodeName to the node parentNode specified
Public methodAddNode(XmlNode, String, String)
Adds a new XmlNode with the name nodeName and the value nodeValue to the node parentNode specified
Public methodCreateNewNode
Adds a new XmlNode with the name nodeName to the document specified. Does not add the node to any parent node.
Public methodStatic memberDeserializeObjectFromXmlStringT
Deserializes a new instance of type T from the XML string specified, using the deserializer func.
Public methodStatic memberEncodeTypeToXmlString
Encodes the type to XML string.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodStatic memberPropertyValueToString
Converts the value of the property passed in to a string
Public methodStatic memberSerializeObjectToXmlStringT
Serializes the object to XML string using the func specified.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodStatic memberWriteValueAsStringToXml
Writes the value as string to XML.
Public methodStatic memberXmlValueToObject(String, String)
Converts the passed in value to the type with the name typeName. The typeName has to be a known type in .NET, and currently can only be a simple type, or it has to implement an explicit conversion operator which converts a string to the real object. The value is returned as 'object'.
Public methodStatic memberXmlValueToObject(Type, String)
Converts the passed in value to the type specified. The realtype has to be a known type in .NET, and currently can only be a simple type, or it has to implement an explicit conversion operator which converts a string to the real object. The value is returned as 'object'.
Top
See Also