XML Outputting - PHP vs JS vs Anything Else?

Posted by itsphil on Stack Overflow See other posts from Stack Overflow or by itsphil
Published on 2011-02-09T15:21:30Z Indexed on 2011/02/09 15:25 UTC
Read the original article Hit count: 168

Filed under:
|
|

Hi everyone,

I am working on developing a Travel website which uses XML API's to get the data.

However i am relatively new to XML and outputting it. I have been experimenting with using PHP to output a test XML file, but currently the furthest iv got is to only output a few records.

As it the questions states i need to know which technology will be best for this project. Below iv included some points to take into consideration.

  • The website is going to be a large sized, heavy traffic site (expedia/lastminute size)
  • My skillset is PHP (intermediate/high skilled) & Javascript (intermediate/high skilled)

Below is an example of the XML that the API is outputting:

<?xml version="1.0"?>
<response method="###" success="Y">
    <errors>
    </errors>
    <request>
        <auth password="test" username="test" />
        <method action="###" sitename="###" />
    </request>
    <results>
        <line id="6" logourl="###" name="Line 1" smalllogourl="###">
            <ships>
                <ship id="16" name="Ship 1" />
                <ship id="453" name="Ship 2" />
                <ship id="468" name="Ship 3" />
                <ship id="356" name="Ship 4" />
            </ships>
        </line>
        <line id="63" logourl="###" name="Line 2" smalllogourl="###">
            <ships>
                <ship id="492" name="Ship 1" />
                <ship id="454" name="Ship 2" />
                <ship id="455" name="Ship 3" />
                <ship id="421" name="Ship 4" />
                <ship id="401" name="Ship 5" />
                <ship id="404" name="Ship 6" />
                <ship id="405" name="Ship 7" />
                <ship id="406" name="Ship 8" />
                <ship id="407" name="Ship 9" />
                <ship id="408" name="Ship 10" />
            </ships>
        </line>
        <line id="41" logourl="###">
            <ships>
                <ship id="229" name="Ship 1" />
                <ship id="230" name="Ship 2" />
                <ship id="231" name="Ship 3" />
                <ship id="445" name="Ship 4" />
                <ship id="570" name="Ship 5" />
                <ship id="571" name="Ship 6" />
            </ships>
        </line>
    </results>
</response>

If possible when suggesting which technlogy is best for this project, if you could provide some getting started guides or any information would be very much appreciated.

Thank you for taking the time to read this.

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript