Click or drag to resize

XmlHelper Class

Generic XML helper class to work more efficient with an XmlDocument and XmlNodes. This class contains various utility methods to ease the (de)serialization process of the data to /from Xml
Inheritance Hierarchy
SystemObject
  SD.LLBLGen.Pro.ORMSupportClassesXmlHelper

Namespace:  SD.LLBLGen.Pro.ORMSupportClasses
Assembly:  SD.LLBLGen.Pro.ORMSupportClasses (in SD.LLBLGen.Pro.ORMSupportClasses.dll) Version: 5.8.0.0 (5.8.21.0111)
Syntax
public class XmlHelper

The XmlHelper type exposes the following members.

Constructors
  NameDescription
Public methodXmlHelper
Initializes a new instance of the XmlHelper class
Top
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
Fields
  NameDescription
Public fieldStatic memberCultureNameForXmlValueConversion
Name for the culture to use when converting a value to a string for XML serialization and to use when converting a string back to an object when XML is deserialized. The name follows the standard names used for CultureInfo. Default: Invariant culture. See MSDN documentation on CultureInfo for more information about the specific culture name for the culture to use. For invariant culture, use empty string.
Top
See Also