Stuff
public text v1 · immutable...
$this->xdoc = new DOMDocument("1.0","UTF-8");
//$xdoc->Load("../../catalog/42.svg");
$this->xdoc->validateOnParse = true;
$this->xdoc->Load("../..".$this->file_dir."/".$file);
$this->svg = $this->xdoc->getElementsByTagName('svg')->item(0);
echo "The element whose id is CarFront01 is: " . $this->xdoc->getElementById('CarFront01')->tagName . "\n";
...