Class XmlHelper
Inheritance
System.Object
XmlHelper
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: FixAntenna.AdminTool
Assembly: FixAntenna.AdminTool.dll
Syntax
public class XmlHelper
Methods
ProtectSpecialCharacters(String)
Returns the string where all non-ascii and <, &, > are encoded as numeric entities. I.e. "<A & B >" .... (insert result here). The result is safe to include anywhere in a text field in an XML-string. If there was no characters to protect, the original string is returned.
Declaration
public static string ProtectSpecialCharacters(string originalUnprotectedString)
Parameters
Type | Name | Description |
---|---|---|
System.String | originalUnprotectedString | original string which may contain characters either reserved in XML or with different representation in different encodings (like 8859-1 and UFT-8) |
Returns
Type | Description |
---|---|
System.String |
RestoreSpecialCharacters(String)
Declaration
public static string RestoreSpecialCharacters(string xml)
Parameters
Type | Name | Description |
---|---|---|
System.String | xml |
Returns
Type | Description |
---|---|
System.String |