Need help again, sorry

User avatar
Farming Girl
Posts: 285
Joined: Thu Aug 02, 2018 12:42 pm

Need help again, sorry

Post by Farming Girl » Wed Sep 04, 2019 1:36 pm

I am trying to upload my mod and keep gettig the error

Error: Could not parse modDesc.xml. Please check this file for errors.

I have examined the modDesc File but cannot see any error, i don't have any errors in the log and the mod runs perfectly, I hope someone can helpThanks

Code: Select all

<?xml version="1.0" encoding="utf-8" standalone="no" ?>
<modDesc descVersion="44">
    <author>C+S Modding,Annmarie</author>
    <version>1.0.0.0</version>
    <title>
        <en>Liquid Hebicide and Fertiser Storage</en>
		<de>Herbizid und Flüssigdüngerlagerung</de>		
    </title>
    <description>
        <en>
            <![CDATA[CNS Farming Solutions are proud to Offer the latest in Liquid storage for your farm, with two underground 50,000 litre tanks, making a small footprint in your yard.

We have worked with CNSTEC to bring you the latest in monitoring and control, with a touchscreen control panel, this system monitors the tanks pressure and fill levels, automatically ordering Herbicide or Fertiliser when you are getting low, ensuring you always have a good supply when needed.

As the product is delivered in bulk, there is no delivery charge, you just pay the current market price!
]]>
        </en>
        <de>
            <![CDATA[CNS Farming Solutions ist stolz darauf, das neueste Flüssiglager für Ihren Bauernhof mit zwei unterirdischen 50.000-Liter-Tanks anzubieten, die einen kleinen Platzbedarf in Ihrem Hof machen.

Wir haben mit CNSTEC zusammengearbeitet, um Ihnen die neuesten Überwachungs- und Steuerungstechniken zu bieten, mit einem Touchscreen-Bedienfeld überwacht dieses System den Druck- und Füllstand der Tanks und bestellt automatisch Herbizide oder Düngemittel, wenn Sie niedrig werden, und stellt sicher, dass Sie immer bei Bedarf eine gute Versorgung.

Da das Produkt in großen Mengen geliefert wird, gibt es keine Liefergebühr, Sie zahlen nur den aktuellen Marktpreis!

]]>
        </de>
    </description>
	
	<iconFilename>icon.dds</iconFilename>
    <multiplayer supported="true"/>
	
	<brands>
		<brand name="CNSFarmingSolutions" title="C&S Farming Solutions" image="CNS_Logo.png" />
	</brands>
	    
    <storeItems>
        <storeItem xmlFilename="Tanks.xml" />
    </storeItems>
		
	<l10n>
		<text name="shopItem_storageTanks">
            <en>Herbicide and Liquid Fertiliser Storage</en>
            <de>Herbizid und Flüssigdüngerlagerung</de>
        </text>
		<text name="function_LiquidHebicideandFertiserShop">
            <en>Buy your Herbicide and liquid fertiliser here at current market prices.</en>
            <de>Kaufen Sie Ihren Herbizid und flüssigen Dünger hier zu aktuellen Marktpreisen.</de>
        </text>
	</l10n>
</modDesc>
Ann-Marie

C&S Modding

User avatar
don_apple
Moderator
Posts: 5320
Joined: Thu Oct 28, 2010 9:31 pm
Location: Planet Erde

Re: Need help again, sorry

Post by don_apple » Wed Sep 04, 2019 3:24 pm

If I run the file through xmllint it gives the following error:

Code: Select all

$ xmllint modDesc.xml 
modDesc.xml:33: parser error : EntityRef: expecting ';'
                <brand name="CNSFarmingSolutions" title="C&S Farming Solutions" image="CNS_Log
After changing the 'C&S' to 'CS' the error is gone, so it seems the '&' character is causing the issue.
Gruß/Regards,
don_apple

Apple iMac 27" (late 2013), Quad-Core i7 3.5 GHz, 16GB, Nvidia GTX 780M
Bitte benutzt das öffentliche Forum für Supportfragen und nicht PN/Please use the public forum for support questions and not PM
Wo findet man den FarmingSimulator Ordner / Where to find the FarmingSimulator folder log.txt Image Server Forenregeln/Board rules

User avatar
Farming Girl
Posts: 285
Joined: Thu Aug 02, 2018 12:42 pm

Re: Need help again, sorry

Post by Farming Girl » Wed Sep 04, 2019 3:26 pm

Thanks very much, that program you use is it free? if so where could i get it from please?
Ann-Marie

C&S Modding

User avatar
don_apple
Moderator
Posts: 5320
Joined: Thu Oct 28, 2010 9:31 pm
Location: Planet Erde

Re: Need help again, sorry

Post by don_apple » Wed Sep 04, 2019 4:58 pm

Yes it is free, it is part of most Linux distributions (that's where I'm using it). Not sure if you can get it for Windows as well.

But it looks like there is an online tool for validating XML files available as well: https://www.xmlvalidation.com/
Gruß/Regards,
don_apple

Apple iMac 27" (late 2013), Quad-Core i7 3.5 GHz, 16GB, Nvidia GTX 780M
Bitte benutzt das öffentliche Forum für Supportfragen und nicht PN/Please use the public forum for support questions and not PM
Wo findet man den FarmingSimulator Ordner / Where to find the FarmingSimulator folder log.txt Image Server Forenregeln/Board rules

User avatar
Farming Girl
Posts: 285
Joined: Thu Aug 02, 2018 12:42 pm

Re: Need help again, sorry

Post by Farming Girl » Wed Sep 04, 2019 5:34 pm

Thanks so much, that fixed my problem and the mod is now uploaded for testing
Ann-Marie

C&S Modding

User avatar
don_apple
Moderator
Posts: 5320
Joined: Thu Oct 28, 2010 9:31 pm
Location: Planet Erde

Re: Need help again, sorry

Post by don_apple » Wed Sep 04, 2019 9:09 pm

Glad I could help. Hope your mod passes testing and will be accepted on the ModHub.
Gruß/Regards,
don_apple

Apple iMac 27" (late 2013), Quad-Core i7 3.5 GHz, 16GB, Nvidia GTX 780M
Bitte benutzt das öffentliche Forum für Supportfragen und nicht PN/Please use the public forum for support questions and not PM
Wo findet man den FarmingSimulator Ordner / Where to find the FarmingSimulator folder log.txt Image Server Forenregeln/Board rules

Post Reply