Tool for XML Validation

alberts8

Emperor
Joined
Aug 16, 2012
Messages
1,967
Hello

I created a little Tool for XML Validation maybe it's usefull for someone.
Just put it into the directory with the files you want to test and run it.
The results are displayed in the Console and written to C2CXmlValidator.log.

.Net Framework 4.0 must be installed to run it.

Example C2CXmlValidator.log
Code:
-----------------------------------
Validating C:\Users\AlbertS\Documents\My Games\Beyond the Sword\MODS\Caveman2Cosmos\Assets\Modules\Enhanced_Prehistoric\EnhancedPrehistoric\1_CIV4ArtDefines_Building.xml
-----------------------------------
file:///C:/Users/AlbertS/Documents/My Games/Beyond the Sword/MODS/Caveman2Cosmos/Assets/Modules/Enhanced_Prehistoric/EnhancedPrehistoric/1_CIV4ArtDefines_Building.xml:24,40: The element 'BuildingArtInfo' in namespace 'x-schema:Azurian_CIV4ArtDefinesSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Azurian_CIV4ArtDefinesSchema.xml:NIF'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------
Validating C:\Users\AlbertS\Documents\My Games\Beyond the Sword\MODS\Caveman2Cosmos\Assets\Modules\Enhanced_Prehistoric\EnhancedPrehistoric\1_CIV4BuildingClassInfos.xml
-----------------------------------
-----------------------------------
Validation complete with 0 error(s)
-----------------------------------
Validating C:\Users\AlbertS\Documents\My Games\Beyond the Sword\MODS\Caveman2Cosmos\Assets\Modules\Enhanced_Prehistoric\EnhancedPrehistoric\1_CIV4BuildingInfos.xml
-----------------------------------
file:///C:/Users/AlbertS/Documents/My Games/Beyond the Sword/MODS/Caveman2Cosmos/Assets/Modules/Enhanced_Prehistoric/EnhancedPrehistoric/1_CIV4BuildingInfos.xml:1640,7: The element 'BonusCommerceModifier' in namespace 'x-schema:Azurian_CIV4BuildingsSchema.xml' has invalid child element 'Bonus' in namespace 'x-schema:Azurian_CIV4BuildingsSchema.xml'. List of possible elements expected: 'x-schema:Azurian_CIV4BuildingsSchema.xml:BonusType'.
file:///C:/Users/AlbertS/Documents/My Games/Beyond the Sword/MODS/Caveman2Cosmos/Assets/Modules/Enhanced_Prehistoric/EnhancedPrehistoric/1_CIV4BuildingInfos.xml:1849,7: The element 'BonusCommerceModifier' in namespace 'x-schema:Azurian_CIV4BuildingsSchema.xml' has invalid child element 'Bonus' in namespace 'x-schema:Azurian_CIV4BuildingsSchema.xml'. List of possible elements expected: 'x-schema:Azurian_CIV4BuildingsSchema.xml:BonusType'.
file:///C:/Users/AlbertS/Documents/My Games/Beyond the Sword/MODS/Caveman2Cosmos/Assets/Modules/Enhanced_Prehistoric/EnhancedPrehistoric/1_CIV4BuildingInfos.xml:2058,7: The element 'BonusCommerceModifier' in namespace 'x-schema:Azurian_CIV4BuildingsSchema.xml' has invalid child element 'Bonus' in namespace 'x-schema:Azurian_CIV4BuildingsSchema.xml'. List of possible elements expected: 'x-schema:Azurian_CIV4BuildingsSchema.xml:BonusType'.
-----------------------------------
Validation complete with 3 error(s)
-----------------------------------
Validating C:\Users\AlbertS\Documents\My Games\Beyond the Sword\MODS\Caveman2Cosmos\Assets\Modules\Enhanced_Prehistoric\EnhancedPrehistoric\1_CIV4GameText.xml
-----------------------------------
-----------------------------------
Validation complete with 0 error(s)
 

Attachments

  • C2CXmlValidator12.zip
    4.1 KB · Views: 192
  • C2CXmlValidator13.zip
    4.4 KB · Views: 259
  • Like
Reactions: Anq
Thank you so much for this!
Tried it, and it works beautifully.
 
Do u have framework 4.0 installed?. Net framework
 
OUT-STANDING!

Very useful little device there... very useful indeed! I've put a copy in all xml filled folders. My ONLY complaint would be that it doesn't apply to all folders within the file path. But that's not a real biggy... It's perhaps more helpful the way it is because when something is wrong it can run a string of error messages that exceeds the parsing field (the message goes on too long and cuts off the top portion.)

Anyhow, I used it to find an interesting issue in the Events xml file that I've fixed and will update soon.

Oh... it would also be nice if it could be stretched out on the X axis a bit... the size limit left to right is a bit constrictive (I don't know if you can change that though.)
 
I keep getting this error message all the time??

Try to run it as Administrator. To write someting in C:\ProgrammFiles... Admin Rights are requied.
I make a new Version that gives a message about this without failing and continues without writing the log.
 
Try to run it as Administrator. To write someting in C:\ProgrammFiles... Admin Rights are requied.
I make a new Version that gives a message about this without failing and continues without writing the log.

Yeah that did it, darn Win 8 crap, sorry.
 
First Post is updated with Version 1.1.

The new Version skips the creation of the log file if the file cannot be written.
Also the Window is now a bit wider and i made some smaller changes.
 
I know it sounds silly but can the first line say:
Caveman2Cosmos XML Validator 1.10 by Alberts2
 
New Version 1.2
It is now possible to choose if you want to Valitate files only in the current directory or if you want to include the files in all subdirectories.
 
New Version 1.2
It is now possible to choose if you want to Valitate files only in the current directory or if you want to include the files in all subdirectories.

:whew: Thank You, that makes it SO much better:)
 
Did a Directory Scan on Modules folder. This were the results.
Spoiler :

Code:
Caveman2Cosmos XML Validator 1.2 by Alberts2
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Alt_Timelines\Atompunk\AtomPunk_CIV4BuildingInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Alt_Timelines\Atompunk\AtomPunk_CIV4BuildingInfos.xml:159,21: The element 'BuildingInfo' in namespace 'x-schema:AtomPunk_CIV4BuildingsSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:AtomPunk_CIV4BuildingsSchema.xml:BonusHealthChanges x-schema:AtomPunk_CIV4BuildingsSchema.xml:BonusHappinessChanges x-schema:AtomPunk_CIV4BuildingsSchema.xml:BonusProductionModifiers x-schema:AtomPunk_CIV4BuildingsSchema.xml:UnitCombatFreeExperiences x-schema:AtomPunk_CIV4BuildingsSchema.xml:DomainFreeExperiences x-schema:AtomPunk_CIV4BuildingsSchema.xml:DomainProductionModifiers x-schema:AtomPunk_CIV4BuildingsSchema.xml:BuildingHappinessChanges x-schema:AtomPunk_CIV4BuildingsSchema.xml:PrereqBuildingClasses x-schema:AtomPunk_CIV4BuildingsSchema.xml:BuildingClassNeededs x-schema:AtomPunk_CIV4BuildingsSchema.xml:SpecialistYieldChanges x-schema:AtomPunk_CIV4BuildingsSchema.xml:BonusYieldModifiers x-schema:AtomPunk_CIV4BuildingsSchema.xml:ImprovementFreeSpecialists x-schema:AtomPunk_CIV4BuildingsSchema.xml:Flavors x-schema:AtomPunk_CIV4BuildingsSchema.xml:HotKey x-schema:AtomPunk_CIV4BuildingsSchema.xml:bAltDown x-schema:AtomPunk_CIV4BuildingsSchema.xml:bShiftDown x-schema:AtomPunk_CIV4BuildingsSche....
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Argentina\Soundpack\AudioDefines.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Argentina\Soundpack\AudioDefines.xml:17,3: The element 'AudioDefines' in namespace 'x-schema:AudioDefinesSchema.xml' has incomplete content. List of possible elements expected: 'x-schema:AudioDefinesSchema.xml:ContextTypes'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Armenia\Soundpack\Armenia_AudioDefines.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Armenia\Soundpack\Armenia_AudioDefines.xml:30,3: The element 'AudioDefines' in namespace 'x-schema:Armenia_AudioDefinesSchema.xml' has incomplete content. List of possible elements expected: 'x-schema:Armenia_AudioDefinesSchema.xml:ContextTypes'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\croatia_civ4artdefinesschema.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\croatia_civ4artdefinesschema.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\croatia_civ4civilizationsschema.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\croatia_civ4civilizationsschema.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\croatia_civ4interfaceschema.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\croatia_civ4interfaceschema.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\tomislav\tomislav_civ4artdefinesschema.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\tomislav\tomislav_civ4artdefinesschema.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\tomislav\tomislav_civ4civilizationsschema.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Croatia\tomislav\tomislav_civ4civilizationsschema.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-
-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Israel\palmach\Palmach_CIV4ArtDefines_Unit.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Israel\palmach\Palmach_CIV4ArtDefines_Unit.xml:32,21: The element 'UnitArtInfo' in namespace 'x-schema:Palmach_CIV4ArtDefinesSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Palmach_CIV4ArtDefinesSchema.xml:PatrolSound x-schema:Palmach_CIV4ArtDefinesSchema.xml:SelectionSound x-schema:Palmach_CIV4ArtDefinesSchema.xml:ActionSound'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Israel\shayetet 13\Shayetet_13_CIV4ArtDefines_Unit.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Israel\shayetet 13\Shayetet_13_CIV4ArtDefines_Unit.xml:32,21: The element 'UnitArtInfo' in namespace 'x-schema:Shayetet_13_CIV4ArtDefinesSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Shayetet_13_CIV4ArtDefinesSchema.xml:PatrolSound x-schema:Shayetet_13_CIV4ArtDefinesSchema.xml:SelectionSound x-schema:Shayetet_13_CIV4ArtDefinesSchema.xml:ActionSound'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Polynesia\Soundpack\Polynesia_AudioDefines.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Polynesia\Soundpack\Polynesia_AudioDefines.xml:31,3: The element 'AudioDefines' in namespace 'x-schema:Polynesia_AudioDefinesSchema.xml' has incomplete content. List of possible elements expected: 'x-schema:Polynesia_AudioDefinesSchema.xml:ContextTypes'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Slovakia\Slovakia_CIV4LeaderHeadInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Slovakia\Slovakia_CIV4LeaderHeadInfos.xml:100,13: The element 'Traits' in namespace 'x-schema:Slovakia_CIV4CivilizationsSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Slovakia_CIV4CivilizationsSchema.xml:Trait'.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Slovakia\Slovakia_CIV4LeaderHeadInfos.xml:112,13: The element 'Traits' in namespace 'x-schema:Slovakia_CIV4CivilizationsSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Slovakia_CIV4CivilizationsSchema.xml:Trait'.
-----------------------------------
Validation complete with 2 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Slovakia\Soundpack\Slovakia_AudioDefines.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Custom_Civilizations\Slovakia\Soundpack\Slovakia_AudioDefines.xml:16,3: The element 'AudioDefines' in namespace 'x-schema:Slovakia_AudioDefinesSchema.xml' has incomplete content. List of possible elements expected: 'x-schema:Slovakia_AudioDefinesSchema.xml:ContextTypes'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------



-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Entertainer\Entertainer_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Entertainer\Entertainer_CIV4GameText.xml:24,29: Invalid character in the given encoding. Line 24, position 29.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4GameText.xml:76,76: Invalid character in the given encoding. Line 76, position 76.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:17,5: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatTypes' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:18,6: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatType' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:209,5: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatTypes' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:210,6: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatType' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:401,5: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatTypes' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:402,6: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatType' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:590,5: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatTypes' element is not declared.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Units\Food_Merchants\Food_Merchant_CIV4UnitInfos.xml:591,6: The 'x-schema:DC2C_CIV4UnitSchema.xml:SubCombatType' element is not declared.
-----------------------------------
Validation complete with 8 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Wonders\Bull_Leaping\Bull_Leaping_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Wonders\Bull_Leaping\Bull_Leaping_CIV4GameText.xml:39,32: Invalid character in the given encoding. Line 39, position 32.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Wonders\Labyrinth\Labyrinth_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Wonders\Labyrinth\Labyrinth_CIV4GameText.xml:21,167: Invalid character in the given encoding. Line 21, position 167.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Wonders\Ntl_Library_Service\NLS_Civ4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Custom_Wonders\Ntl_Library_Service\NLS_Civ4GameText.xml:36,90: Invalid character in the given encoding. Line 36, position 90.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Buildings.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Buildings.xml:10,22: Invalid character in the given encoding. Line 10, position 22.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_GStatesman.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_GStatesman.xml:7,22: Invalid character in the given encoding. Line 7, position 22.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_IP.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Events_IP.xml:13,23: Invalid character in the given encoding. Line 13, position 23.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Outcomes.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Outcomes.xml:12,31: Invalid character in the given encoding. Line 12, position 31.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Units.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\ExtraDiplomacy\ExtraDiplomacy_CIV4GameText_Units.xml:94,156: Invalid character in the given encoding. Line 94, position 156.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Great_Hunter_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Great_Hunter_CIV4GameText.xml:25,14: Invalid character in the given encoding. Line 25, position 14.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\SA_Totems_Buildings_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\SA_Totems_Buildings_CIV4GameText.xml:25,61: Invalid character in the given encoding. Line 25, position 61.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Buildings_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Buildings_CIV4GameText.xml:93,12: Invalid character in the given encoding. Line 93, position 12.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------


-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_CIV4UnitInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_CIV4UnitInfos.xml:22302,24: The 'x-schema:SubdueAnimals_CIV4UnitSchema.xml:bMilitaryTrade' element has an invalid value according to its data type.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_CIV4UnitInfos.xml:22567,20: The element 'Outcome' in namespace 'x-schema:SubdueAnimals_CIV4UnitSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:SubdueAnimals_CIV4UnitSchema.xml:OutcomeType x-schema:SubdueAnimals_CIV4UnitSchema.xml:iChance x-schema:SubdueAnimals_CIV4UnitSchema.xml:iChancePerPop x-schema:SubdueAnimals_CIV4UnitSchema.xml:UnitType x-schema:SubdueAnimals_CIV4UnitSchema.xml:bUnitToCity x-schema:SubdueAnimals_CIV4UnitSchema.xml:PromotionType x-schema:SubdueAnimals_CIV4UnitSchema.xml:iGPP x-schema:SubdueAnimals_CIV4UnitSchema.xml:GPUnitType x-schema:SubdueAnimals_CIV4UnitSchema.xml:iHappinessTimer x-schema:SubdueAnimals_CIV4UnitSchema.xml:BonusType x-schema:SubdueAnimals_CIV4UnitSchema.xml:Yields x-schema:SubdueAnimals_CIV4UnitSchema.xml:Commerces x-schema:SubdueAnimals_CIV4UnitSchema.xml:Properties x-schema:SubdueAnimals_CIV4UnitSchema.xml:EventTrigger x-schema:SubdueAnimals_CIV4UnitSchema.xml:PlotCondition x-schema:SubdueAnimals_CIV4UnitSchema.xml:UnitCondition x-schema:SubdueAnimals_CIV4UnitSchema.xml:PythonCallback x-schema:SubdueAnimals_CIV4UnitSchema.xml:bKill'.
-----------------------------------
Validation complete with 2 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Outcomes_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Outcomes_CIV4GameText.xml:13,62: Invalid character in the given encoding. Line 13, position 62.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Pedia_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Pedia_CIV4GameText.xml:14,19: Invalid character in the given encoding. Line 14, position 19.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Promotion_CIV4GameText.xml
-----------------------------------
Validation complete with 0 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Strategy_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Strategy_CIV4GameText.xml:14,19: Invalid character in the given encoding. Line 14, position 19.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Unit_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\Subdue_Animals\Subdue_Animals_Unit_CIV4GameText.xml:45,12: Invalid character in the given encoding. Line 45, position 12.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------
-----------------------------------
 
