# Setting attributes with XML

**URL:** https://forum.kirupa.com/t/setting-attributes-with-xml/273532
**Category:** flash
**Created:** [October 16, 2008, 3:03pm UTC](https://forum.kirupa.com/t/setting-attributes-with-xml/273532 "2008-10-16T15:03:24Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Garfty](https://avatars.discourse-cdn.com/v4/letter/g/8baadc/32.png) [@Garfty](https://forum.kirupa.com/u/Garfty)
#### Post date: [October 16, 2008, 3:03pm UTC](https://forum.kirupa.com/t/setting-attributes-with-xml/273532/1 "2008-10-16T15:03:24Z")

</div>

Hello all, looking at setting a context menu with an external config.xml file, however I would also like to set the true and false attributes with this.

at the moment I have a simple node with;

```auto
<item_1>
		
			<text><![CDATA[home]]></text>
			<line>true</line>
			<status>false</status>
			
		</item_1>

```

and then I have my .as file with the connection to the doc and;

```auto
_menuLinkOne = new ContextMenuItem(_menuItem.item_1.text , _menuItem.item_1.line , _menuItem.item_1.status);
			//_menuLinkOne.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, CMHome, false, 0, true);
			myContextMenu.customItems.push(_menuLinkOne);

```

but for some reason the true and false attributes do not seem to be set, can anyone shed any light on this??

Thank you!!
