get the attribute value from xml tree menu as2

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • oll3i
    Contributor
    • Mar 2007
    • 679

    get the attribute value from xml tree menu as2

    I want the get the value of attribute frame of selected node from xml and go to that frame
    my menu.xml
    Code:
    <node label="» LEKCJA 1">
    		<node label="Dialog 1" frame="4" />
    		<node label="Słówka 1" frame="5"/>
    		<node label="Ćwiczenie 1" frame="6"/>
    		<node label="Gramatyka 1" frame="7"/>
                    <node label="Ćwiczenie 2" frame="8"/>
                    <node label="Ćwiczenie 3" frame="9"/>
    
    </node>
    <node label="» LEKCJA 2">
    		<node label="Dialog 1" frame="10"/>
    		<node label="Słówka 1" frame="11"/>
    		<node label="Ćwiczenie 1" frame="12"/>
    		<node label="Gramatyka 1" frame="13"/>
                    <node label="Ćwiczenie 2" frame="14"/>
                    <node label="Ćwiczenie 3" frame="15"/>
    </node>
    <node label="» LEKCJA 3">
    		<node label="Dialog 1" frame="16"/>
    		<node label="Słówka 1" frame="17"/>
    		<node label="Ćwiczenie 1" frame="18"/>
    		<node label="Gramatyka 1" frame="19"/>
                    <node label="Ćwiczenie 2" frame="20"/>
                    <node label="Ćwiczenie 3" frame="21"/>
    </node>
    <node label="» TEST" frame="22"></node>
    or is there other way of achieving that?
    thank You
Working...