I try to load a node only to face the EInvalidPointer error on Delphi.
My "xml" goes this way:
<RYCFile>
<GeneralInfo>
<SystemName/>
<NSpecies>1</NSpecies>
<NMaxCriterias>2</NMaxCriterias>
<MaxRating>1</MaxRating>
<SystemType>0</SystemType>
<EvolutivePointCost>1</EvolutivePointCost>
</GeneralInfo>
<Race Index="1">
<RaceName>Race #1</RaceName>
<NumCriterias>2</NumCriterias>
<Criteria Index="1">
<Name>Criteria #1</Name>
<NSubCriterias>0</NSubCriterias>
<Limiter>0</Limiter>
</Criteria>
<Criteria Index="2">
<Name>Criteria #2</Name>
<NSubCriterias>0</NSubCriterias>
<Limiter>0</Limiter>
</Criteria>
</Race>
</RYCFile>
I can't even read the DocumentElement.
I've googled everywhere but I'm at wit's end, it seems. Can't seem to find a solution remotely adapted to what I'm enduring.
Code used to "read":
FormSkeletonMaker.XMLDocumentFile.LoadFromFile(FileName);
FormSkeletonMaker.XMLDocumentFile.Active := True;
iNode := FormSkeletonMaker.XMLDocumentFile.ChildNodes.FindNode('GenInfo');
right now it goes this way. I'm barely testing the ability for this document to get loaded (it was made on the same program).