# Menu component

**URL:** <https://forum.kirupa.com/t/menu-component/169674>\
**Category:** Uncategorized\
**Created:** [November 18, 2005, 6:26am UTC](https://forum.kirupa.com/t/menu-component/169674 "2005-11-18T06:26:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![kookaburra](https://avatars.discourse-cdn.com/v4/letter/k/f475e1/32.png) [@kookaburra](https://forum.kirupa.com/u/kookaburra)\
**Post date:** [November 18, 2005, 6:26am UTC](https://forum.kirupa.com/t/menu-component/169674/1 "2005-11-18T06:26:40Z")

</div>

Hi All,  
I’m trying to use Menu component to display the xml contents, but only getting [type function] everywhere.

note.xml contains : _[color=darkorange]\<?xml version=“1.0” encoding=“ISO-8859-1”?\>  
\<!-- Edited with XML Spy v4.2 --\>  
\<note\>  
\<to\>Tove\</to\>  
\<from\>Jani\</from\>  
\<heading\>Reminder\</heading\>  
\<body\>Don’t forget me this weekend!\</body\>  
\</note\>[/color]_  
Code on first frame : [color=blue]_import mx.controls._;  
var myMenuDP:XML = new XML();  
myMenuDP.ignoreWhite = true;  
myMenuDP.onLoad = function() {  
UI.dataProvider = myMenuDP;  
TREE.dataProvider = myMenuDP;  
UI.show();  
};  
myMenuDP.load(“note.xml”);\*[/color]  
[color=#0000ff][/color]  
[color=black]where, UI is the instancename of the menu component(FMX 2004).[/color]  
[color=black][/color]  
[color=blue][color=black]Any help will be appreciated[/color]  
Thanks in advance

[/color]\*

-
