|
I thought I understood how things worked, but now...
The command I'm using to parse:
XMLin($menufile, forcearray=>[ 'item', 'command', 'exec','menu'],keyattr=>['name'], suppressempty=>
+undef);
From what I understood, I am "folding" 'item' into an array, but for some reason it's not always folding.
Thanks in advance.
Michele
Here's an example of my xml that's not working:
<opt>
<menu name="MainMenu">
<label > Main Menu <\label>
<item > type="command">
 <exec> /path/to/foo <\exec>
<\item>
<item > type="submenu">
 <name> AnotherMenu <\name>
<\item>
<\menu>
<menu name="AnotherMenu">
<label > Another Menu <\label>
<item > type="submenu">
 <name> YetAnotherMenu <\name>
<\item>
<\menu>
<\opt>
|