sorry for late reply. I think you would need to share more details on your problem with some code examples.
I would anyway start with reading to read/write to XML files as a start.
If table being dynamic you have in mind that the contents of nodes change – that is not a problem. If the entire structure of the table changes, then that can be a bigger challenge to overcome.
Usually XML tables have a strict schema with node names adhering to the schema so just use XPath to move around the XML as needed.