| Home » Categories » Solutions by Business Process » E-Business » XML |
“Escaped” Data Characters |
|
Article Number: 1803 | Rating: Unrated | Last Updated: Thu, Jun 22, 2023 at 5:00 PM
|
|
Datafile Software "Escaped” Data Characters Data in an XML file can consist of virtually any character. However, special processing is required if the data contains any of five characters that serve specific functions within an XML file. When present in data, these characters are converted to special "escape” sequences on output to an XML file, or converted back to their original form from an input XML file. Escape sequences start with an ampersand "&”, and are terminated by a semi-colon ";”. The special characters are: < The opening angle bracket character is interpreted as the start of an element tag, and is converted to the sequence "<” (ignoring the quotes, this is an ampersand, "lt” for "less than”, which is how the opening angle bracket is known, and a semi-colon) & The ampersand itself is represented as "&” > The closing angle bracket closes an element tag, and is converted to ">” " Double quotes are used to enclose the value of an attribute, and each one is converted to the sequence ""” ' The apostrophe can be used as an alternative to the double quote, and is converted to the sequence "'” According to the XML standards, only < and & must always be used instead of their literal character equivalents in element content. But often the other three are also converted for both symmetry reasons (>) and to prevent them being misconstrued as XML markup rather than data (" and '). |
Attachments
There are no attachments for this article.
|
Transaction Template Structures
Viewed 2107 times since Mon, Jul 9, 2012
Handling Incoming XML Errors
Viewed 3464 times since Thu, Jul 5, 2012
Style Sheets
Viewed 3828 times since Tue, Jul 10, 2012
Print CrNotes Processed
Viewed 3988 times since Mon, Jul 9, 2012
XML Error Files
Viewed 2253 times since Mon, Jul 9, 2012
decimals
Viewed 4533 times since Mon, Jul 9, 2012
Send XML Acknowledgements, Send XML Delivery Notifications
Viewed 2223 times since Thu, Jul 5, 2012
Lookup File Structure
Viewed 4562 times since Tue, Jul 10, 2012
Constants File
Viewed 2188 times since Mon, Jul 9, 2012
increment
Viewed 2263 times since Mon, Jul 9, 2012
|

