[Overview][Constants][Types][Classes][Procedures and functions][Index] |
Converts XML character data to its representation as a string value.
Source position: laz2_dom.pas line 853
function XMLValueToStr( |
const s: string |
):string; |
s |
|
XML character data to convert in the method. |
Plain string representation for the XML character data.
XMLValueToStr is a String function used to convert the XML character data in s to its representation as a string data type. The XML specification has five "predefined entities" that represent special characters. XMLValueToStr ensures that any of these character entities in s are converted to their plain string representation, including:
Character | Entity Name | Unicode Codepoint | Description |
" | " | U+0022 (Decimal 34) | Double quotation Mark |
& | & | U+0026 (Decimal 38) | Ampersand |
' | ' | U+0027 (Decimal 39) | Apostrophe (Apostrophe-Quote) |
< | < | U+003C (Decimal 60) | Less-than |
> | > | U+003E (Decimal 62) | Greater-than |
XMLValueToStr also ensures that any NULL character values (Decimal 0) in s are removed.
No actions are performed in the method when s is an empty string ('').
Use StrToXMLValue to convert a string data type to its representation as XML character data.
|
Converts a string to it representation as XML character data. |
Version 3.2 | Generated 2024-02-25 | Home |