treehouse : what would you like to learn today?
Web Design Web Development iOS Development

XML incorporate.

  • How can i incorporate XML more into my portfolio website?

    what elements can be changed? and am i going to need to find another host that serves for xml like PHP sometimes needs to?
    PS. i do not want Flash Components.
    i would love replies to this.
    thank you.

    - Attila
  • What XML are you looking to incorporate? If you want to take an XML file and display the contents as something readable, you'll need to use PHP
  • oh seriously?
  • Isn't it possible to use jquery to parse xml using ajax?: http://webhole.net/2009/12/16/how-to-read-xml-with-javascript/
  • xml is like a simple database. Only you make up all the tags for the data. Ex:
    <bookshop>
    <book>
    <title>Infinite Jest</title>
    <author>David Foster Wallace</author>
    <year>1996</year>
    <price>39.99</price>
    </book>
    <book>
    <title>Gravity's Rainbow</title>
    <author>Thomas Pynchon</author>
    <year>1973</year>
    <price>49.95</price>
    </book>
    </bookshop>


    You then use php or js to call data from the xml file to display on in your html.
    Not sure quite what you would use it for on a portfolio site.
  • could i use it for the portfolio part, like the images? and then display them like that? possibly in a grid system and lay it out like that, and with php - randomize it?