# Accessing Component XML

**URL:** <https://forum.inductiveautomation.com/t/accessing-component-xml/44762>\
**Category:** Ignition\
**Created:** [March 22, 2021, 6:21pm UTC](https://forum.inductiveautomation.com/t/accessing-component-xml/44762 "2021-03-22T18:21:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexfediw](https://avatars.discourse-cdn.com/v4/letter/a/e95f7d/32.png) [@alexfediw](https://forum.inductiveautomation.com/u/alexfediw)\
**Post date:** [March 22, 2021, 6:21pm UTC](https://forum.inductiveautomation.com/t/accessing-component-xml/44762/1 "2021-03-22T18:21:08Z")

</div>

Hello,  
On Ignition 7.9.  
I am writing a shared script to read a csv of window names from a file, open up the windows, and copy the xml of the components to their own text files. Right now, I am successfully getting into the root container of each window and listing the components using getComponents().  
Is there any way I can access the xml for each component this way?  
Alternatively, can I copy/paste selected components via scripting?  
Thank you
