Can RAG LLMs parse effectively XML files?

I’m trying to build an AI system, which is based on XML files. I’m using a RAG method that searches a knowledge base or external documents to find relevant information to aid in generating responses. Therefore, I will parse an XML document for the system and verify some data in the file. I was wondering if this is a good method given the data structure of the text files. Can someone help me with some tips? (I’m kinda of a noob).