Return DOMDocument instead of DOMElement from XMLParserExtractor
Removed
Deprecated
Security
Description
The reason behind this change is strictly related to performance. When extractors returns DOMElemenet, the most commonly used XPath scalar function (that is usually used at node entry of a row) needs to convert it back to DOMDocument which affects performance since it adds few more steps to the process.
So in general returning DOMDocument as a node might not be the most logical approach (it feels more natural to return DOMElement) but it will hurt the performance and it's not worth it.
Change Log
Added
Fixed
Changed
Removed
Deprecated
Security
Description
The reason behind this change is strictly related to performance. When extractors returns DOMElemenet, the most commonly used XPath scalar function (that is usually used at node entry of a row) needs to convert it back to DOMDocument which affects performance since it adds few more steps to the process. So in general returning DOMDocument as a
node
might not be the most logical approach (it feels more natural to return DOMElement) but it will hurt the performance and it's not worth it.