C# Class Apache.NMS.Util.XmlUtil

Class to provide support for working with Xml objects.
Datei anzeigen Open project: ThorTech/apache-nms

Public Methods

Method Description
CleanInvalidXmlChars ( string text ) : string

This removes characters that are invalid for xml encoding

Deserialize ( Type objType, string text ) : object
Serialize ( object obj ) : string

Serialize the object to XML format. The XML encoding will be UTF-8. A Byte Order Mark (BOM) will NOT be placed at the beginning of the string.

Private Methods

Method Description
XmlUtil ( ) : System

Static class constructor.

serializer_UnknownAttribute ( object sender, XmlAttributeEventArgs e ) : void
serializer_UnknownElement ( object sender, XmlElementEventArgs e ) : void
serializer_UnknownNode ( object sender, XmlNodeEventArgs e ) : void

Method Details

CleanInvalidXmlChars() public static method

This removes characters that are invalid for xml encoding
public static CleanInvalidXmlChars ( string text ) : string
text string Text to be encoded.
return string

Deserialize() public static method

public static Deserialize ( Type objType, string text ) : object
objType System.Type
text string
return object

Serialize() public static method

Serialize the object to XML format. The XML encoding will be UTF-8. A Byte Order Mark (BOM) will NOT be placed at the beginning of the string.
public static Serialize ( object obj ) : string
obj object
return string