XML
The def
function will automatically parse XML files and extract text from them.
parse
The global XML.parse
function reads an XML file and converts it to a JSON object.
Attribute names are prepended with ”@_”.
RSS
You can use XML.parse
to parse an RSS feed into a object.
Since RSS feeds typically return a rendered HTML description, you can use parsers.HTMLToText
to convert it to back plain text.