Skip to content

Commit

Permalink
Add Support for CDATA Value
Browse files Browse the repository at this point in the history
  • Loading branch information
james-simmonds authored Jul 18, 2018
1 parent 27dd14c commit f1a2ae3
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 f1a2ae3

Please sign in to comment.