Part 2

Spoiler :
Code:
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\SuperForts\SuperForts_CIV4GameText.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\DancingHoskuld\SuperForts\SuperForts_CIV4GameText.xml:20,29: Invalid character in the given encoding. Line 20, position 29.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Craft\Craft_CIV4BuildingClassInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Craft\Craft_CIV4BuildingClassInfos.xml:1580,23: The element 'BuildingClassInfos' in namespace 'x-schema:Hydro_CIV4BuildingsSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Hydro_CIV4BuildingsSchema.xml:BuildingClassInfo'.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Fossils\Fossils_CIV4BuildingInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Fossils\Fossils_CIV4BuildingInfos.xml:906,40: The element 'BuildingInfo' in namespace 'x-schema:Hydro_CIV4BuildingsSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Hydro_CIV4BuildingsSchema.xml:FreeBuilding x-schema:Hydro_CIV4BuildingsSchema.xml:FreeAreaBuilding x-schema:Hydro_CIV4BuildingsSchema.xml:FreeTradeRegionBuilding x-schema:Hydro_CIV4BuildingsSchema.xml:FreePromotion x-schema:Hydro_CIV4BuildingsSchema.xml:CivicOption x-schema:Hydro_CIV4BuildingsSchema.xml:GreatPeopleUnitClass x-schema:Hydro_CIV4BuildingsSchema.xml:iGreatPeopleRateChange x-schema:Hydro_CIV4BuildingsSchema.xml:iHurryAngerModifier x-schema:Hydro_CIV4BuildingsSchema.xml:bBorderObstacle x-schema:Hydro_CIV4BuildingsSchema.xml:bTeamShare x-schema:Hydro_CIV4BuildingsSchema.xml:bAutoBuild x-schema:Hydro_CIV4BuildingsSchema.xml:bWater x-schema:Hydro_CIV4BuildingsSchema.xml:bRiver x-schema:Hydro_CIV4BuildingsSchema.xml:bPower x-schema:Hydro_CIV4BuildingsSchema.xml:bDirtyPower x-schema:Hydro_CIV4BuildingsSchema.xml:bAreaCleanPower x-schema:Hydro_CIV4BuildingsSchema.xml:bOrbital x-schema:Hydro_CIV4BuildingsSchema.xml:bOrbitalInfrastructure x-schema:Hydro_CIV4BuildingsSchema.xml:DiploVoteType x-....
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Pets\Pets_CIV4BuildingInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Pets\Pets_CIV4BuildingInfos.xml:3430,6: The element 'x-schema:Hydro_CIV4BuildingsSchema.xml:VicinityBonus' cannot contain child element 'x-schema:Hydro_CIV4BuildingsSchema.xml:Bonus' because the parent element's content model is text only.
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Tower\Tower_CIV4BuildingInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\Hydro\Tower\Tower_CIV4BuildingInfos.xml:5773,40: The element 'BuildingInfo' in namespace 'x-schema:Hydro_CIV4BuildingsSchema.xml' cannot contain text. List of possible elements expected: 'x-schema:Hydro_CIV4BuildingsSchema.xml:iOrderPriority x-schema:Hydro_CIV4BuildingsSchema.xml:Properties x-schema:Hydro_CIV4BuildingsSchema.xml:PropertiesAllCities x-schema:Hydro_CIV4BuildingsSchema.xml:PrereqMinProperties x-schema:Hydro_CIV4BuildingsSchema.xml:PrereqMaxProperties x-schema:Hydro_CIV4BuildingsSchema.xml:PrereqPlayerMinProperties x-schema:Hydro_CIV4BuildingsSchema.xml:PrereqPlayerMaxProperties x-schema:Hydro_CIV4BuildingsSchema.xml:TechCommerceChanges x-schema:Hydro_CIV4BuildingsSchema.xml:TechYieldChanges x-schema:Hydro_CIV4BuildingsSchema.xml:TechSpecialistChanges x-schema:Hydro_CIV4BuildingsSchema.xml:TechCommerceModifiers x-schema:Hydro_CIV4BuildingsSchema.xml:TechYieldModifiers x-schema:Hydro_CIV4BuildingsSchema.xml:bDCMNukesOkay x-schema:Hydro_CIV4BuildingsSchema.xml:iDCMAirbombMission x-schema:Hydro_CIV4BuildingsSchema.xml:PropertyManipulators x-schema:Hydro_CIV4BuildingsSchema.xml:GlobalBuildingExtraCommerces x-schema:Hydro_CIV4BuildingsSchema.xml:iAidRate x-schema:Hydro_CIV4Building....
-----------------------------------
Validation complete with 1 error(s)
-----------------------------------



