xml-parser
xml-parser copied to clipboard
incorrect attribute data array format
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.
@jtrumbull I hope you consider to fix this soon as your lib is useful for us and we are stuck!