Hi all,
I’m not really into PHP but I’ve been working on a flash app that reads an XML thats created by an PHP aplication.
Here is the thing, when I press return on my keyboard the XML files that is generated by the PHP comes with an extra space between the lines just like a paragraph, anyway I need to take the paragraph of here is some parts of the code…
I would really apreciate any help.
here is my php files
xml.php
<?
function xmlInit($file = '', $rootName = 'root', $catRoot = '', $gallDirName = '')
{
    if (version_compare( phpversion(), '5', '<' )){
        require_once('xml4.php');
        return new XML4($file, $rootName, $catRoot, $gallDirName);
    }else{
        require_once('xml5.php');
        return new XML5($file, $rootName, $catRoot, $gallDirName);
    }
}
?>
xml4.php
<?
class XML4
{
    var $file = '';
    var $doc = null;
    var $root = null;
    var $rootName = 'root';
    var $catRoot = '';
    var $gallDirName = '';
    
    function XML4($iFile = '', $rootName = 'root', $catRoot = '', $gallDirName = '')
    {
        $this->rootName = $rootName;
        $this->catRoot = $catRoot;
        $this->gallDirName = $gallDirName;
        $this->file = $iFile;
        
        if (file_exists($iFile)) {
           %2