I successfully decoded a Base64 string using the xml2js library and obtained the following XML value:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg width="293" height="102"
viewBox="0 0 293 102"
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.2" baseProfile="tiny">
<image
width="293"
height="102"
xlink:href="data:image/png;base64,iVBORw0KGgoAAAANS......pASYAAAAASUVORK5CYII=" />
</svg>
I had to truncate the encoded value due to its length.
However, I am facing an issue in retrieving the value of xlink:href attribute. Are there any techniques or libraries that can help me extract this specific value?
In other words, my goal is to extract only this value:
data:image/png;base64,iVBORw0KGgoAAAANS......pASYAAAAASUVORK5CYII=
Your assistance is greatly appreciated.