pam82
11-28-2008, 01:51 PM
Hello,
I'm a newbie in xml and i would appreciate any help regarding the following:
I have several xml files stored in a directory and i would like to get a certain value from the xml files and store them in an array.
The xml are as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Mpeg7 xmlns="http://www.mpeg7.org/2001/MPEG-7_Schema" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
<DescriptionUnit xsi:type="DescriptorCollectionType">
<Descriptor xsi:type="MotionActivity">
<Intensity>3</Intensity>
<DominantDirection>0</DominantDirection>
</Descriptor>
</DescriptionUnit>
</Mpeg7>
And i would like to get the value of the "Intensity" which is 3 (from many xmls) and store it in an array.
Is there any easy way to do this?
Thank you
I'm a newbie in xml and i would appreciate any help regarding the following:
I have several xml files stored in a directory and i would like to get a certain value from the xml files and store them in an array.
The xml are as follows:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<Mpeg7 xmlns="http://www.mpeg7.org/2001/MPEG-7_Schema" xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance">
<DescriptionUnit xsi:type="DescriptorCollectionType">
<Descriptor xsi:type="MotionActivity">
<Intensity>3</Intensity>
<DominantDirection>0</DominantDirection>
</Descriptor>
</DescriptionUnit>
</Mpeg7>
And i would like to get the value of the "Intensity" which is 3 (from many xmls) and store it in an array.
Is there any easy way to do this?
Thank you