|
Ray, Have you considered using a parser to generate the XML? It should take care of translation for you. If you want to do this in RPG, you'll need the XML Toolkit for iSeries (5733-XT1). You could, of course, do this in Java but that's a discussion for another list. Matt -----Original Message----- From: Ray Nainy [mailto:ray_456@xxxxxxxxxxx] Sent: Monday, February 02, 2004 4:18 PM To: rpg400-l@xxxxxxxxxxxx Subject: special characters issue in xml Hello All, Is there a way to retrive the decimal and/or hex value of a character? Can we scan the text in a record and check for special characters like , line feed, carriage return? I think decimal values 32 thru 126 represent valid/most widely used characters. How can we retrieve the decimal value of the characters (dec value <32 and >126)? Is there a way to identify these special characters while reading a text record? I need to take care of these special characters for an xml document upload. Since we replace & with a & in xml document, all the special characters need to be converted to xml standard so that the xml parser can read the data. Thank you all in advance. Ray
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.