From f1a2ae3dcdb43856d08d0685209d030bdcc328df Mon Sep 17 00:00:00 2001 From: James Simmonds Date: Wed, 18 Jul 2018 16:56:18 +1200 Subject: [PATCH] Add Support for CDATA Value --- src/Parsers/XMLParser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Parsers/XMLParser.php b/src/Parsers/XMLParser.php index c16282f..80cd083 100644 --- a/src/Parsers/XMLParser.php +++ b/src/Parsers/XMLParser.php @@ -130,6 +130,6 @@ private function isEndElement(String $elementName = null){ } private function isValue(){ - return $this->reader->nodeType == XMLReader::TEXT; + return $this->reader->nodeType == XMLReader::TEXT || $this->reader->nodeType === XMLReader::CDATA; } }