Hi,
Now its getting tougher... i don't understand how to fetch the values from a xml which has various tags... I need only the options of the three tags namely with name function area(line 76), role(line 92), experience(line 110).... to be fetched in php...
the xml is
Code:
<?xml version="1.0"?>
<tabset>
<images>
<item src="resources/blue-back.jpg" id="blueBack"/>
<item src="resources/map.gif" id="map"/>
<item src="resources/career-back.jpg" id="careers"/>
<item src="resources/poll-back.jpg" id="poll"/>
<item src="resources/poll-bluebar.jpg" id="pollBlueBar" />
<item src="resources/poll-greenbar.jpg" id="pollGreenBar" />
<item src="resources/poll-sidebar.jpg" id="pollSidebar" />
</images>
<image_reader>getImage.php</image_reader>
<tab>
<title>Tweets</title>
<type>HotSpots</type>
<content>
<line1>The latest from</line1>
<line2>Citrix Worldwide</line2>
<map>map</map>
<background>blueBack</background>
<twitter>
<source>twitter.php</source>
<user>
<name>CitrixBlogs</name>
<location x="128" y="134"/>
</user>
<user>
<name>simplyserve</name>
<location x="350" y="115"/>
</user>
<user>
<name>CitrixKCForums</name>
<location x="490" y="170"/>
</user>
<user>
<name>harrylabana</name>
<location x="50" y="100"/>
</user>
<user>
<name>JMaynard_Citrix</name>
<location x="585" y="265"/>
</user>
<user>
<name>Vinnysosa</name>
<location x="300" y="100"/>
</user>
<user>
<name>SitRightOnCloud</name>
<location x="350" y="54"/>
</user>
<user>
<name>CitrixReady</name>
<location x="610" y="118"/>
</user>
</twitter>
</content>
</tab>
<tab>
<title>Video</title>
<type>video</type>
<content>
<background>#000000</background>
<title>Apple to Zappo</title>
<sub>Stories from Citrix everywhere…</sub>
<video>resources/apple-zappo.flv</video>
</content>
</tab>
<tab>
<title>Careers</title>
<type>form</type>
<content>
<background>careers</background>
<form src="form.php" method="POST" />
<careers>
<section>
<name>Functional Area</name>
<slug>func</slug>
<options>
<item id="1" name="All" />
<item id="2" name="Application Programming" />
<item id="3" name="Database" />
<item id="4" name="Client Server" />
<item id="5" name="E-Commerce, Internet Tech" />
<item id="6" name="Mobile" />
<item id="7" name="Networking" />
<item id="8" name="Security" />
<item id="9" name="QA & Testing" />
<item id="10" name="Other" />
</options>
</section>
<section>
<name>Role</name>
<slug>role</slug>
<options>
<item id="1" name="All" />
<item id="2" name="QA Engineer" />
<item id="3" name="Build Engineer" />
<item id="4" name="Software Test Engineer" />
<item id="5" name="Network Administration" />
<item id="6" name="Web Application Engineer" />
<item id="7" name="Data Architect" />
<item id="8" name="Database Administrator" />
<item id="9" name="Integration Engineer" />
<item id="10" name="Dev Manager" />
<item id="11" name="Dev Engineer" />
<item id="12" name="Other" />
</options>
</section>
<section>
<name>Experience</name>
<slug>exp</slug>
<options>
<item id="1" name="0 years" />
<item id="2" name="1-3 years" />
<item id="3" name="3-5 years" />
<item id="4" name="5-7 years" />
<item id="5" name="7-10 years" />
<item id="6" name="Over 10 years" />
</options>
</section>
</careers>
</content>
</tab>
<tab>
<title>Knowledge Poll</title>
<type>quiz</type>
<content>
<background>poll</background>
<text_labels>
<intro_head>How good are you really?</intro_head>
<intro_body>Take this quiz & find out</intro_body>
<intro_width>195</intro_width>
<question>Question #:</question>
<correct>Excellent! That's right.</correct>
<wrong>Oops! You got it wrong.</wrong>
<perc_correct>got this answer right</perc_correct>
<perc_wrong>got this answer wrong</perc_wrong>
</text_labels>
<poll>
<submit src="answer.php" method="POST"/>
<questions>
<item>
<id>23</id>
<question>All VDIs (Virtual Desktop Infrastructure) are made equal?</question>
<options>
<item name="True" />
<item name="False" correct="true"/>
</options>
<explanation>
<![CDATA[Unlike other VDI only offerings, which only address a narrow set of use cases, Citrix XenDesktop® delivers Windows desktops as an On-Demand service to any user, anywhere using FlexCast™ delivery technology.]]>
</explanation>
<correct_perc>0.7</correct_perc>
</item>
<item>
<id>24</id>
<question>Who's the man?</question>
<options>
<item name="Ridley Scott" />
<item name="Quentin Tarantino" correct="true"/>
<item name="Michael Bay" />
<item name="Steven Speilberg" />
</options>
<explanation>
<![CDATA[Without question, undoubtedly from the moment he made Resovoir Dogs to the end of time, Tarantino has been, and always will be: The Man.]]>
</explanation>
<correct_perc>0.85</correct_perc>
</item>
</questions>
</poll>
</content>
</tab>
</tabset>
The final idea is to get the option values of the said three tags from the xml and display it as an option values in select inputbox in a form....
Can somebody lend me atleast a clue
... And its not homework
...
Bookmarks