Trying to write the XML to go to a file path that not only has spaces it has an & in the title. I have asked to change this folder path but unfortunately, this is not doable.. apparently.
I need to be able to write the path with the & in it. Is there a way to do this?
The XML template is in this link :<//knowledge.autodesk.com/support/revit-products/learn-explore/caas/simplecontent/content/model-checker-automation.html>
the file path is this : P:\19-100 Road & Drive\BIM\01 Live\BIM Models\modelfile.rvt
<?xml version="1.0" encoding="utf-8" ?>
<AutomatedRun Cleanup="delete">
</Model>
<Model Path="P:\19-100 Road & Drive\BIM\01 Live\BIM Models\file.rvt">
<CheckSet Path="N:\00-102 KHUB Practice Systems\00 400 BIM\12-PowerBi\01 Revit Checksets\Revit 2021 Model Dashboard.xml" ExportHtml="False" ExportExcel="true" HtmlFolder="C:\Some\Folder" ExcelPath="N:\00-102 KHUB Practice Systems\00 400 BIM\12-PowerBi\02 Projects\19-100_Road and Drive\01 Data\drive\internal\AUTO.xlsx" CheckLinks="False" />
</Model>
</AutomatedRun>
There is also a log file that describes the error 30/07/2021 16:06 - Checking for automated runs 30/07/2021 16:06 - Getting run data from folder: C:\ProgramData\Autodesk\BIT\Model Checker\2021\Automated Runs 30/07/2021 16:06 - Parsing file: C:\ProgramData\Autodesk\BIT\Model Checker\2021\Automated Runs\2021_19-100_HTC-AVD.xml 30/07/2021 16:06 - Error parsing file: System.Xml.XmlException: ' ' is an unexpected token. The expected token is ';'. Line 5, position 42.