I'm trying to load XML from an RSS feed. I'm using rss-parser to turn the rss feed url into JSON. However, the JSON response I get back leaves out the namespaces.
I'n order to grab the namespaces I have to hardcode them in via the customFields options. I would like to use node-xml2js to parse the XML directly from a rss feed URL. Is there any way to go about doing that using node-xml2js?
I'm trying to load XML from an RSS feed. I'm using rss-parser to turn the rss feed url into JSON. However, the JSON response I get back leaves out the namespaces.
I'n order to grab the
namespaces
I have to hardcode them in via thecustomFields
options. I would like to usenode-xml2js
to parse the XML directly from a rss feed URL. Is there any way to go about doing that usingnode-xml2js
?I tried using
url
library as follow:Is there any way to parse the XML from a RSS feed or load the XML from a URL?