Delphi: XML Node goes EInvalidPointer When I try to access it
I am trying to load node just to check for EInvalidPointer error on Delphi.
My "xml" goes like this:
<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 google everywhere, but I'm at the end. Can't seem to find a solution remotely adapted to what I'm going through.
Code used to "read":
FormSkeletonMaker.XMLDocumentFile.LoadFromFile(FileName); FormSkeletonMaker.XMLDocumentFile.Active := True; iNode := FormSkeletonMaker.XMLDocumentFile.ChildNodes.FindNode('GenInfo');
right now it goes like this. I am barely testing the downloadability of this document (it was made in the same program).
+3
source to share