hi guys .i want to load all the attributes by the name “pagename” within this xml file into an array : my_array
pls help.
xml file:
<?xml version="1.0" encoding="UTF-8" ?>
[-](file:///D:/mithun/xml/shell.xml#) <earnvaluemanagement>
[-](file:///D:/mithun/xml/shell.xml#) <module id="01" title="Overview" foldername="content/module_01">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="01_01" title="Introduction">
<page id="01_01_01" title="Introduction" pagename="m01_c01_p01.swf" />
<page id="01_01_02" title="Introduction" pagename="m01_c01_p02.swf" />
<page id="01_01_03" title="Introduction" pagename="m01_c01_p03.swf" />
<page id="01_01_04" title="Introduction" pagename="m01_c01_p04.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="02" title="Earned Value Management Concepts" foldername="content/module_02">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="02_01" title="Overview">
<page id="02_01_01" title="Overview" pagename="m02_c01_p01.swf" />
<page id="02_01_02" title="Overview" pagename="m02_c01_p02.swf" />
<page id="02_01_03" title="Overview" pagename="m02_c01_p03.swf" />
<page id="02_01_04" title="Overview" pagename="m02_c01_p04.swf" />
<page id="02_01_05" title="Overview" pagename="m02_c01_p05.swf" />
<page id="02_01_06" title="Overview" pagename="m02_c01_p06.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="02_02" title="Framework of EVM System">
<page id="02_02_07" title="Framework of EVM System" pagename="m02_c01_p07.swf" />
<page id="02_02_08" title="Framework of EVM System" pagename="m02_c01_p08.swf" />
<page id="02_02_09" title="Framework of EVM system" pagename="m02_c01_p09.swf" />
<page id="02_02_10" title="Framework of EVM system" pagename="m02_c01_p10.swf" />
<page id="02_02_11" title="Exercise" pagename="m02_c01_p11_exercise01.swf" />
<page id="02_02_12" title="Exercise" pagename="m02_c01_p11_exercise02.swf" />
<page id="02_02_13" title="Summary" pagename="m02_c01_p12_Summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="03" title="Scope of the Project: Work Breakdown Structure" foldername="content/module_03">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="03_01" title="What is WBS?">
<page id="03_01_01" title="What is WBS?" pagename="m03_c01_p01.swf" />
<page id="03_01_02" title="Preparing a WBS" pagename="m03_c01_p02.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="03_02" title="Preparing a WBS">
<page id="03_02_03" title="Preparing a WBS" pagename="m03_c01_p03.swf" />
<page id="03_02_04" title="Preparing a WBS" pagename="m03_c01_p04.swf" />
<page id="03_02_05" title="Preparing a WBS" pagename="m03_c01_p05.swf" />
<page id="03_02_06" title="Preparing a WBS" pagename="m03_c01_p06.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="03_03" title="WBS and Earned Value">
<page id="03_03_07" title="Preparing a WBS" pagename="m03_c01_p07.swf" />
<page id="03_03_08" title="Preparing a WBS" pagename="m03_c01_p08.swf" />
<page id="03_03_09" title="Exercise" pagename="m03_c01_p09_exercise01.swf" />
<page id="03_03_10" title="Exercise" pagename="m03_c01_p09_exercise02.swf" />
<page id="03_03_11" title="Exercise" pagename="m03_c01_p09_exercise03.swf" />
<page id="03_03_12" title="Summary" pagename="m03_c01_p10_summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="04" title="Plan and Schedule the Project" foldername="content/module_04">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="04_01" title="Understand and Plan The Project">
<page id="04_01_01" title="Understand and Plan the Project" pagename="m04_c01_p01.swf" />
<page id="04_01_02" title="Understand and Plan the Project" pagename="m04_c01_p02.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="04_02" title="Schedule the Project">
<page id="04_02_03" title="Schedule the Project" pagename="m04_c01_p03.swf" />
<page id="04_02_04" title="Schedule the Project" pagename="m04_c01_p04.swf" />
<page id="04_02_05" title="Schedule the Project" pagename="m04_c01_p05.swf" />
<page id="04_02_06" title="Exercise" pagename="m04_c01_p06_exercise01.swf" />
<page id="04_02_07" title="Exercise" pagename="m04_c01_p06_exercise02.swf" />
<page id="04_02_08" title="Summary" pagename="m04_c01_p07_summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="05" title="Estimate and Budget Project Resources" foldername="content/module_05">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="05_01" title="Why Budgeting?">
<page id="05_01_01" title="Why Budgeting?" pagename="m05_c01_p01.swf" />
<page id="05_01_02" title="Why Budgeting?" pagename="m05_c01_p02.swf" />
<page id="05_01_03" title="Why Budgeting?" pagename="m05_c01_p03.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="05_02" title="Earned Value CAPs (Control Account Plans)">
<page id="05_02_04" title="Earned Value CAPs (Control Account Plans)" pagename="m05_c01_p04.swf" />
<page id="05_02_05" title="Earned Value CAPs (Control Account Plans)" pagename="m05_c01_p05.swf" />
<page id="05_02_06" title="Earned Value CAPs (Control Account Plans)" pagename="m05_c01_p06.swf" />
<page id="05_02_07" title="Earned Value CAPs (Control Account Plans)" pagename="m05_c01_p07.swf" />
<page id="05_02_08" title="Exercise" pagename="m05_c01_p08_exercise01.swf" />
<page id="05_02_09" title="Exercise" pagename="m05_c01_p08_exercise02.swf" />
<page id="05_02_10" title="Summary" pagename="m05_c01_p09_summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="06" title="EVMS Concepts and Methods" foldername="content/module_06">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="06_01" title="EVMS Criteria">
<page id="06_01_01" title="EVMS Criteria" pagename="m06_c01_p01.swf" />
<page id="06_01_02" title="EVMS Criteria" pagename="m06_c01_p02.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="06_02" title="EVMS Basic Terminology">
<page id="06_02_01" title="EVMS Basic Terminology" pagename="m06_c02_p01.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="06_03" title="Earned Value Methods">
<page id="06_03_02" title="Earned Value Methods" pagename="m06_c02_p02.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="06_04" title="Project Status">
<page id="06_04_03" title="Project Status" pagename="m06_c02_p03.swf" />
<page id="06_04_04" title="Exercise" pagename="m06_c02_p04_exercise01.swf" />
<page id="06_04_05" title="Exercise" pagename="m06_c02_p04_exercise02.swf" />
<page id="06_04_06" title="Summary" pagename="m06_c02_p05_summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="07" title="Monitoring Performance Against the Baseline" foldername="content/module_07">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="07_01" title="Performance Measurement">
<page id="07_01_01" title="" pagename="m07_c01_p01.swf" />
<page id="07_01_02" title="" pagename="m07_c01_p02.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="07_02" title="Variances and Performance Indices">
<page id="07_01_03" title="" pagename="m07_c01_p03.swf" />
<page id="07_01_04" title="" pagename="m07_c01_p04.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="07_03" title="Estimate at Completion">
<page id="07_01_05" title="" pagename="m07_c01_p05.swf" />
<page id="07_01_06" title="" pagename="m07_c01_p06.swf" />
<page id="07_01_07" title="" pagename="m07_c01_p07_exercise01.swf" />
<page id="07_01_07" title="" pagename="m07_c01_p07_exercise02.swf" />
<page id="07_01_08" title="" pagename="m07_c01_p08_summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="08" title="Integrated Baseline Review and Change Control" foldername="content/module_08">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="08_01" title="Integrated Baseline Review">
<page id="08_01_01" title="" pagename="m08_c01_p01.swf" />
<page id="08_01_02" title="" pagename="m08_c01_p02.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="08_02" title="Change Control">
<page id="08_01_03" title="" pagename="m08_c01_p03.swf" />
<page id="08_01_04" title="" pagename="m08_c01_p04.swf" />
<page id="08_01_05" title="" pagename="m08_c01_p05.swf" />
</chapter>
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="08_03" title="Cost Performance Report">
<page id="08_01_06" title="" pagename="m08_c01_p06.swf" />
<page id="08_01_07" title="" pagename="m08_c01_p07.swf" />
<page id="08_01_08" title="" pagename="m08_c01_p08.swf" />
<page id="08_01_09" title="" pagename="m08_c01_p09_exercise01.swf" />
<page id="08_01_09" title="" pagename="m08_c01_p09_exercise02.swf" />
<page id="08_01_010" title="" pagename="m08_c01_p010_summary.swf" />
<page id="08_01_010" title="" pagename="m08_c01_p011_course_summary.swf" />
</chapter>
</module>
[-](file:///D:/mithun/xml/shell.xml#) <module id="09" title="Assessment" foldername="content/module_09">
[-](file:///D:/mithun/xml/shell.xml#) <chapter id="09_01" title="Assessment">
<page id="09_01_01" title="" pagename="assessment.swf" />
<page id="09_01_02" title="" pagename="Thank_you.swf" />
</chapter>
</module>