Replaced querypath using with native DOMDocument.