'''
xml dom parser for json


'''
#https://msdn.microsoft.com/en-us/library/ms762271(v=vs.85).aspx
example_from_ms = """
<?xml version="1.0"?>
<catalog>
   <book id="bk101">
      <author>Gambardella, Matthew</author>
      <title>XML Developer's Guide</title>
      <genre>Computer</genre>
      <price>44.95</price>
      <publish_date>2000-10-01</publish_date>
      <description>An in-depth look at creating applications 
      with XML.</description>
   </book>
   <book id="bk102">
      <author>Ralls, Kim</author>
      <title>Midnight Rain</title>
      <genre>Fantasy</genre>
      <price>5.95</price>
      <publish_date>2000-12-16</publish_date>
      <description>A former architect battles corporate zombies, 
      an evil sorceress, and her own childhood to become queen 
      of the world.</description>
   </book>
   <book id="bk103">
      <author>Corets, Eva</author>
      <title>Maeve Ascendant</title>
      <genre>Fantasy</genre>
      <price>5.95</price>
      <publish_date>2000-11-17</publish_date>
      <description>After the collapse of a nanotechnology 
      society in England, the young survivors lay the 
      foundation for a new society.</description>
   </book>
   <book id="bk104">
      <author>Corets, Eva</author>
      <title>Oberon's Legacy</title>
      <genre>Fantasy</genre>
      <price>5.95</price>
      <publish_date>2001-03-10</publish_date>
      <description>In post-apocalypse England, the mysterious 
      agent known only as Oberon helps to create a new life 
      for the inhabitants of London. Sequel to Maeve 
      Ascendant.</description>
   </book>
   <book id="bk105">
      <author>Corets, Eva</author>
      <title>The Sundered Grail</title>
      <genre>Fantasy</genre>
      <price>5.95</price>
      <publish_date>2001-09-10</publish_date>
      <description>The two daughters of Maeve, half-sisters, 
      battle one another for control of England. Sequel to 
      Oberon's Legacy.</description>
   </book>
   <book id="bk106">
      <author>Randall, Cynthia</author>
      <title>Lover Birds</title>
      <genre>Romance</genre>
      <price>4.95</price>
      <publish_date>2000-09-02</publish_date>
      <description>When Carla meets Paul at an ornithology 
      conference, tempers fly as feathers get ruffled.</description>
   </book>
   <book id="bk107">
      <author>Thurman, Paula</author>
      <title>Splish Splash</title>
      <genre>Romance</genre>
      <price>4.95</price>
      <publish_date>2000-11-02</publish_date>
      <description>A deep sea diver finds true love twenty 
      thousand leagues beneath the sea.</description>
   </book>
   <book id="bk108">
      <author>Knorr, Stefan</author>
      <title>Creepy Crawlies</title>
      <genre>Horror</genre>
      <price>4.95</price>
      <publish_date>2000-12-06</publish_date>
      <description>An anthology of horror stories about roaches,
      centipedes, scorpions  and other insects.</description>
   </book>
   <book id="bk109">
      <author>Kress, Peter</author>
      <title>Paradox Lost</title>
      <genre>Science Fiction</genre>
      <price>6.95</price>
      <publish_date>2000-11-02</publish_date>
      <description>After an inadvertant trip through a Heisenberg
      Uncertainty Device, James Salway discovers the problems 
      of being quantum.</description>
   </book>
   <book id="bk110">
      <author>O'Brien, Tim</author>
      <title>Microsoft .NET: The Programming Bible</title>
      <genre>Computer</genre>
      <price>36.95</price>
      <publish_date>2000-12-09</publish_date>
      <description>Microsoft's .NET initiative is explored in 
      detail in this deep programmer's reference.</description>
   </book>
   <book id="bk111">
      <author>O'Brien, Tim</author>
      <title>MSXML3: A Comprehensive Guide</title>
      <genre>Computer</genre>
      <price>36.95</price>
      <publish_date>2000-12-01</publish_date>
      <description>The Microsoft MSXML3 parser is covered in 
      detail, with attention to XML DOM interfaces, XSLT processing, 
      SAX and more.</description>
   </book>
   <book id="bk112">
      <author>Galos, Mike</author>
      <title>Visual Studio 7: A Comprehensive Guide</title>
      <genre>Computer</genre>
      <price>49.95</price>
      <publish_date>2001-04-16</publish_date>
      <description>Microsoft Visual Studio 7 is explored in depth,
      looking at how Visual Basic, Visual C++, C#, and ASP+ are 
      integrated into a comprehensive development 
      environment.</description>
   </book>
</catalog>
"""

example_result_from_ms = {
  "catalog": {
    "book": [
      {
        "-id": "bk101",
        "author": "Gambardella, Matthew",
        "title": "XML Developer's Guide",
        "genre": "Computer",
        "price": "44.95",
        "publish_date": "2000-10-01",
        "description": "An in-depth look at creating applications 
      with XML."
      },
      {
        "-id": "bk102",
        "author": "Ralls, Kim",
        "title": "Midnight Rain",
        "genre": "Fantasy",
        "price": "5.95",
        "publish_date": "2000-12-16",
        "description": "A former architect battles corporate zombies, 
      an evil sorceress, and her own childhood to become queen 
      of the world."
      },
      {
        "-id": "bk103",
        "author": "Corets, Eva",
        "title": "Maeve Ascendant",
        "genre": "Fantasy",
        "price": "5.95",
        "publish_date": "2000-11-17",
        "description": "After the collapse of a nanotechnology 
      society in England, the young survivors lay the 
      foundation for a new society."
      },
      {
        "-id": "bk104",
        "author": "Corets, Eva",
        "title": "Oberon's Legacy",
        "genre": "Fantasy",
        "price": "5.95",
        "publish_date": "2001-03-10",
        "description": "In post-apocalypse England, the mysterious 
      agent known only as Oberon helps to create a new life 
      for the inhabitants of London. Sequel to Maeve 
      Ascendant."
      },
      {
        "-id": "bk105",
        "author": "Corets, Eva",
        "title": "The Sundered Grail",
        "genre": "Fantasy",
        "price": "5.95",
        "publish_date": "2001-09-10",
        "description": "The two daughters of Maeve, half-sisters, 
      battle one another for control of England. Sequel to 
      Oberon's Legacy."
      },
      {
        "-id": "bk106",
        "author": "Randall, Cynthia",
        "title": "Lover Birds",
        "genre": "Romance",
        "price": "4.95",
        "publish_date": "2000-09-02",
        "description": "When Carla meets Paul at an ornithology 
      conference, tempers fly as feathers get ruffled."
      },
      {
        "-id": "bk107",
        "author": "Thurman, Paula",
        "title": "Splish Splash",
        "genre": "Romance",
        "price": "4.95",
        "publish_date": "2000-11-02",
        "description": "A deep sea diver finds true love twenty 
      thousand leagues beneath the sea."
      },
      {
        "-id": "bk108",
        "author": "Knorr, Stefan",
        "title": "Creepy Crawlies",
        "genre": "Horror",
        "price": "4.95",
        "publish_date": "2000-12-06",
        "description": "An anthology of horror stories about roaches,
      centipedes, scorpions  and other insects."
      },
      {
        "-id": "bk109",
        "author": "Kress, Peter",
        "title": "Paradox Lost",
        "genre": "Science Fiction",
        "price": "6.95",
        "publish_date": "2000-11-02",
        "description": "After an inadvertant trip through a Heisenberg
      Uncertainty Device, James Salway discovers the problems 
      of being quantum."
      },
      {
        "-id": "bk110",
        "author": "O'Brien, Tim",
        "title": "Microsoft .NET: The Programming Bible",
        "genre": "Computer",
        "price": "36.95",
        "publish_date": "2000-12-09",
        "description": "Microsoft's .NET initiative is explored in 
      detail in this deep programmer's reference."
      },
      {
        "-id": "bk111",
        "author": "O'Brien, Tim",
        "title": "MSXML3: A Comprehensive Guide",
        "genre": "Computer",
        "price": "36.95",
        "publish_date": "2000-12-01",
        "description": "The Microsoft MSXML3 parser is covered in 
      detail, with attention to XML DOM interfaces, XSLT processing, 
      SAX and more."
      },
      {
        "-id": "bk112",
        "author": "Galos, Mike",
        "title": "Visual Studio 7: A Comprehensive Guide",
        "genre": "Computer",
        "price": "49.95",
        "publish_date": "2001-04-16",
        "description": "Microsoft Visual Studio 7 is explored in depth,
      looking at how Visual Basic, Visual C++, C#, and ASP+ are 
      integrated into a comprehensive development 
      environment."
      }
    ]
  }
}


