SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Feed XML file for user from link

    Hi,
    I got XML data in variable made with DOMdocument from SQL data. I know I can save the XML file with DOMDocument-save() into a file. But say I had a link and when user clicks this link, i want to create the XML then, not before hand. And offer this XML file to user when he clicked the link. And XML data will be built based on the ID carried in the link. I am a bit confused.

  2. #2
    SitePoint Zealot GOPalmer's Avatar
    Join Date
    Jan 2009
    Location
    Wiltshire, UK
    Posts
    125
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just output the XML with header('Content-type: text/xml');

  3. #3
    SitePoint Addict
    Join Date
    Oct 2008
    Posts
    295
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeah just figured that out, problem solved. Was thinking a simple problem too complicated.


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
  •