So here is the problem.
I need to make some sort of sanitization of the data in xml tags to prevent some undesired charcters etc. So my idea is to load the xml document into dom object and to create an associative array from the dom and to make a recursive function which will walk through to all array elements and make some sanitization. After that I will generate the xml tree again.
So is this a good idea or there is another better and faster solution? Thanks in advance.
Can I generate associative array out of a DOMDocument obj?
Moderator: General Moderators