The new forums will be named Coin Return (based on the most recent vote)! You can check on the status and timeline of the transition to the new forums here.
Please vote in the Forum Structure Poll. Polling will close at 2PM EST on January 21, 2025.

XML and Websites

Penguin_OtakuPenguin_Otaku Registered User regular
edited February 2010 in Help / Advice Forum
So I'm creating a site for the OU basketball time. Actually not creating, but just sprucing up a halfassed job done. I know how to manipulate code and all of that but I've never dealt with XML before.

What I need it for is to have the XML file feed the site stats for individual players and even coaching records. I just don't know how to go about that.

sig-1.jpg
Penguin_Otaku on

Posts

  • TwoQuestionsTwoQuestions Registered User regular
    edited February 2010
    Can you use PHP?

    http://php.net/manual/en/book.simplexml.php

    That's what we use on our site to load content. Would this work for you?

    TwoQuestions on
    steam_sig.png
  • JasconiusJasconius sword criminal mad onlineRegistered User regular
    edited February 2010
    Are you creating the XML file? reading the XML file?

    Big difference.

    Generally speaking you need an XML parsing API to translate the markup into usable data. Basically languages have one somewhere, usually built into the game.

    Jasconius on
    this is a discord of mostly PA people interested in fighting games: https://discord.gg/DZWa97d5rz

    we also talk about other random shit and clown upon each other
  • Penguin_OtakuPenguin_Otaku Registered User regular
    edited February 2010
    PHP is not available, just on a local system running a kiosk-like display (touch screen.)

    Just need a way to keep stats updated for players and the team. Right now I'm doing it all graphically which isn't bad, but I'd rather update one XML file than 20+ psds into PNGs.

    Jasconius: I'm not quite sure what you're saying. I'd be creating an XML file and reading the XML file from the individual pages for the players.

    Penguin_Otaku on
    sig-1.jpg
  • InfidelInfidel Heretic Registered User regular
    edited February 2010
    You can get the browser to do all the work by using XSLT.

    Basically you make the XSLT code "page" that works with your data, and then you just transfer your .xml files and load them in the browser and you'll get a nicely formatted page. The .xml will reference your XSLT page so that the browser knows to look for it and find out how you want the data displayed.

    This is why when you browse say the WoW Armory and you request an .xml file, it looks nothing like XML but is a well styled page.

    Infidel on
    OrokosPA.png
  • exmelloexmello Registered User regular
    edited February 2010
    Even if you were to go with a server side technology like PHP, ASP.NET, or JSP, you would want to use an XML library to transform using XSLT. The thought of manually parsing XML files makes me cringe.

    exmello on
Sign In or Register to comment.