A sample of the output XML would be helpful, an answer may be driven by the structure and content of the XML, since XML can look a lot different between a simple schema and a very complex one. With the XML sample a sample of the desired text output would be helpful.
You may be able to do something with an XSLT transformation, although I'm not very well skilled on that. Take a look at this earlier question for an idea of that approach, but notice that to make it most useful it needs to know what the specific data looked liked, etc.
https://docs.microsoft.com/en-us/previous-versions/windows/desktop/ms757055(v%3Dvs.85)