Remove a node from XML with namespace and generate new XML – Woocommerce
I am trying to filter the results of an XML feed generated for Facebook. Currently, the feed looks like this <?xml version="1.0" encoding="UTF-8"?> <rss xmlns:g="http://base.google.com/ns/1.0" version="2.0"> <channel> <title><![CDATA[Title]]></title> <link><![CDATA[https:/path/]]></link> <description>WooCommerce Product List RSS feed</description> <metadata> <ref_application_id>451257172939091</ref_application_id> </metadata> <item> <g:id>anID</g:id> <g:inventory>5</g:inventory>…