# Getting XML value

**URL:** <https://forum.kirupa.com/t/getting-xml-value/251628>\
**Category:** Uncategorized\
**Created:** [February 11, 2008, 9:31am UTC](https://forum.kirupa.com/t/getting-xml-value/251628 "2008-02-11T09:31:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![c990](https://avatars.discourse-cdn.com/v4/letter/c/9de053/32.png) [@c990](https://forum.kirupa.com/u/c990)\
**Post date:** [February 11, 2008, 9:31am UTC](https://forum.kirupa.com/t/getting-xml-value/251628/1 "2008-02-11T09:31:31Z")

</div>

This is probably very simple but I’m not sure what to google

if I have an XML file like

```auto
<myXML>
  <test id="test1" />
  <test id="test2" />
</myXML>

```

how do I access the id value from the test node?
