Can't Parse XML
-
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
usingPSX2PSP
. 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 likePBP
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 thePBP
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 -
in line 1313 is an error
<name>Legend of Dragoon, The (USA)/name>
the end tag is missing a<
-
Wow thanks.. How did you even see that? :)
-
This post is deleted! -
@hansolo77 Always worth copying and pasting erroneous XML files into an online XML validator such as https://www.xmlvalidation.com/.
-
@dudleydes Thanks, that's incredibly helpful!
-
@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.
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.