# Updating a project with new xml created in another program

**URL:** <https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [July 4, 2019, 7:34pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303 "2019-07-04T19:34:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![guillaume.collin](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@guillaume.collin](https://forum.inductiveautomation.com/u/guillaume.collin)\
**Post date:** [July 4, 2019, 7:34pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303/1 "2019-07-04T19:34:34Z")

</div>

Hi,

I did a code that create some XML files that can be imported in Ignition and is setting up some transaction groups to do OPC to DB and DB to OPC.

The thing is that when I create the XML, I need to open Ignition and import them manually.

I was wondering if it would be possible to automatically update the project with my new xml files?

If not I could create a .proj and put it in a specific folder then when a new .proj is created, I retarget to that new and updated .proj?

I hope it is clear enough,

Regards.

---

<div class="post-metadata">

**Author:** ![jlivingston](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jlivingston](https://forum.inductiveautomation.com/u/jlivingston)\
**Post date:** [July 5, 2019, 2:37pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303/2 "2019-07-05T14:37:44Z")

</div>

I think that I understand what you have been saying, and need to preface this with: The forums are not the same as SUPPORT- which you can also access ( PTurmel reminded me about this, and you may want to look at the Support Policies first ). That said, someone else here on the forums was looking to import an older MS formated XML database. The answer he received was that there are Ignition-specific headers which can be picked up by doing a native EXPORT or a sample file first, moving the data into that XML formatted area ( I use the word Matrix, because it is usually two dimensional ), then bringing it back in. Memory constraints may apply, Your mileage from this may vary, etc.  
By the way, which DB and OPC-UA or OPC-COM?

---

<div class="post-metadata">

**Author:** ![jlivingston](https://avatars.discourse-cdn.com/v4/letter/j/779978/32.png) [@jlivingston](https://forum.inductiveautomation.com/u/jlivingston)\
**Post date:** [July 5, 2019, 4:03pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303/3 "2019-07-05T16:03:28Z")

</div>

This might give you a clue:  
[https://docs.inductiveautomation.com/display/DOC80/Exporting+and+Importing+a+CSV](https://docs.inductiveautomation.com/display/DOC80/Exporting+and+Importing+a+CSV)  
The reason for it is this: 1. A comma separated spreadsheet is like two dimensional data that can also be expressed in XML format. 2. The described system scripts may give you a clue as to whether or not this was built in.  
As an aside, I have ‘noted’\* that the Notepad++ ( GNU / GPL license ) editor can be used to manipulate XML data and is more user-friendly than some other ‘Pads’.\*Unintentional Pun.

---

<div class="post-metadata">

**Author:** ![guillaume.collin](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@guillaume.collin](https://forum.inductiveautomation.com/u/guillaume.collin)\
**Post date:** [July 5, 2019, 5:39pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303/4 "2019-07-05T17:39:28Z")

</div>

Hi @jlivingston,

Thanks for the reply.

Actually, what I am looking to do is to automatically do the import of the new XML files.

At the moment, I create the XML for some transaction groups and then import them myself into Ignition by right cliking in the transaction groups and doing import XML, but I am looking at a way to actually add the trasactions groups automatically when the XML is created, instead of needing to open Ignition, then right clikcing and doing the import in the project. 🙂

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 5, 2019, 5:58pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303/5 "2019-07-05T17:58:11Z")

</div>

Have you tried [system.groups.loadFromFile()](https://docs.inductiveautomation.com/display/DOC79/system.groups.loadFromFile) ?

---

<div class="post-metadata">

**Author:** ![guillaume.collin](https://avatars.discourse-cdn.com/v4/letter/g/ee59a6/32.png) [@guillaume.collin](https://forum.inductiveautomation.com/u/guillaume.collin)\
**Post date:** [July 5, 2019, 6:11pm UTC](https://forum.inductiveautomation.com/t/updating-a-project-with-new-xml-created-in-another-program/26303/6 "2019-07-05T18:11:57Z")

</div>

WOW!! @pturmel

Thank you very much! That and [system.tag.loadFromFile] will probably do the trick !
