XML data files... anyone know how to...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • acctman
    Confirmed User
    • Oct 2003
    • 2840

    #1

    XML data files... anyone know how to...

    does anyone know XML and how to create flat xml data files. where all the search data is in a .xml file on the system. I want to create a product database of about 40-60 items that will be called up via a drop-down box.
  • Serge Litehead
    Confirmed User
    • Dec 2002
    • 5190

    #2
    not sure what you mean. xml is a markup language, you can layout structure however you want, but i wouldn't use it for storing data.

    Code:
    <xml>this is as flat as it goes</xml>

    Comment

    • graphicspimp
      Registered User
      • Feb 2005
      • 60

      #3
      hey you got a nice site in your sig manno!

      do you mind if I ask you what script you are using for it?

      Comment

      • Linguist
        Confirmed User
        • Apr 2004
        • 1706

        #4
        Originally posted by acctman
        does anyone know XML and how to create flat xml data files. where all the search data is in a .xml file on the system. I want to create a product database of about 40-60 items that will be called up via a drop-down box.
        It's easier to do with a mysql database
        315-310

        Comment

        • acctman
          Confirmed User
          • Oct 2003
          • 2840

          #5
          holograph: i wanted to do something like this in a products.xml
          <prodname>Ipods</prodname>
          <desc>20gig ipod</desc>
          <url>http://www.url.com</url>

          <prodname>PSP</prodname>
          <desc>Sony PSP</desc>
          <url>http://www.urlpsp.com</url>

          then i want to use a FORM with a drop down box [ prodnames ] and when the user selects from the drop down box it the url for the product will load on the main page.

          graphicspimp: i'm using k-rate http://www.turn-k.net/ its a pretty good script but the creator just disappeared back in april. i got a coder that pretty much helped me tweak the script a lot adding features and removing stuff. its a good script to mess with though.

          Comment

          • acctman
            Confirmed User
            • Oct 2003
            • 2840

            #6
            by the way, the reason why i wanted to use a .xml is cause i'm only going to have like 40 or so products and i'm trying to cut back on the mysql connections when its not really needed

            Comment

            • acctman
              Confirmed User
              • Oct 2003
              • 2840

              #7
              bump for the morning crew... anyone know xml and have an example

              Comment

              • broke
                Confirmed User
                • Aug 2003
                • 4501

                #8
                You CAN write code to build the xml file based on the DB data and use the built-in PHP XML parser to create the drop down from the xml file, though I can't imagine why you'd want to...



                Are you looking for free code here or what?
                Perfect Gonzo

                Comment

                • woj
                  <&(©¿©)&>
                  • Jul 2002
                  • 47880

                  #9
                  Creating XML files JUST so you can cut down on mysql connections is pointless. Unless you know what you are doing, you will probably make things worse. icq: 33375924 if you want to discuss other possible solutions to your mysql connection problem.
                  Custom Software Development, email: woj#at#wojfun#.#com to discuss details or skype: wojl2000 or gchat: wojfun or telegram: wojl2000
                  Affiliate program tools: Hosted Galleries Manager Banner Manager Video Manager
                  Wordpress Affiliate Plugin Pic/Movie of the Day Fansign Generator Zip Manager

                  Comment

                  Working...