-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4PromotionInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4PromotionInfos.xml:7,21: Cannot load the schema for the namespace 'x-schema:CIV4UnitSchema.xml' - Could not find file 'C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\CIV4UnitSchema.xml'.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4PromotionInfos.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 2 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4SpecialUnitInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4SpecialUnitInfos.xml:7,23: Cannot load the schema for the namespace 'x-schema:CIV4UnitSchema.xml' - Could not find file 'C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\CIV4UnitSchema.xml'.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4SpecialUnitInfos.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 2 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitClassInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitClassInfos.xml:7,21: Cannot load the schema for the namespace 'x-schema:CIV4UnitSchema.xml' - Could not find file 'C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\CIV4UnitSchema.xml'.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitClassInfos.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 2 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitCombatInfos.xml
-----------------------------------
Validation complete with 0 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitInfos.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitInfos.xml:7,16: Cannot load the schema for the namespace 'x-schema:CIV4UnitSchema.xml' - Could not find file 'C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\CIV4UnitSchema.xml'.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MineWarfare_CIV4UnitInfos.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 2 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\MWM_Civ4GameText.xml
-----------------------------------
Validation complete with 0 error(s)
-----------------------------------

-----------------------------------
Validating C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\PythonCallbackDefines.xml
-----------------------------------
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\PythonCallbackDefines.xml:6,14: Cannot load the schema for the namespace 'x-schema:CIV4GlobalDefinesSchema.xml' - Could not find file 'C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\CIV4GlobalDefinesSchema.xml'.
C:\Users\Users\Desktop\Sid Meier's Civilization 4\Beyond the Sword\Mods\code\trunk\Assets\Modules\OrionsMods\MineWarfare\PythonCallbackDefines.xml:0,0: No validation occurred.
-----------------------------------
Validation complete with 2 error(s)
 
Very good. Please remove all errors before we will mass edit this files.
 
None of the encoding errors look like errors:confused:

Mine warfare is not an active mod. OV converted it from python to dll before I managed to merge it in to C2C. I'll compress the file for now so that the work converting the XML bit is not lost.
 
Most of what's listed there is just a matter of copying in the core schema to replace the one that's in there and/or renaming the schema the info file is asking for to the correct schema name.


The modular section is tough to go through with this because when I try to run the validator tool there it only keeps about 10% of what it's discovered. The rest is deleted from the top of the report. Apparently it can only keep so much of what it's displayed in its window?
 
Top Bottom