Log in to reply
 

Syntax error on OpenIV



  • after the gta5 update, i was installing the newest verision of scriphook and i dont know what happened but all my mods got deleted from the dlclist.xml file. I reinstalled one mod and it worked perfecrtly however, after that i tried adding the rest of my mods and when i wanted to save it, an error message came up saying that there is a syntax error {XML arsing error ar line 146, col 4: End tag 'paths' does not match the start tag 'item}. I dont know how to fix this. I would appreciapte it if someone could help me. I have pasted my dlc list below. Thanks in advance!

    <?xml version="1.0" encoding="UTF-8"?>

    <SMandatoryPacksData>
    <Paths>
    <Item>platform:/dlcPacks/mpBeach/</Item>
    <Item>platform:/dlcPacks/mpBusiness/</Item>
    <Item>platform:/dlcPacks/mpChristmas/</Item>
    <Item>platform:/dlcPacks/mpValentines/</Item>
    <Item>platform:/dlcPacks/mpBusiness2/</Item>
    <Item>platform:/dlcPacks/mpHipster/</Item>
    <Item>platform:/dlcPacks/mpIndependence/</Item>
    <Item>platform:/dlcPacks/mpPilot/</Item>
    <Item>platform:/dlcPacks/spUpgrade/</Item>
    <Item>platform:/dlcPacks/mpLTS/</Item>
    <Item>dlcpacks:/mpheist/</Item>
    <Item>dlcpacks:/mppatchesng/</Item>
    <Item>dlcpacks:/patchday1ng/</Item>
    <Item>dlcpacks:/patchday2ng/</Item>
    <Item>dlcpacks:/mpchristmas2/</Item>
    <Item>dlcpacks:/patchday2bng/</Item>
    <Item>dlcpacks:/patchday3ng/</Item>
    <Item>dlcpacks:/patchday4ng/</Item>
    <Item>dlcpacks:/mpluxe/</Item>
    <Item>dlcpacks:/patchday5ng/</Item>
    <Item>dlcpacks:/mpluxe2/</Item>
    <Item>dlcpacks:/patchday6ng/</Item>
    <Item>dlcpacks:/mpreplay/</Item>
    <Item>dlcpacks:/patchday7ng/</Item>
    <Item>dlcpacks:/mplowrider/</Item>
    <Item>dlcpacks:/mphalloween/</Item>
    <Item>dlcpacks:/patchday8ng/</Item>
    <Item>dlcpacks:/mpapartment/</Item>
    <item>dlcpacks:/mpxmas_604490/</item>
    <Item>dlcpacks:/mplowrider2/</Item>
    <Item>dlcpacks:/mpjanuary2016/</Item>
    <Item>dlcpacks:/mpvalentines2/</Item>
    <Item>dlcpacks:/patchday9ng/</Item>
    <Item>dlcpacks:/mpexecutive/</Item>
    <Item>dlcpacks:/patchday10ng/</Item>
    <Item>dlcpacks:/mpstunt/</Item>
    <Item>dlcpacks:/patchday11ng/</Item>
    <Item>dlcpacks:/mpimportexport/</Item>
    <Item>dlcpacks:/mpbiker/</Item>
    <Item>dlcpacks:/patchday12ng/</Item>
    <Item>dlcpacks:/patchday13ng/</Item>
    <Item>dlcpacks:/mpspecialraces/</Item>
    <Item>dlcpacks:/mpgunrunning/</Item>
    <Item>dlcpacks:/mpairraces/</Item>
    <Item>dlcpacks:/mpsmuggler/</Item>
    <Item>dlcpacks:/mpchristmas2017/</Item>
    <Item>dlcpacks:/mpassault/</Item>
    <Item>dlcpacks:/mpbattle/</Item>
    <Item>dlcpacks:/patchday14ng/</Item>
    <Item>dlcpacks:/patchday15ng/</Item>
    <Item>dlcpacks:/patchday16ng/</Item>
    <Item>dlcpacks:/patchday17ng/</Item>
    <Item>dlcpacks:/patchday18ng/</Item>
    <Item>dlcpacks:/patchday19ng/</Item>
    <Item>dlcpacks:/patchday20ng/</Item>
    <Item>dlcpacks:/mpchristmas2018/</Item>
    <Item>dlcpacks:/patchday21ng/</Item>
    <Item>dlcpacks:/mpvinewood/</Item>
    <Item>dlcpacks:/patchday22ng/</Item>
    <Item>dlcpacks:/mpheist3/</Item>
    <Item>dlcpacks:/mpsum/</Item>
    <Item>dlcpacks:/patchday23ng/</Item>
    <Item>dlcpacks:/mpheist4/</Item>
    <Item>dlcpacks:/patchday24ng/</Item>
    <Item>dlcpacks:/mptuner/</Item>
    <Item>dlcpacks:/patchday25ng/</Item>
    <Item>dlcpacks:/mpsecurity/</Item>
    <Item>dlcpacks:/patchday26ng/</Item>
    <Item>dlcpacks:/autobio/</Item>
    <Item>dlcpacks:/e400c238/</Item>
    <Item>dlcpacks:/e300w213/</Item>
    <Item>dlcpacks:/18velar/</Item>
    <Item>dlcpacks:/22g63/</Item>
    <Item>dlcpacks:/722s/</Item>
    <Item>dlcpacks:/745le/</Item>
    <Item>dlcpacks:/1016urus/</Item>
    <Item>dlcpacks:/2021m5/</Item>
    <Item>dlcpacks:a8fsi
    <Item>dlcpacks:/a8lfsi/</Item>
    <Item>dlcpacks:/A45/</Item>
    <Item>dlcpacks:/amgc/</Item>
    <Item>dlcpacks:/anggtmansory/</Item>
    <Item>dlcpacks:/as7/</Item>
    <Item>dlcpacks:/bentaygast/</Item>
    <Item>dlcpacks:/rs72021/</Item>
    <Item>dlcpacks:/rs6abt20/</Item>
    <Item>dlcpacks:/bmwg07/</Item>
    <Item>dlcpacks:/bmwg20/</Item>
    <Item>dlcpacks:/bmwx7/</Item>
    <Item>dlcpacks:/brabusd30/</Item>
    <Item>dlcpacks:/c63w205/</Item>
    <Item>dlcpacks:/cls2015/</Item>
    <Item>dlcpacks:/cullinan2_kpym/</Item>
    <Item>dlcpacks:/dawnonyx/</Item>
    <Item>dlcpacks:/ducatoacip/</Item>
    <Item>dlcpacks:/e92lb/</Item>
    <Item>dlcpacks:/evcrs8/</Item>
    <Item>dlcpacks:/evcs65/</Item>
    <Item>dlcpacks:/fortwo17/</Item>
    <Item>dlcpacks:/gladiator/</Item>
    <Item>dlcpacks:/gle53/</Item>
    <Item>dlcpacks:/golf8gti/</Item>
    <Item>dlcpacks:/golf75r/</Item>
    <Item>dlcpacks:/grandgt18/</Item>
    <Item>dlcpacks:/gt12/</Item>
    <Item>dlcpacks:/gxr35/</Item>
    <Item>dlcpacks:/jaguarftype/</Item>
    <Item>dlcpacks:/m3e92/</Item>
    <Item>dlcpacks:/m3f80/</Item>
    <Item>dlcpacks:/m5f90/</Item>
    <Item>dlcpacks:/m8f91/</Item>
    <Item>dlcpacks:/m422/</Item>
    <Item>dlcpacks:/m42020/</Item>
    <Item>dlcpacks:/mansorydawn/</Item>
    <Item>dlcpacks:/mercedesgls/</Item>
    <Item>dlcpacks:/ModelS/</Item>
    <Item>dlcpacks:/nissanjuker/</Item>
    <Item>dlcpacks:/pcs20/</Item>
    <Item>dlcpacks:/pts21/</Item>
    <Item>dlcpacks:/project8/</Item>
    <Item>dlcpacks:/{addOn}/</Item>
    <Item>dlcpacks:/xj/</Item>
    <Item>dlcpacks:/wraithb/</Item>
    <Item>dlcpacks:/vclass/</Item>
    <Item>dlcpacks:/toyotasj/</Item>
    <Item>dlcpacks:/Teslax/</Item>
    <Item>dlcpacks:/tdf/</Item>
    <Item>dlcpacks:/srt8/</Item>
    <Item>dlcpacks:/Sprinter211/</Item>
    <Item>dlcpacks:/sl55/</Item>
    <Item>dlcpacks:/sjtoyota/</Item>
    <Item>dlcpacks:/s560/</Item>
    <Item>dlcpacks:/s500/</Item>
    <Item>dlcpacks:/s63amg18/</Item>
    <Item>dlcpacks:/rs520/</Item>
    <Item>dlcpacks:/rs318/</Item>
    <Item>dlcpacks:/rs62/</Item>
    <Item>dlcpacks:/rs3/</Item>
    <Item>dlcpacks:/rrghost21/</Item>
    <Item>dlcpacks://</Item>

    </Paths>	
    

    </SMandatoryPacksData>



  • @mj190208 line 82

    <Item>dlcpacks:a8fsi // That's your syntax error, an incomplete line.

    {XML arsing error ar line 146, col 4: End tag 'paths' does not match the start tag 'item}

    It's not arsing except in the porn version of GTA5, it's parsing. And the error message is wrong, not line 146, it's the line above which should be 82 or close to that because i may have removed some lines when testing.

    Also, your dlclist.xml didn't disappear by magic. Either you did not use a mods folder or you got that Green Message from OpenIV telling you to update your update.rpf and in doing so you overwrote your existing one.

    Update: There are 2 ways to fix an issue like this after you check the error message line, 146, which unfortunately is wrong.

    First way is to scan manually through every single item. Good luck if you have lots of dlc lines.

    Second way. First copy all the lines to a notepad text file so you have a temporary backup. Then in OpenIV remove the top half of the dlc items and save. If it allows a save you know the error is in the top half. At this point you can scan manually.

    Or, you repeat the process. This time you remove the top half of the previous top half. You continue until you identify the missing tags or other issues. Use that notepad file to keep tabs - delete the content, replace with content that is broken until fixed. Sorry if that sounds confusing.

    Tip: when adding new lines, right click the last line (or the line where you want to insert a new line) in Open IV, and select duplicate current line. Or copy and paste a line that works and edit it.

    Tip2: Backup your update.rpf or at the very least backup dlclist.xml.



  • Just for fun, I tried online xml validators and they return exactly the same error as OpenIV - so they are wrong as well - implying that OpenIV either checks online or uses exactly the same rules which once more, in this particular case, send you chasing in the wrong direction.



  • @JohnFromGWN @mj190208
    Third way, Notepad++ can often help with tracking down actual error location :thumbsup:

    Syntax Error Notepad++

    The XML Tools plugin for Notepad++ can be useful too. It can be used to manually syntax check a file, but can also be set up to automatically check the file for errors & alert you to any (see yellow line in pic above) when you open or save it.

    Notepad++ XML Tools Plugin



  • @a63nt-5m1th the 4th way is to pay attention to what you type. Lol.


Log in to reply
 

Looks like your connection to GTA5-Mods.com Forums was lost, please wait while we try to reconnect.