SitePoint Sponsor

User Tag List

Results 1 to 5 of 5

Thread: novice

  1. #1
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    novice

    please i built a website in xhtml, and joined an affiliate program, that i downloaded the product feed in xml,
    i dont know what to do with
    but asking
    1 can i use xml file on my xhtml site
    2 i have started reading on php, then will move on to mysql, am i going thru the right route so as for me to know ow to use the xml file
    thank you

  2. #2
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    What exactly are you trying to do with this XML file? Are you trying to read data from it to insert into your HTML?
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  3. #3
    SitePoint Addict
    Join Date
    Oct 2010
    Posts
    323
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    i am trying to use the data (i.e product feed) to display the products on the website

  4. #4
    Barefoot on the Moon! silver trophy Force Flow's Avatar
    Join Date
    Jul 2003
    Location
    Northeastern USA
    Posts
    4,606
    Mentioned
    56 Post(s)
    Tagged
    1 Thread(s)
    You'll either have to parse it with javascript or a server-side language (ie, PHP). HTML alone will not parse XML files.
    Visit The Blog | Follow On Twitter
    301tool 1.1.5 - URL redirector & shortener (PHP/MySQL)
    Can be hosted on and utilize your own domain

  5. #5
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,053
    Mentioned
    187 Post(s)
    Tagged
    2 Thread(s)
    Though I expect you need more, (i.e. to extract what you need from the XML), AFAIK you can embed it into XHTML pages and use CSS where the selectors are the tags eg.

    nodename { font-size: 2em; }

    <div>
    <nodename>From XML file</nodename>
    </div>


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •