I am trying to read the svg xml file as listed bellow with the procedure listed bellow : function GetContent($node) { $st = ""; foreach ($node->childNodes as $cnode){ if ($cnode->nodeType==XML_TEXT_NODE){ $st .= $cnode->textContent; } else if ($cnode->nodeType==XML_ELEMENT_NODE) { $st .= "<" . $cnode->tagName; if ($attribnodes = $cnode->attributes) { $st .= " "; foreach ($attribnodes as $anode){ $st .= $anode->nodeName . "='" . $anode->nodeValue . "' "; } } $nodeText = $this->GetContentAsString($cnode,$obj,$lin); if (empty($nodeText) && !$attribnodes){ $st .= " />"; } else { $st .= ">" . $nodeText . "nodeName . ">"; } } } return $st; } but it seems that the reading is producing the following partial result : ----------------------------- SOURCE SVG XML ----------------------------- 37270 2 37271 ..............................................