xml-parser icon indicating copy to clipboard operation
xml-parser copied to clipboard

incorrect attribute data array format

Open nimasdj opened this issue 10 years ago • 1 comments

I think attributes must be a separate array itself, otherwise this is impossible to parse array, and user will be forced to use strops() to find attr:

I mean this:

  'attr:status'=>'success',

must be like

[attr:] => array(
                       [status] => 'success'
)

and this:

    'attr:id'=>987654321,

must be:

[attr:] => array(
                       [id] => 987654321
)

but this has correct format already:

    'attr:'=>array(
      'geo-coded'=>TRUE,
      'lat'=>'0.0000',
      'lon'=>'-0.0000'
    ),

regardless attributes data is array already or not, it must always have array format. otherwise this is impossible to parse array, and user will be forced to use strops() to find attributes.

nimasdj avatar Aug 01 '15 13:08 nimasdj

@jtrumbull I hope you consider to fix this soon as your lib is useful for us and we are stuck!

nimasdj avatar Aug 04 '15 05:08 nimasdj