# Importing Tag information and working with XML

**URL:** <https://forum.inductiveautomation.com/t/importing-tag-information-and-working-with-xml/11838>\
**Category:** Ignition\
**Created:** [June 21, 2016, 3:44pm UTC](https://forum.inductiveautomation.com/t/importing-tag-information-and-working-with-xml/11838 "2016-06-21T15:44:35Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [June 21, 2016, 3:44pm UTC](https://forum.inductiveautomation.com/t/importing-tag-information-and-working-with-xml/11838/1 "2016-06-21T15:44:35Z")

</div>

Two questions

1. To get the most out of importing and exporting tags, it’s my understanding that I need to export my tag information to XML, however the post powerful means I have of bulk editing tags is in a true table like format where all headers are displayed and any tag that doesn’t have anything associated with that column is left blanks (i.e. a CSV file.

Is there a program that gives the power and flexibility of the CSV format, but uses XML? If not, what’s the best program or python script y’all have used with the Ignition XML file for bulk tag creation.

1. When creating a tag in Ignition, I can leave the Source Data Type as which does a good job of figuring out the data being worked with. If I export that tag to a CSV file in the column labeled “SourceDataType” there is no entry (since it’s automatic). However, when I import that CSV file back into ignition, it now has my source data type set to “Byte”. Is there a way to leave the source data type as automatic when importing back into Ignition from a CSV?

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [June 21, 2016, 10:02pm UTC](https://forum.inductiveautomation.com/t/importing-tag-information-and-working-with-xml/11838/2 "2016-06-21T22:02:57Z")

</div>

1. I have not seen any CSV like programs for editing XML files. The one tool I use the most for editing XMLs and creating tag.xml files is Sublime Text 2. Works fine for almost everything I do on a daily basis that requires a text/XML editor.

2. Assuming you are using Ignition 7.8.2, or prior, the issue of the source datatype being changed to byte has been fixed in Ignition 7.8.3.

---

<div class="post-metadata">

**Author:** ![diat150](https://avatars.discourse-cdn.com/v4/letter/d/a587f6/32.png) [@diat150](https://forum.inductiveautomation.com/u/diat150)\
**Post date:** [June 21, 2016, 10:07pm UTC](https://forum.inductiveautomation.com/t/importing-tag-information-and-working-with-xml/11838/3 "2016-06-21T22:07:04Z")

</div>

I just use editTag and AddTag functions to make mass modifications to tags. I guess it will depend on how uniform your tag structure is on how useful that would be to you.

---

<div class="post-metadata">

**Author:** ![abishur](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/abishur/32/9096_2.png) [@abishur](https://forum.inductiveautomation.com/u/abishur)\
**Post date:** [June 22, 2016, 2:22pm UTC](https://forum.inductiveautomation.com/t/importing-tag-information-and-working-with-xml/11838/4 "2016-06-22T14:22:02Z")

</div>

[quote="Greg.Simpson"]  
2) Assuming you are using Ignition 7.8.2, or prior, the issue of the source datatype being changed to byte has been fixed in Ignition 7.8.3.[/quote]

Ah, yes I'm using 7.8.2, it's just a test environment so I'll make the upgrade 🙂

> [@diat150](#):
>
> I just use editTag and AddTag functions to make mass modifications to tags. I guess it will depend on how uniform your tag structure is on how useful that would be to you.

I like this idea a lot. I do very uniform tag naming so I will definitely look into this, thanks!
