I have read and re-read the docs for this module but can't get my thing to
work.

I have an XML file generated by XML::Simple that looks like
<opt>
  <YYYY date="8/12/2002" show="1" name="V3.0.8" />
  <YYYY date="8/12/2002" show="0" name="V2.6e2.10" />
  <XXX date="8/12/2002" show="1" name="V3.2.1" />
</opt>

When I use XMLin() the data structure looke like:
$VAR1 = {
          'XXX' => {
                     'date' => '8/12/2002',
                     'name' => 'V3.2.1',
                     'show' => '1'
                   },
          'YYYY' => {
                      'V2.6e2.10' => {
                                       'date' => '8/12/2002',
                                       'show' => '0'
                                     },
                      'V3.0.8' => {
                                    'date' => '8/12/2002',
                                    'show' => '1'
                                  }
                    }
}

they YYYY portion is right but only for items that have more than one
version.
XXX has only one version and that should have been the second key.

I read the docs and it says that keyattr is by default ['name', 'key',
'id'], but it's not acting that way for all the items.

Can someone shed some light as to why it's behaving this way?

Thanx in advance,

Nikola Janceski

The mere formulation of a problem is far more essential than its solution,
which may be merely a matter of mathematical or experimental skills. To
raise new questions, new possibilities, to regard old problems from a new
angle requires creative imagination and marks real advances in science.
-- Albert Einstein (1879-1955) 


----------------------------------------------------------------------------
--------------------
The views and opinions expressed in this email message are the sender's
own, and do not necessarily represent the views and opinions of Summit
Systems Inc.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to