|
Hi everyone,
I am trying to learn using XML with Perl and I ran into a problem.
My XML file goes like this:
<Menu>
<Menu id="2" title="My Title">
<item
number="1"
text=" (1) - first Option"
command="execcmd="perl ../../Scripts/Sequence_1_1.1/Clkm_CreateMCG.pl "
/>
<item
number="2"
text=" (2) - second one"
command="execcmd="perl ../../Scripts/Sequence_1_1.1/Clkm_CreateMCG.pl "
/>
<item
number="3"
text=" (3) - third"
command="execcmd="perl ../../Scripts/Sequence_1_1.1/Clkm_CreateMCG.pl "
/>
</Menu>
</Menus>
I can't find a way to read the attributes in the <Menu> tag.
The idea is to have a menu with its title and id attributes and a list of Items.
I can't find a way to read the item attributes.
Can anyone help me.
Thank you very much.
|
|
|
|
|
|
|
|
|
// |