Read encoded value in XML

Questions about XML that are not covered by the other forums should go here.
pratik4891
Posts: 1
Joined: Mon May 25, 2020 5:44 pm

Read encoded value in XML

Post by pratik4891 » Mon May 25, 2020 5:48 pm

Hi ,

In XML element value first bracket , comma , space etc are coming as encoded value like %22 ,%3D .
Below is one example -

DUNS_NUMBER+%3D+DUNS_NUMBER1
How to read the actual value ?

Radu
Posts: 6981
Joined: Fri Jul 09, 2004 5:18 pm

Re: Read encoded value in XML

Post by Radu » Tue May 26, 2020 6:56 am

Hi,

It depends on what programming language you are using.
For example if you read the value using the Java language, there is a "java.net.URLDecoder" which can be used to replace the percent encodings with the original character. A function to decode percent encodings can also be created for XSLT:

https://stackoverflow.com/questions/137 ... t/13778818

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com

Post Reply