Using PHP to loop through XML nodes
- or -
Post a project like this3010
£30(approx. $37)
- Posted:
- Proposals: 3
- Remote
- #1013638
- Completed
Description
Experience Level: Intermediate
General information for the website: XML expert agent property feed
Kind of development: Customization of existing website
Description of every page/module: show data from xml feed in wordpress post
Description of requirements/features: I am using an expert agent XML feed to populate a clients estate agent website.
Below is a snap shot of the nodes. I wish to loop through the rooms node using PHP to display the room name, then the size, then the description. Is there an easy way/simple solution to accomplish this within PHP?
Kenilworth Walk
xxxxx
House
with radiator, carpet.
with low level WC, hand basin, double glazed UPVC window, radiator, carpet.
13' 10'' x 15' 8'' (4.21m x 4.77m)
with double glazed UPVC french doors and windows to garden, carpet, two radiators.
i am using wordpress 4.4, an expert agent feed and expert agent plugin to deliver the feed.
I need to query the rooms node (as above) each room has a size and description node. i would like to display this data on a wordpress post page. i can pull individual node details and sub nodes using code i found with google search.
<? php echo "
I want to loop through the rooms node returning the values for those that are there, not all rooms have a size
all help appreciated.
Extra notes:
Kind of development: Customization of existing website
Description of every page/module: show data from xml feed in wordpress post
Description of requirements/features: I am using an expert agent XML feed to populate a clients estate agent website.
Below is a snap shot of the nodes. I wish to loop through the rooms node using PHP to display the room name, then the size, then the description. Is there an easy way/simple solution to accomplish this within PHP?
Kenilworth Walk
xxxxx
House
with radiator, carpet.
with low level WC, hand basin, double glazed UPVC window, radiator, carpet.
13' 10'' x 15' 8'' (4.21m x 4.77m)
with double glazed UPVC french doors and windows to garden, carpet, two radiators.
i am using wordpress 4.4, an expert agent feed and expert agent plugin to deliver the feed.
I need to query the rooms node (as above) each room has a size and description node. i would like to display this data on a wordpress post page. i can pull individual node details and sub nodes using code i found with google search.
<? php echo "
I want to loop through the rooms node returning the values for those that are there, not all rooms have a size
all help appreciated.
Extra notes:
Aaron D.
100% (3)Projects Completed
6
Freelancers worked with
4
Projects awarded
100%
Last project
23 Mar 2016
United Kingdom
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies