Skip to content

Commit

Permalink
Merge pull request #5 from james-simmonds/patch-1
Browse files Browse the repository at this point in the history
Add Support for CDATA Value
  • Loading branch information
sergiorodenas authored Jul 18, 2018
2 parents 27dd14c + f1a2ae3 commit 0595aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Parsers/XMLParser.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 0595aa9

Please sign in to comment.