For reading the SPIP files I use XML::Simple. That generates a hash structure from the XML data of the SPIP files.
            To read the config.spip file I just "say"
            my $config = XMLin($configfile, forcearray => 0);
            and the data is in my structure $config.