#from http://www.cbc.ca/cmlink/rss-topstories @ 2016-04-12 18:00
example_from_cbc_rss = """
<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:cbc="http://www.cbc.ca/rss/cbc" version="2.0">
  <channel>
    <title><![CDATA[CBC | Top Stories News ]]></title>
    <link>http://www.cbc.ca/news/?cmp=rss</link>
    <description>
      <![CDATA[
      FOR PERSONAL USE ONLY
      ]]>
    </description>
    <language>en-ca</language>
    <lastBuildDate>Tue, 12 Apr 2016 15:38:51 EDT</lastBuildDate>
    <copyright><![CDATA[Copyright: (C) Canadian Broadcasting Corporation, http://www.cbc.ca/aboutcbc/discover/termsofuse.html#Rss]]></copyright>
        <docs><![CDATA[http://www.cbc.ca/rss/]]></docs>
    <image>
      <title>CBC.ca</title>
      <url>http://www.cbc.ca/rss/image/cbc_144.gif</url>
      <link>http://www.cbc.ca/news/?cmp=rss</link>
    </image>
    <item cbc:type="story" cbc:deptid="2.636" cbc:syndicate="false">
      <title><![CDATA[NDP's left rejects Tom Mulcair as Canada's left embraces Justin Trudeau]]></title>
            <link>http://www.cbc.ca/news/politics/grenier-ndp-liberals-left-1.3530046?cmp=rss</link>
      <guid isPermaLink="false">1.3530046</guid>
      <pubDate>Tue, 12 Apr 2016 05:00:00 EDT</pubDate>
                        <author>&#201;ric Grenier</author>
                                      <category>News/Politics</category>
      <description>
        <![CDATA[
                        <img title='Federal NDP leader Thomas Mulcair makes a speech during the 2016 NDP Federal Convention in Edmonton Alta, on Sunday April 10, 2016.' height='259' alt='NDP CONVENTION 2016 20160410' width='460' src='http://i.cbc.ca/1.3530272.1460394346!/cpImage/httpImage/image.jpg_gen/derivatives/16x9_460/ndp-convention-2016-20160410.jpg' />                <p>If New Democrats embark on a fight for the party’s soul over the course of the upcoming leadership race, they may also need to focus on wooing back the party’s soulmates as well — as polls suggest the party’s core constituencies have moved over to Justin Trudeau’s Liberals.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.641" cbc:syndicate="true">
      <title><![CDATA[RCMP hold regimental funeral and procession for Const. Sarah Beckett]]></title>
            <link>http://www.cbc.ca/news/canada/british-columbia/sarah-beckett-rcmp-regimental-funeral-1.3531674?cmp=rss</link>
      <guid isPermaLink="false">1.3531674</guid>
      <pubDate>Tue, 12 Apr 2016 10:34:21 EDT</pubDate>
                        <author>CBC News</author>
                                                  <category>News/Canada/British Columbia</category>
      <description>
        <![CDATA[
                        <img title='The RCMP are holding a funeral service for Const. Sarah Beckett in Victoria on April 12, 2016.' height='259' alt='Const Sarah Beckett RCMP 1983-2016' width='460' src='http://i.cbc.ca/1.3530604.1460402511!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/const-sarah-beckett-rcmp-1983-2016.jpg' />                <p>Thousands of people are expected to turn out for the RCMP procession and funeral for Const. Sarah Beckett this afternoon near Victoria.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.656" cbc:syndicate="true">
      <title><![CDATA[Internet Black Widow arrested in Halifax library for going online]]></title>
            <link>http://www.cbc.ca/news/canada/nova-scotia/internet-black-widow-breaches-conditions-of-release-1.3531910?cmp=rss</link>
      <guid isPermaLink="false">1.3531910</guid>
      <pubDate>Tue, 12 Apr 2016 13:37:31 EDT</pubDate>
                        <author>Cassie Williams</author>
                                                  <category>News/Canada/Nova Scotia</category>
      <description>
        <![CDATA[
                        <img title='Melissa Ann Shepard has been ordered to report to police any changes in her appearance.' height='259' alt='Melissa Ann Shepard' width='460' src='http://i.cbc.ca/1.3497754.1459794202!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/melissa-ann-shepard.jpg' />                <p>Melissa Ann Shepard, 80, was released from prison last month after serving her full sentence for administering a noxious substance and failing to provide the necessaries of life to her newlywed husband.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.633" cbc:syndicate="true">
      <title><![CDATA[Bathroom battleground: Transgender access a hot topic in U.S. politics]]></title>
            <link>http://www.cbc.ca/news/world/transgender-bathroom-rights-access-united-states-1.3531715?cmp=rss</link>
      <guid isPermaLink="false">1.3531715</guid>
      <pubDate>Tue, 12 Apr 2016 15:38:51 EDT</pubDate>
                        <author>Justin Li</author>
                                      <category>News/World</category>
      <description>
        <![CDATA[
                        <img title='Supporters rally outside the North Carolina State Capitol in Raleigh, N.C., Monday, April 11, 2016, in support of a law that blocks rules allowing transgender people to use the bathroom aligned with their gender identity.' height='259' alt='LGBT Rights' width='460' src='http://i.cbc.ca/1.3531806.1460471498!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/lgbt-rights.jpg' />                <p>Debate over a transgender individual’s rights and access to public bathrooms has recently vaulted into the U.S. national spotlight, where 12 state legislatures have so-called "bathroom bills."</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.636" cbc:syndicate="true">
      <title><![CDATA[House of Commons to hold emergency debate over Attawapiskat suicide attempts]]></title>
            <link>http://www.cbc.ca/news/politics/attawapiskat-suicide-crisis-emergency-debate-1.3531829?cmp=rss</link>
      <guid isPermaLink="false">1.3531829</guid>
      <pubDate>Tue, 12 Apr 2016 11:25:26 EDT</pubDate>
                        <author>Susana Mas</author>
                                      <category>News/Politics</category>
      <description>
        <![CDATA[
                        <img title='' height='259' alt='hi-attawapiskat-852-0170325' width='460' src='http://i.cbc.ca/1.1999947.1460251729!/httpImage/image.jpg_gen/derivatives/16x9_460/hi-attawapiskat-852-0170325.jpg' />                <p>The House of Commons will hold an emergency debate this evening over "the gravity" of the many teen suicide attempts on the First Nation reserve of Attawapiskat. The debate is scheduled to begin at approximately 6:40 p.m. ET and last until midnight.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.637" cbc:syndicate="true">
      <title><![CDATA[Amid real estate 'chaos,' millennials struggle to save home ownership dream]]></title>
            <link>http://www.cbc.ca/news/business/real-estate-house-prices-millennials-1.3514476?cmp=rss</link>
      <guid isPermaLink="false">1.3514476</guid>
      <pubDate>Tue, 12 Apr 2016 05:00:00 EDT</pubDate>
                        <author>Lucas Powers</author>
                                      <category>News/Business</category>
      <description>
        <![CDATA[
                        <img title='' height='259' alt='Jean-Charles Junior Mercedat' width='460' src='http://i.cbc.ca/1.3519087.1459975683!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/jean-charles-junior-mercedat.jpg' />                <p>A new generation of would-be buyers is feeling the pressure to lay down roots before the dream of owning a home in the city — or anywhere near it — is completely out of reach.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.646" cbc:syndicate="true">
      <title><![CDATA[Co-accused's roommate to testify at Tim Bosma murder trial in Hamilton]]></title>
            <link>http://www.cbc.ca/news/canada/hamilton/news/bosma-millard-smich-trial-1.3531522?cmp=rss</link>
      <guid isPermaLink="false">1.3531522</guid>
      <pubDate>Tue, 12 Apr 2016 07:22:10 EDT</pubDate>
                        <author>CBC News</author>
                                                              <category>News/Canada/Hamilton/News</category>
      <description>
        <![CDATA[
                        <img title='' height='259' alt='Tim Bosma' width='460' src='http://i.cbc.ca/1.3405858.1452881475!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/tim-bosma.jpg' />                <p>The roommate of one of the two men accused of killing Hamilton resident Tim Bosma is expected to testify today after the jury was excused Monday so the judge could hear legal arguments.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.633" cbc:syndicate="true">
      <title><![CDATA[When Cubans want internet content, black-market El Paquete delivers]]></title>
            <link>http://www.cbc.ca/news/world/cuba-el-paquete-internet-wifi-havana-1.3527274?cmp=rss</link>
      <guid isPermaLink="false">1.3527274</guid>
      <pubDate>Tue, 12 Apr 2016 05:00:00 EDT</pubDate>
                        <author>Matt Kwong</author>
                                      <category>News/World</category>
      <description>
        <![CDATA[
                        <img title='Havana residents&#39; faces are lit up by the glow of their smartphone screens as they gather on the steps of the Pabellón Cuba in Vedado. The area is a rare WiFi hotspot in a nation lacking open internet access. Many seek digital media through &#39;el paquete,&#39; a weekly delivery of content downloaded onto external hard drives.' height='259' alt='paquete-la-rampa.jpg' width='460' src='http://i.cbc.ca/1.3527370.1460139398!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/paquete-la-rampa-jpg.jpg' />                <p>Cuba's data smugglers run a black market that involves hand-delivering, sharing and spreading chunks of the World Wide Web in weekly bundles. It’s called 'El Paquete,' or the package, and it's a thriving underground trade in a country with little access to the internet.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.633" cbc:syndicate="true">
      <title><![CDATA[Paul Ryan rules out White House bid]]></title>
            <link>http://www.cbc.ca/news/world/paul-ryan-nomination-1.3532290?cmp=rss</link>
      <guid isPermaLink="false">1.3532290</guid>
      <pubDate>Tue, 12 Apr 2016 14:36:29 EDT</pubDate>
                        <author>The Associated Press</author>
                                      <category>News/World</category>
      <description>
        <![CDATA[
                        <img title='U.S. Speaker of the House Paul Ryan delivers a speech in Washington on March 23, 2016. Ryan is expected on Tuesday afternoon to disavow any interest in the presidency this year.' height='259' alt='USA-POLITICS/RYAN' width='460' src='http://i.cbc.ca/1.3532313.1460485043!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/usa-politics-ryan.jpg' />                <p>U.S. House Speaker Paul Ryan gave a speech definitively ruling out a bid for president this year, amid persistent speculation that he could emerge as the nominee from a contested Republican convention.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.652" cbc:syndicate="true">
      <title><![CDATA[Violin stolen from homeless man known for serenading Montreal riders]]></title>
            <link>http://www.cbc.ca/news/canada/montreal/montreal-homeless-man-violin-stolen-metro-1.3532008?cmp=rss</link>
      <guid isPermaLink="false">1.3532008</guid>
      <pubDate>Tue, 12 Apr 2016 13:09:39 EDT</pubDate>
                        <author>CBC News</author>
                                                  <category>News/Canada/Montreal</category>
      <description>
        <![CDATA[
                        <img title='Mark Landry, a frequent busker in Montreal&#39;s Metro system, says his violin was stolen.' height='259' alt='violin' width='460' src='http://i.cbc.ca/1.3532035.1460478418!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/violin.jpg' />                <p>Montrealers — and the city's Orchestre Métropolitain — are reaching out to help a homeless man who says his violin was stolen.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.637" cbc:syndicate="true">
      <title><![CDATA[Don't call it a comeback: IMF expects slower growth for Canada this year and next]]></title>
            <link>http://www.cbc.ca/news/business/imf-canada-forecast-1.3531869?cmp=rss</link>
      <guid isPermaLink="false">1.3531869</guid>
      <pubDate>Tue, 12 Apr 2016 11:46:55 EDT</pubDate>
                        <author>CBC News</author>
                                      <category>News/Business</category>
      <description>
        <![CDATA[
                        <img title='International Monetary Fund managing director Christine Lagarde said she supports a carbon tax or cap and trade system or other mechanism to build in the economic costs of pollution from any energy source.' height='259' alt='Christine Lagarde' width='460' src='http://i.cbc.ca/1.2670964.1460485826!/cpImage/httpImage/image.jpg_gen/derivatives/16x9_460/christine-lagarde.jpg' />                <p>The International Monetary Fund has cut its expectations for how the Canadian economy will perform this year and next.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.638" cbc:syndicate="false">
      <title><![CDATA[Senior official under investigation for alleged negligence in Afghanistan helicopter crash]]></title>
            <link>http://www.cbc.ca/news/canada/helicopter-military-crash-2009-afghanistan-soldiers-killed-1.3530568?cmp=rss</link>
      <guid isPermaLink="false">1.3530568</guid>
      <pubDate>Tue, 12 Apr 2016 05:00:00 EDT</pubDate>
                        <author>Brett Ruskin</author>
                                      <category>News/Canada</category>
      <description>
        <![CDATA[
                        <img title='A helicopter circling overhead captures the moment a CH-146 Griffon bursts into flames after hitting a barrier in Afghanistan in July 2009.' height='259' alt='Griffon crash 2009 ' width='460' src='http://i.cbc.ca/1.3530819.1460407102!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/griffon-crash-2009.jpg' />                <p>At least one senior Royal Canadian Air Force official is under investigation by the military police unit that probes major crimes for alleged negligence relating to a deadly helicopter crash six years ago in Afghanistan.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.637" cbc:syndicate="false">
      <title><![CDATA[While other central bankers struggle, Canada's lucks into some enviable problems: Don Pittis]]></title>
            <link>http://www.cbc.ca/news/business/bank-of-canada-inflation-target-negative-1.3530018?cmp=rss</link>
      <guid isPermaLink="false">1.3530018</guid>
      <pubDate>Tue, 12 Apr 2016 05:00:00 EDT</pubDate>
                        <author>Don Pittis</author>
                                      <category>News/Business</category>
      <description>
        <![CDATA[
                        <img title='Bank of Canada Governor Stephen Poloz with seven-year-old Andrin Lewis earlier this month. Poloz ' height='259' alt='CANADA-POLITICS/' width='460' src='http://i.cbc.ca/1.3530401.1460453031!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/canada-politics.jpg' />                <p>Other central bankers just wish they had Stephen Poloz's problems. Signs of growth and a tightening labour market mean inflation might be around the corner. Don Pittis says the Bank of Canada's biggest worry is how to hang on to its advantages.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.637" cbc:syndicate="true">
      <title><![CDATA[Starbucks customers boiling over rewards program revamp]]></title>
            <link>http://www.cbc.ca/news/business/starbucks-rewards-program-revamped-1.3532215?cmp=rss</link>
      <guid isPermaLink="false">1.3532215</guid>
      <pubDate>Tue, 12 Apr 2016 15:00:12 EDT</pubDate>
                        <author>Sophia Harris</author>
                                      <category>News/Business</category>
      <description>
        <![CDATA[
                        <img title='Starbucks customers will now earn reward stars based on money spent instead of number of transactions. ' height='259' alt='STARBUCKS/' width='460' src='http://i.cbc.ca/1.3199531.1460483685!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/starbucks.jpg' />                <p>Starbucks has revamped its rewards program in both Canada and the U.S. so that people no longer earn rewards based on number of transactions but on how much they spend. That means small spenders may get short-changed.</p>
        ]]>
      </description>
    </item>
    <item cbc:type="story" cbc:deptid="2.637" cbc:syndicate="true">
      <title><![CDATA[Loonie hits nine-month high above 78 cents US]]></title>
            <link>http://www.cbc.ca/news/business/dollar-loonie-1.3531753?cmp=rss</link>
      <guid isPermaLink="false">1.3531753</guid>
      <pubDate>Tue, 12 Apr 2016 12:12:36 EDT</pubDate>
                        <author>CBC News</author>
                                      <category>News/Business</category>
      <description>
        <![CDATA[
                        <img title='A woman holds a "loonie" and "toonie" ($1 and $2 coins) of Canadian currency' height='259' alt='20150304095918_2714_IMG_7008.JPG_183189' width='460' src='http://i.cbc.ca/1.3455284.1455897638!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/20150304095918-2714-img-7008-jpg-183189.jpg' />                <p>Propelled by a big jump in the price for oil, Canada's dollar on Tuesday rose back up to levels not seen since last July.</p>
        ]]>
      </description>
    </item>
  </channel>
</rss>
"""

