PHP XML parsing with values using encoding=base64

2019-07-28 10:29发布

How does one parse XML that contains values that are encoded. In my case I have a number of values that are encoded with base64:

<value encoding="base64">...</value>

Using SimpleXML it appears to ignore the encoding. So there must be a different way...

1条回答
闹够了就滚
2楼-- · 2019-07-28 11:05

You retrieve the values and then decode them using PHP function:

so the XML lib will get the content for you but you'll have to then do what you need with the content to make use of it.

查看更多
登录 后发表回答