Global xml to map or json parser

Is there a global or standard xml to map or json convert library or do I have define struct for each xml portion that I want to parse?

Goal is to have any XML document or output and I want to render or convert it into key and value pure text output.

Don’t know what you mean by “global” or “standard,” but quite a few folks use this:

Thanks, let me check it out.