example_result_from_cbc = {
  "rss": {
    "-xmlns:cbc": "http://www.cbc.ca/rss/cbc",
    "-version": "2.0",
    "channel": {
      "title": "CBC | Top Stories News ",
      "link": "http://www.cbc.ca/news/?cmp=rss",
      "description": "
      
      FOR PERSONAL USE ONLY
      
    ",
      "language": "en-ca",
      "lastBuildDate": "Tue, 12 Apr 2016 15:38:51 EDT",
      "copyright": "Copyright: (C) Canadian Broadcasting Corporation, http://www.cbc.ca/aboutcbc/discover/termsofuse.html#Rss",
      "docs": "http://www.cbc.ca/rss/",
      "image": {
        "title": "CBC.ca",
        "url": "http://www.cbc.ca/rss/image/cbc_144.gif",
        "link": "http://www.cbc.ca/news/?cmp=rss"
      },
      "item": [
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.636",
          "-cbc:syndicate": "false",
          "title": "NDP's left rejects Tom Mulcair as Canada's left embraces Justin Trudeau",
          "link": "http://www.cbc.ca/news/politics/grenier-ndp-liberals-left-1.3530046?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3530046"
          },
          "pubDate": "Tue, 12 Apr 2016 05:00:00 EDT",
          "author": "Éric Grenier",
          "category": "News/Politics",
          "description": "
        
                        <img title='Federal NDP leader Thomas Mulcair makes a speech during the 2016 NDP Federal Convention in Edmonton Alta, on Sunday April 10, 2016.' height='259' alt='NDP CONVENTION 2016 20160410' width='460' src='http://i.cbc.ca/1.3530272.1460394346!/cpImage/httpImage/image.jpg_gen/derivatives/16x9_460/ndp-convention-2016-20160410.jpg' />                <p>If New Democrats embark on a fight for the party’s soul over the course of the upcoming leadership race, they may also need to focus on wooing back the party’s soulmates as well — as polls suggest the party’s core constituencies have moved over to Justin Trudeau’s Liberals.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.641",
          "-cbc:syndicate": "true",
          "title": "RCMP hold regimental funeral and procession for Const. Sarah Beckett",
          "link": "http://www.cbc.ca/news/canada/british-columbia/sarah-beckett-rcmp-regimental-funeral-1.3531674?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531674"
          },
          "pubDate": "Tue, 12 Apr 2016 10:34:21 EDT",
          "author": "CBC News",
          "category": "News/Canada/British Columbia",
          "description": "
        
                        <img title='The RCMP are holding a funeral service for Const. Sarah Beckett in Victoria on April 12, 2016.' height='259' alt='Const Sarah Beckett RCMP 1983-2016' width='460' src='http://i.cbc.ca/1.3530604.1460402511!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/const-sarah-beckett-rcmp-1983-2016.jpg' />                <p>Thousands of people are expected to turn out for the RCMP procession and funeral for Const. Sarah Beckett this afternoon near Victoria.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.656",
          "-cbc:syndicate": "true",
          "title": "Internet Black Widow arrested in Halifax library for going online",
          "link": "http://www.cbc.ca/news/canada/nova-scotia/internet-black-widow-breaches-conditions-of-release-1.3531910?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531910"
          },
          "pubDate": "Tue, 12 Apr 2016 13:37:31 EDT",
          "author": "Cassie Williams",
          "category": "News/Canada/Nova Scotia",
          "description": "
        
                        <img title='Melissa Ann Shepard has been ordered to report to police any changes in her appearance.' height='259' alt='Melissa Ann Shepard' width='460' src='http://i.cbc.ca/1.3497754.1459794202!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/melissa-ann-shepard.jpg' />                <p>Melissa Ann Shepard, 80, was released from prison last month after serving her full sentence for administering a noxious substance and failing to provide the necessaries of life to her newlywed husband.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.633",
          "-cbc:syndicate": "true",
          "title": "Bathroom battleground: Transgender access a hot topic in U.S. politics",
          "link": "http://www.cbc.ca/news/world/transgender-bathroom-rights-access-united-states-1.3531715?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531715"
          },
          "pubDate": "Tue, 12 Apr 2016 15:38:51 EDT",
          "author": "Justin Li",
          "category": "News/World",
          "description": "
        
                        <img title='Supporters rally outside the North Carolina State Capitol in Raleigh, N.C., Monday, April 11, 2016, in support of a law that blocks rules allowing transgender people to use the bathroom aligned with their gender identity.' height='259' alt='LGBT Rights' width='460' src='http://i.cbc.ca/1.3531806.1460471498!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/lgbt-rights.jpg' />                <p>Debate over a transgender individual’s rights and access to public bathrooms has recently vaulted into the U.S. national spotlight, where 12 state legislatures have so-called \"bathroom bills.\"</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.636",
          "-cbc:syndicate": "true",
          "title": "House of Commons to hold emergency debate over Attawapiskat suicide attempts",
          "link": "http://www.cbc.ca/news/politics/attawapiskat-suicide-crisis-emergency-debate-1.3531829?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531829"
          },
          "pubDate": "Tue, 12 Apr 2016 11:25:26 EDT",
          "author": "Susana Mas",
          "category": "News/Politics",
          "description": "
        
                        <img title='' height='259' alt='hi-attawapiskat-852-0170325' width='460' src='http://i.cbc.ca/1.1999947.1460251729!/httpImage/image.jpg_gen/derivatives/16x9_460/hi-attawapiskat-852-0170325.jpg' />                <p>The House of Commons will hold an emergency debate this evening over \"the gravity\" of the many teen suicide attempts on the First Nation reserve of Attawapiskat. The debate is scheduled to begin at approximately 6:40 p.m. ET and last until midnight.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.637",
          "-cbc:syndicate": "true",
          "title": "Amid real estate 'chaos,' millennials struggle to save home ownership dream",
          "link": "http://www.cbc.ca/news/business/real-estate-house-prices-millennials-1.3514476?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3514476"
          },
          "pubDate": "Tue, 12 Apr 2016 05:00:00 EDT",
          "author": "Lucas Powers",
          "category": "News/Business",
          "description": "
        
                        <img title='' height='259' alt='Jean-Charles Junior Mercedat' width='460' src='http://i.cbc.ca/1.3519087.1459975683!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/jean-charles-junior-mercedat.jpg' />                <p>A new generation of would-be buyers is feeling the pressure to lay down roots before the dream of owning a home in the city — or anywhere near it — is completely out of reach.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.646",
          "-cbc:syndicate": "true",
          "title": "Co-accused's roommate to testify at Tim Bosma murder trial in Hamilton",
          "link": "http://www.cbc.ca/news/canada/hamilton/news/bosma-millard-smich-trial-1.3531522?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531522"
          },
          "pubDate": "Tue, 12 Apr 2016 07:22:10 EDT",
          "author": "CBC News",
          "category": "News/Canada/Hamilton/News",
          "description": "
        
                        <img title='' height='259' alt='Tim Bosma' width='460' src='http://i.cbc.ca/1.3405858.1452881475!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/tim-bosma.jpg' />                <p>The roommate of one of the two men accused of killing Hamilton resident Tim Bosma is expected to testify today after the jury was excused Monday so the judge could hear legal arguments.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.633",
          "-cbc:syndicate": "true",
          "title": "When Cubans want internet content, black-market El Paquete delivers",
          "link": "http://www.cbc.ca/news/world/cuba-el-paquete-internet-wifi-havana-1.3527274?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3527274"
          },
          "pubDate": "Tue, 12 Apr 2016 05:00:00 EDT",
          "author": "Matt Kwong",
          "category": "News/World",
          "description": "
        
                        <img title='Havana residents&#39; faces are lit up by the glow of their smartphone screens as they gather on the steps of the Pabellón Cuba in Vedado. The area is a rare WiFi hotspot in a nation lacking open internet access. Many seek digital media through &#39;el paquete,&#39; a weekly delivery of content downloaded onto external hard drives.' height='259' alt='paquete-la-rampa.jpg' width='460' src='http://i.cbc.ca/1.3527370.1460139398!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/paquete-la-rampa-jpg.jpg' />                <p>Cuba's data smugglers run a black market that involves hand-delivering, sharing and spreading chunks of the World Wide Web in weekly bundles. It’s called 'El Paquete,' or the package, and it's a thriving underground trade in a country with little access to the internet.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.633",
          "-cbc:syndicate": "true",
          "title": "Paul Ryan rules out White House bid",
          "link": "http://www.cbc.ca/news/world/paul-ryan-nomination-1.3532290?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3532290"
          },
          "pubDate": "Tue, 12 Apr 2016 14:36:29 EDT",
          "author": "The Associated Press",
          "category": "News/World",
          "description": "
        
                        <img title='U.S. Speaker of the House Paul Ryan delivers a speech in Washington on March 23, 2016. Ryan is expected on Tuesday afternoon to disavow any interest in the presidency this year.' height='259' alt='USA-POLITICS/RYAN' width='460' src='http://i.cbc.ca/1.3532313.1460485043!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/usa-politics-ryan.jpg' />                <p>U.S. House Speaker Paul Ryan gave a speech definitively ruling out a bid for president this year, amid persistent speculation that he could emerge as the nominee from a contested Republican convention.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.652",
          "-cbc:syndicate": "true",
          "title": "Violin stolen from homeless man known for serenading Montreal riders",
          "link": "http://www.cbc.ca/news/canada/montreal/montreal-homeless-man-violin-stolen-metro-1.3532008?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3532008"
          },
          "pubDate": "Tue, 12 Apr 2016 13:09:39 EDT",
          "author": "CBC News",
          "category": "News/Canada/Montreal",
          "description": "
        
                        <img title='Mark Landry, a frequent busker in Montreal&#39;s Metro system, says his violin was stolen.' height='259' alt='violin' width='460' src='http://i.cbc.ca/1.3532035.1460478418!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/violin.jpg' />                <p>Montrealers — and the city's Orchestre Métropolitain — are reaching out to help a homeless man who says his violin was stolen.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.637",
          "-cbc:syndicate": "true",
          "title": "Don't call it a comeback: IMF expects slower growth for Canada this year and next",
          "link": "http://www.cbc.ca/news/business/imf-canada-forecast-1.3531869?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531869"
          },
          "pubDate": "Tue, 12 Apr 2016 11:46:55 EDT",
          "author": "CBC News",
          "category": "News/Business",
          "description": "
        
                        <img title='International Monetary Fund managing director Christine Lagarde said she supports a carbon tax or cap and trade system or other mechanism to build in the economic costs of pollution from any energy source.' height='259' alt='Christine Lagarde' width='460' src='http://i.cbc.ca/1.2670964.1460485826!/cpImage/httpImage/image.jpg_gen/derivatives/16x9_460/christine-lagarde.jpg' />                <p>The International Monetary Fund has cut its expectations for how the Canadian economy will perform this year and next.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.638",
          "-cbc:syndicate": "false",
          "title": "Senior official under investigation for alleged negligence in Afghanistan helicopter crash",
          "link": "http://www.cbc.ca/news/canada/helicopter-military-crash-2009-afghanistan-soldiers-killed-1.3530568?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3530568"
          },
          "pubDate": "Tue, 12 Apr 2016 05:00:00 EDT",
          "author": "Brett Ruskin",
          "category": "News/Canada",
          "description": "
        
                        <img title='A helicopter circling overhead captures the moment a CH-146 Griffon bursts into flames after hitting a barrier in Afghanistan in July 2009.' height='259' alt='Griffon crash 2009 ' width='460' src='http://i.cbc.ca/1.3530819.1460407102!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/griffon-crash-2009.jpg' />                <p>At least one senior Royal Canadian Air Force official is under investigation by the military police unit that probes major crimes for alleged negligence relating to a deadly helicopter crash six years ago in Afghanistan.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.637",
          "-cbc:syndicate": "false",
          "title": "While other central bankers struggle, Canada's lucks into some enviable problems: Don Pittis",
          "link": "http://www.cbc.ca/news/business/bank-of-canada-inflation-target-negative-1.3530018?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3530018"
          },
          "pubDate": "Tue, 12 Apr 2016 05:00:00 EDT",
          "author": "Don Pittis",
          "category": "News/Business",
          "description": "
        
                        <img title='Bank of Canada Governor Stephen Poloz with seven-year-old Andrin Lewis earlier this month. Poloz ' height='259' alt='CANADA-POLITICS/' width='460' src='http://i.cbc.ca/1.3530401.1460453031!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/canada-politics.jpg' />                <p>Other central bankers just wish they had Stephen Poloz's problems. Signs of growth and a tightening labour market mean inflation might be around the corner. Don Pittis says the Bank of Canada's biggest worry is how to hang on to its advantages.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.637",
          "-cbc:syndicate": "true",
          "title": "Starbucks customers boiling over rewards program revamp",
          "link": "http://www.cbc.ca/news/business/starbucks-rewards-program-revamped-1.3532215?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3532215"
          },
          "pubDate": "Tue, 12 Apr 2016 15:00:12 EDT",
          "author": "Sophia Harris",
          "category": "News/Business",
          "description": "
        
                        <img title='Starbucks customers will now earn reward stars based on money spent instead of number of transactions. ' height='259' alt='STARBUCKS/' width='460' src='http://i.cbc.ca/1.3199531.1460483685!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/starbucks.jpg' />                <p>Starbucks has revamped its rewards program in both Canada and the U.S. so that people no longer earn rewards based on number of transactions but on how much they spend. That means small spenders may get short-changed.</p>
        
      "
        },
        {
          "-cbc:type": "story",
          "-cbc:deptid": "2.637",
          "-cbc:syndicate": "true",
          "title": "Loonie hits nine-month high above 78 cents US",
          "link": "http://www.cbc.ca/news/business/dollar-loonie-1.3531753?cmp=rss",
          "guid": {
            "-isPermaLink": "false",
            "#text": "1.3531753"
          },
          "pubDate": "Tue, 12 Apr 2016 12:12:36 EDT",
          "author": "CBC News",
          "category": "News/Business",
          "description": "
        
                        <img title='A woman holds a \"loonie\" and \"toonie\" ($1 and $2 coins) of Canadian currency' height='259' alt='20150304095918_2714_IMG_7008.JPG_183189' width='460' src='http://i.cbc.ca/1.3455284.1455897638!/fileImage/httpImage/image.jpg_gen/derivatives/16x9_460/20150304095918-2714-img-7008-jpg-183189.jpg' />                <p>Propelled by a big jump in the price for oil, Canada's dollar on Tuesday rose back up to levels not seen since last July.</p>
        
      "
        }
      ]
    }
  }
}
