SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Austin
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    XML feed to viewable page

    Need some assistance taking this xml and making it where I can select some of the variables to view a dataset (Freerolls) (Im assuming in html)

    Thanks in advance.

    Here is the code snipit:
    Code:
    <?xml version="1.0" encoding="UTF-8"?>
    <tournament_schedule>
    <tournament id="2214716">
    <name>30+3 NL Texas Holdem</name>
    <date>2005-03-16 00:00:00</date>
    <limit>NoLimit</limit>
    <money_type>RM</money_type>
    
    <free_roll>False</free_roll>
    <ticket_available>True</ticket_available>
    <operator_specific>False</operator_specific>
    </tournament>
    
    ...
    
    </tournament_schedule>

  2. #2
    SitePoint Member
    Join Date
    Nov 2004
    Location
    Austin
    Posts
    17
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    No one knows?

    Its a standard xml feed and i want to show it on a htm page.

  3. #3
    $this->toCD-R(LP); vinyl-junkie's Avatar
    Join Date
    Dec 2003
    Location
    Federal Way, Washington (USA)
    Posts
    1,524
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want your XML file to display the same as an HTML page, what you want to do is have a stylesheet to go with it, using XSL. W3Schools has an excellent tutorial on the subject. There's some cool stuff you can do with this!

    Hope this helps.
    Music Around The World - Collecting tips, trade
    and want lists, album reviews, & more
    Showcase your music collection on the Web

  4. #4
    SitePoint Member star5's Avatar
    Join Date
    Apr 2005
    Posts
    9
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by vinyl-junkie
    ... using XSL. W3Schools has an excellent tutorial on the subject.....
    I have this same problem, I followed all of the rules contained within the w3schools tutorial however, on this page:
    http://www.w3schools.com/xsl/xsl_transformation.asp
    It states "Finally, add an XSL Style Sheet reference to your XML document"
    How is it possible to modify an XML document that resides on another site's server? I had already thought of saving the XML document locally on my server and editing it to fit this requirement however, that negates the benefit of a dynamically updated XML document.

    Thanks in advance for your advice

  5. #5
    Non-Member
    Join Date
    Jan 2003
    Posts
    5,748
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I, therefore believe that the following link will help you to transform any XML feed to whatever you want, for example in your case it's HTML.

    http://www.xml.com/pub/a/2003/01/02/tr.html

    Courtesy of the Doctor


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
  •