Returns a String produced by decoding an XML entry that contains special characters that have been encoded to avoid errors in XML text files.
…XmlDoc.DecodeEntities(input_string)
Prerequisites
None
Parameters
input_string
A required String expression that contains the text to be decoded.
Remarks
Names and data within an XML text document must not contain the special characters shown in the table below. So, these special characters must be encoded if they are to be included in an XML entry. For efficiency the XML methods in GPL do not automatically check for these characters since their use is not very common.
If you need to include these characters, this method can be used to decode any data obtained from a GPL DOM document tree that includes encoded versions of these special characters. To encode data before placing it in an XML document, see the method XmlDoc.EncodeEntities.
This method converts the input_string value, decoding any encoded characters that it encounters into standard UTF-8 characters according to Table 19-118 and returns the result as a String value. This method does not convert 8-bit ASCII (e.g. ISO-8859-1) to UTF-8.
Character | Hex value | Name | Encoding |
---|---|---|---|
" |
&H22 |
double quote |
" |
& |
&H26 |
ampersand |
& |
' |
&H27 |
apostrophe |
' |
< |
&H3C |
less than |
< |
> |
&H3E |
greater than |
> |
Examples
Dim root As XmlNode
Dim ss As String
. . .
ss = root.GetElement("section1")
ss = XmlDoc.DecodeEntities(ss)
See Also