RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Can't Parse XML

    Scheduled Pinned Locked Moved Help and Support
    parse xml
    7 Posts 4 Posters 1.5k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • hansolo77H
      hansolo77
      last edited by hansolo77

      I'm still kind of new to all this. Here's a bit of history. I had a fully functional gamelist.xml for PSX, where I had a list of games I legally own added to my RetroPie. There are so many games available, these are just the ones I owned, and thought it would be a good place to start. Anyway, in light of "Star Wars Day" (May the 4th be with you..) I decided to play Star Wars Rebel Assault II. This game is a double disc. After getting half way through, I hit a brick wall and was unable to get the 2nd disc to load. I didn't research fully all the ins and outs and requirements on doing multi-disc games. Turns out, creating a .m3u file wasn't working out, so I created a .PBP using PSX2PSP. It works great, but I didn't like not having all the fancy metadata to go along with it in my game list. So I tried to scrape it using Selph's Scraper. It doesn't like PBP files. So I decided to go to bed and tackle it another day. Day 2, since the Star Wars game was a success for playing in the PBP format, I decided to go ahead and start merging ALL of my multi-disc games to future proof my eventual gaming. Day 3, I decided to try and give Selph another go. Still no luck. I thought maybe if I changed the source provider, it might work better. Nope. So tonight, Day 4, I've tried to go at it another way. Previously my PSX gamelist was generated using UXS, and it stored the gamelist in this path: /opt/retropie/configs/all/emulationstation/gamelists/psx/gamelist.xml The new gamelist created by Selph's Scraper put it here: /home/pi/RetroPie/roms/psx/gamelist.xml I thought maybe the 2 xml's were conflicting with each other, so I named the original with a .bak Now I have my Selph's version loading, but all my PBP games aren't listing with metadata (because Selph couldn't scrape them). I then tried taking the metadata from the UXS xml and copied the individual games that were missing over to the Selph one. I thought that would work, and just rename the rom file appropriately. Now whenever I load EmulationStation, the PSX list doesn't load, and when I exit (F4), I see this error:

      lvl0:   Error parsing XML file "/home/pi/RetroPie/roms/psx/gamelist.xml"!
              Start-end tags mismatch
      

      I've tried editing the file in Notepad++ as well as nano. I've noticed a few errors, like blank </players> fields that I've removed. But the xml still fails to parse. Can somebody who's a little more savvy take a look and see if they can figure out what's wrong?

      https://pastebin.com/ADCq6Tqe
      (my copy/paste jobs started at line 1208)

      Does XML require specific spacing that's maybe off somewhere? I didn't think it mattered. That's about the only thing left I can think of. Thanks in advance guys!


      Raspberry Pi 3
      EmulationStation v2.5.7RP

      Who's Scruffy Looking?

      1 Reply Last reply Reply Quote 0
      • E
        EctoOne
        last edited by

        in line 1313 is an error <name>Legend of Dragoon, The (USA)/name> the end tag is missing a <

        1 Reply Last reply Reply Quote 1
        • hansolo77H
          hansolo77
          last edited by

          Wow thanks.. How did you even see that? :)

          Who's Scruffy Looking?

          mituM D E 3 Replies Last reply Reply Quote 0
          • mituM
            mitu Global Moderator @hansolo77
            last edited by

            This post is deleted!
            1 Reply Last reply Reply Quote 0
            • D
              dudleydes @hansolo77
              last edited by

              @hansolo77 Always worth copying and pasting erroneous XML files into an online XML validator such as https://www.xmlvalidation.com/.

              hansolo77H 1 Reply Last reply Reply Quote 1
              • hansolo77H
                hansolo77 @dudleydes
                last edited by

                @dudleydes Thanks, that's incredibly helpful!

                Who's Scruffy Looking?

                1 Reply Last reply Reply Quote 0
                • E
                  EctoOne @hansolo77
                  last edited by

                  @hansolo77 it was pretty easy to see in notepad++ on the left side where you can use the + signs to shrink entrys. There was one out of place at the line with the error.

                  1 Reply Last reply Reply Quote 0
                  • First post
                    Last post

                  Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

                  Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.