Class XmlUtil
Class to provide support for working with Xml objects.
Inheritance
System.Object
    XmlUtil
  Inherited Members
      System.Object.Equals(System.Object)
    
    
      System.Object.Equals(System.Object, System.Object)
    
    
      System.Object.GetHashCode()
    
    
      System.Object.GetType()
    
    
      System.Object.MemberwiseClone()
    
    
      System.Object.ReferenceEquals(System.Object, System.Object)
    
    
      System.Object.ToString()
    
  Namespace: Apache.NMS.Util
Assembly: Apache.NMS.dll
Syntax
public class XmlUtilMethods
| Improve this Doc View SourceCleanInvalidXmlChars(String)
This removes characters that are invalid for xml encoding
Declaration
public static string CleanInvalidXmlChars(string text)Parameters
| Type | Name | Description | 
|---|---|---|
| System.String | text | Text to be encoded. | 
Returns
| Type | Description | 
|---|---|
| System.String | Text with invalid xml characters removed. | 
Deserialize(Type, String)
Declaration
public static object Deserialize(Type objType, string text)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Type | objType | |
| System.String | text | 
Returns
| Type | Description | 
|---|---|
| System.Object | 
Serialize(Object)
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.
Declaration
public static string Serialize(object obj)Parameters
| Type | Name | Description | 
|---|---|---|
| System.Object | obj | 
Returns
| Type | Description | 
|---|---|
| System.String |