Hi Rhodri,
I'm not very sure if this works but maybe you should take a look:
https://learn.microsoft.com/en-us/dotnet/api/system.xml.xmldocument.load?redirectedfrom=MSDN&view=net-5.0#System_Xml_XmlDocument_Load_System_String_
Also this might help:
https://stackoverflow.com/questions/8745215/best-way-to-resolve-file-path-too-long-exception
Please note: Information posted in the given link is hosted by a third party. Microsoft does not guarantee the accuracy and effectiveness of information.
Thanks for your time.
Best regards,
Danny
-----------------------------
If the Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.