I have an install project that creates an xml file that was defined by using the 'import xml file' function. The attached image is the basic configuration.
I have users that are getting this xml on their machines:
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<RevitAddIns>
<AddIn Type="DBApplication">
<Name>Keynote Manager +KM+ Keynote DB Server</Name>
<AddInId>457da48a-c5ea-4f6f-8cf3-7c7a1dbd115e7094496c-c706-4bc1-8dd5-d9d5db7bb0e4</AddInId>
<FullClassName>RDES.KeynoteManager.Plus.Revit.KMPlusAppRDES.KeynoteManager.Plus.Revit.KMServerDB</FullClassName>
<Assembly>C:\Program Files (x86)\Revolution Design\Keynote Manager\2019\KMPlusApp.dll</Assembly>
<VendorId>RDES</VendorId>
<VendorDescription>Revolution Design, Inc., revolutiondesign.biz</VendorDescription>
<Assembly>C:\Program Files (x86)\Revolution Design\Keynote Manager\2019\KMPlusApp.dll</Assembly>
<VendorId>RDES</VendorId>
<VendorDescription>Revolution Design, Inc., revolutiondesign.biz</VendorDescription>
</AddIn>
</RevitAddIns>
As you can see, it created one 'Addin' node instead of two. Where the child node values differed between the two nodes I defined (the first 3 children) it concatenated the values; where they were the same (all the others) it just used the matching value.
What I really want is to have it ensure that the file exists just as I have defined it when the install is done. If it doesn't exist, create it as I have defined it; if it does exist, overwrite it with what I have defined... How do I do that?