PHP Classes
elePHPant
Icontem

wrong ATTR

Recommend this page to a friend!

      Clean XML To Array  >  All threads  >  wrong ATTR  >  (Un) Subscribe thread alerts  
Subject:wrong ATTR
Summary:can't pars ATTRs of an element in level 3
Messages:1
Author:Mohammad
Date:2007-12-03 07:40:51
 

  1. wrong ATTR   Reply   Report abuse  
Mohammad - 2007-12-03 07:40:51
my xml is
<?xml version="1.0" standalone = "no"?>
<manifest identifier="LMSTestPackage_CM-08" version="1.0.1" >
<organizations default="CM-08">
<organization identifier="CM-08">
<title>LMS Test Content Package CM-08</title>
<item identifier="activity_1" identifierref="SEQ01" parameters="?tc=CM-08&amp;act=1">
<title>Activity 1</title>
<imsss:sequencing IDRef="GeneralSequencing">hi
</imsss:sequencing>
</item>
<item identifier="activity_2" identifierref="SEQ01" parameters="?tc=CM-08&amp;act=2">
<title>Activity 2</title>
<imsss:sequencing>
<imsss:controlMode flow="false" />
</imsss:sequencing>
</item>
<imsss:sequencing IDRef="GeneralSequencing" />
</organization>
</organizations>
</manifest>

but the output is :
Array
(
[manifest] => Array
(
[organizations] => Array
(
[organization] => Array
(
[title] => LMS Test Content Package CM-08
[item] => Array
(
[0] => Array
(
[title] => Activity 1
[imsss:sequencing] => hi
[imsss:sequencing-ATTR] => Array
(
[IDRef] => GeneralSequencing
)

)

[1] => Array
(
[title] => Activity 2
[imsss:sequencing] => Array
(
[imsss:controlMode] => {{5}}
[imsss:controlMode-ATTR] => Array
(
[flow] => false
)

)

)

)

[item-ATTR] => Array
(
[identifier] => activity_1
[identifierref] => SEQ01
[parameters] => ?tc=CM-08&act=1
[2] => Array
(
[identifier] => activity_2
[identifierref] => SEQ01
[parameters] => ?tc=CM-08&act=2
)

)

[imsss:sequencing] => {{3}}
[imsss:sequencing-ATTR] => Array
(
[IDRef] => GeneralSequencing
)

)

[organization-ATTR] => Array
(
[identifier] => CM-08
)

)

[organizations-ATTR] => Array
(
[default] => CM-08
)

)

[manifest-ATTR] => Array
(
[identifier] => LMSTestPackage_CM-08
[version] => 1.0.1
)

)

it works wrong for ITEM