i just want to decode APID <Code Removed> and 39.0258944051 and cdata 946890422112 all a part of <xml version="1.0" encoding="utf-8"?>
can you make the numbers into letters?
public information

Edited by Dani: Code temporarily removed (may contain sensitive information)

5 Years
Discussion Span
Last Post by rubberman

What are you trying to do?

can you make the numbers into letters?


Edited by happygeek: quoted code removed - may contain sensitive personal information


The cdata construct in xml is to encode non-printable text into hexadecimal ascii numbers. IE, the letter 'A' would be encoded as 41. So, the string 946890... would be a double-right quotation mark + h + 0x90 (hex 90 - no printable representation)... So, the answer for cdata is that it cannot be made into letters because it is encoded this way because it is BINARY data. Some of the codes may represent letters, and if you want to extract the printable characters, that is possible.

So, you need to read two characters at a time into a string, and then convert that to a hex value.

I don't know what the APID tag is for, but it seems to be a random identifier. Show the XML that contains this please.

The 39.025... number is a double-precision floating point value. There are functions in every programming language to read a string like this into a double variable.

FWIW, none of this is relevant to the xml version and encoding.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.