Skip to content

Commit

Permalink
Merge pull request #109 from rn0/fix_xml_validation_12
Browse files Browse the repository at this point in the history
Fixed XML mapping validation.
  • Loading branch information
chives authored Jan 22, 2018
2 parents dc0a351 + 61bc49e commit 2990900
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,10 @@ private function validateFile(DOMDocument $dom)
continue;
}

foreach ($dom->getElementsByTagNameNS($xmlns->nodeValue, '*') as $elem) {
$elem->parentNode->removeChild($elem);
$domNodeList = $dom->getElementsByTagNameNS($xmlns->nodeValue, '*');
for ($i = $domNodeList->length; --$i >= 0; ) {
$element = $domNodeList->item($i);
$element->parentNode->removeChild($element);
}
}

Expand Down

0 comments on commit 2990900

Please sign in to comment.