question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`XmlElementAttribute` Does Not Have 100% Fidelity with Classic Serializer

See original GitHub issue

I seem to be running into an issue deserializing from an XML HTTP GET response. Could someone provide some clarity on how I could resolve this?

Configuration: var serializer = new ConfigurationContainer().EnableImplicitTyping(typeof(Rss)).Create();

Class:

[XmlRoot(ElementName="link", Namespace="http://www.w3.org/2005/Atom")]
	public class Link {
		[XmlAttribute(AttributeName="href")]
		public string Href { get; set; }
		[XmlAttribute(AttributeName="rel")]
		public string Rel { get; set; }
		[XmlAttribute(AttributeName="type")]
		public string Type { get; set; }
	}

	[XmlRoot(ElementName="image")]
	public class Image {
		[XmlElement(ElementName="title")]
		public string Title { get; set; }
		[XmlElement(ElementName="url")]
		public string Url { get; set; }
		[XmlElement(ElementName="link")]
		public string Link2 { get; set; }
	}

	[XmlRoot(ElementName="guid")]
	public class Guid {
		[XmlAttribute(AttributeName="isPermaLink")]
		public string IsPermaLink { get; set; }
		[XmlText]
		public string Text { get; set; }
	}

	[XmlRoot(ElementName="category")]
	public class Category {
		[XmlAttribute(AttributeName="domain")]
		public string Domain { get; set; }
		[XmlText]
		public string Text { get; set; }
	}

	[XmlRoot(ElementName="content", Namespace="http://search.yahoo.com/mrss/")]
	public class Content {
		[XmlElement(ElementName="credit", Namespace="http://search.yahoo.com/mrss/")]
		public string Credit { get; set; }
		[XmlElement(ElementName="description", Namespace="http://search.yahoo.com/mrss/")]
		public string Description { get; set; }
		[XmlAttribute(AttributeName="height")]
		public string Height { get; set; }
		[XmlAttribute(AttributeName="medium")]
		public string Medium { get; set; }
		[XmlAttribute(AttributeName="url")]
		public string Url { get; set; }
		[XmlAttribute(AttributeName="width")]
		public string Width { get; set; }
	}

	[XmlRoot(ElementName="item")]
	public class Item {
		[XmlElement(ElementName="title")]
		public string Title { get; set; }
		[XmlElement(ElementName="link")]
		public string Link2 { get; set; }
		[XmlElement(ElementName="guid")]
		public Guid Guid { get; set; }
		[XmlElement(ElementName="link", Namespace="http://www.w3.org/2005/Atom")]
		public Link Link { get; set; }
		[XmlElement(ElementName="description")]
		public string Description { get; set; }
		[XmlElement(ElementName="creator", Namespace="http://purl.org/dc/elements/1.1/")]
		public string Creator { get; set; }
		[XmlElement(ElementName="pubDate")]
		public string PubDate { get; set; }
		[XmlElement(ElementName="category")]
		public List<Category> Category { get; set; }
		[XmlElement(ElementName="content", Namespace="http://search.yahoo.com/mrss/")]
		public List<Content> Content { get; set; }
	}

	[XmlRoot(ElementName="channel")]
	public class Channel {
		[XmlElement(ElementName="title")]
		public string Title { get; set; }
		[XmlElement(ElementName="link")]
		public List<string> Link { get; set; }
		[XmlElement(ElementName="description")]
		public string Description { get; set; }
		[XmlElement(ElementName="language")]
		public string Language { get; set; }
		[XmlElement(ElementName="copyright")]
		public string Copyright { get; set; }
		[XmlElement(ElementName="lastBuildDate")]
		public string LastBuildDate { get; set; }
		[XmlElement(ElementName="pubDate")]
		public string PubDate { get; set; }
		[XmlElement(ElementName="image")]
		public Image Image { get; set; }
		[XmlElement(ElementName="item")]
		public List<Item> Item { get; set; }
	}

	[XmlRoot(ElementName="rss")]
	public class Rss {
		[XmlElement(ElementName="channel")]
		public Channel Channel { get; set; }
		[XmlAttribute(AttributeName="dc", Namespace="http://www.w3.org/2000/xmlns/")]
		public string Dc { get; set; }
		[XmlAttribute(AttributeName="media", Namespace="http://www.w3.org/2000/xmlns/")]
		public string Media { get; set; }
		[XmlAttribute(AttributeName="atom", Namespace="http://www.w3.org/2000/xmlns/")]
		public string Atom { get; set; }
		[XmlAttribute(AttributeName="nyt", Namespace="http://www.w3.org/2000/xmlns/")]
		public string Nyt { get; set; }
		[XmlAttribute(AttributeName="version")]
		public string Version { get; set; }
	}

XML Content:

<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:nyt="http://www.nytimes.com/namespaces/rss/2.0" version="2.0">
  <channel>
    <title>NYT &gt; Business</title>
    <link>https://www.nytimes.com/section/business</link>
    <atom:link href="https://co.nytimes.com/hamilton/business.xml" rel="self" type="application/rss+xml"></atom:link>
    <description></description>
    <language>en-us</language>
    <copyright>Copyright 2020 The New York Times Company</copyright>
    <lastBuildDate>Tue, 06 Oct 2020 18:33:05 +0000</lastBuildDate>
    <pubDate>Tue, 06 Oct 2020 18:33:05 +0000</pubDate>
    <image>
      <title>NYT &gt; Business</title>
      <url>https://static01.nyt.com/images/misc/NYT_logo_rss_250x40.png</url>
      <link>https://www.nytimes.com/section/business</link>
    </image>
    <item>
      <title>Lumberjack, Tailor, Counselor, Host: A Hotel Owner Does It All During the Pandemic</title>
      <link>https://www.nytimes.com/2020/10/06/business/hotel-small-business-coronavirus-pandemic.html</link>
      <guid isPermaLink="true">https://www.nytimes.com/2020/10/06/business/hotel-small-business-coronavirus-pandemic.html</guid>
      <atom:link href="https://www.nytimes.com/2020/10/06/business/hotel-small-business-coronavirus-pandemic.html" rel="standout"></atom:link>
      <description>&lt;p&gt;Since the pandemic began, Montu Patel has learned how to sew masks and fight with Wall Street lenders. He has helped draft pleas for relief to state and local officials on behalf of small business owners. He knows how to fashion plexiglass.&lt;/p&gt;&lt;p&gt;As the head of a small business, Mr. Patel, whose family owns eight budget hotel franchises, was used to wearing multiple hats. But since March, when the long-haul drivers, families on road trips and business travelers who made up most of his clientele stopped checking in, forcing him to lay off workers and hunt for cash, Mr. Patel has become a one-man army battling for the survival of his business. Its death would be no less than the extinguishing of an American dream.&lt;/p&gt;&lt;p&gt;One August morning, before meeting with a loan officer who he had to convince that the hotel industry had a rosy future, Mr. Patel had to hack down a tree that had fallen across the parking lot of one of his properties.&lt;/p&gt;&lt;p&gt;The hotels are Mr. Patel’s whole life. The son of Indian immigrants, he grew up in and around an Econolodge hotel that his family owned and operated in Bordentown, N.J. He studied real estate in graduate school, knowing he would eventually take over the business from his father.&lt;/p&gt;&lt;p&gt;“My parents came to this country with nothing in their pockets,” Mr. Patel, 43, said. “Everything that we’ve accumulated since then has been gravy.”&lt;/p&gt;&lt;p&gt;Mr. Patel has managed his hotels through tragedy and growth. Two years ago, his sister, who was the business’s finance chief, died of a brain tumor. Last year, Mr. Patel bought four new properties, and now the family runs three Hamptons Inns, two Comfort Inns, two Holiday Inn Expresses and one Days Inn, licensing the popular names from big hotel companies.&lt;/p&gt;&lt;p&gt;The pandemic has forced thousands of small business owners to close shop permanently. Those that have survived, like Mr. Patel’s, have had to readjust and recalibrate constantly, as their owners cling to the hope that things will improve. But a widely available vaccine is at least a year away, there is no guarantee of fresh federal aid weeks before the presidential election and the virus still spreading.&lt;/p&gt;&lt;p&gt;“As long as the pandemic subsides next year, we will be in good shape to start replenishing our savings, digging ourselves out of the hole we’re in,” Mr. Patel said.&lt;/p&gt;&lt;p&gt;Soon after the coronavirus outbreak began, Maryland, Virginia, Pennsylvania and New Jersey — the states where Mr. Patel has his hotels — instituted lockdowns. Mr. Patel watched helplessly as business plummeted. Occupancy fell by 90 percent. But he and his staff were kept busy by new types of guests.&lt;/p&gt;&lt;p&gt;In Maryland, the state’s health department took over a floor of Mr. Patel’s Hampton Inn in Salisbury and put up homeless people who had contracted the virus. One May morning, the state police came to the hotel, followed by funeral home workers. A guest had died.&lt;/p&gt;&lt;p&gt;At Mr. Patel’s Holiday Inn Express near the Baltimore/Washington Thurgood Marshall Airport, crews from a Russian air cargo company, Volga-Dnepr Airlines, began checking in at regular intervals. They were flying masks, gloves and other protective gear from Russia to help overcome a sudden shortage in the United States.&lt;/p&gt;&lt;p&gt;In Hershey, Pa., where the Patel family owns another Hampton Inn, an emergency room doctor brought in to help handle Covid-19 cases at Hershey Medical Center was, for a time, the only guest. The doctor asked that hotel staff stay away from his room.&lt;/p&gt;&lt;p&gt;Operating the hotels required adjustments. Elevator buttons had to be cleaned hourly, and electronic key cards had to be sanitized each time they were returned. Front desks required plexiglass screens. Trays and equipment for meals served buffet-style — a common feature of budget hotels — were removed. Gyms were shut; pools were closed.&lt;/p&gt;&lt;p&gt;Any time Mr. Patel had a particularly good idea for how to do something, he shared it on one of several WhatsApp groups that hotel owners had formed to commiserate and swap advice. “I feel like we are driving down the interstate trying to avoid one fiery crash after another,” a group member wrote. “If you lost money in 2018, 2019 or 2020, carry back those losses up to five years,” wrote another, describing ways to lower federal tax bills. “More little-known benefits coming.”&lt;/p&gt;&lt;p&gt;Mr. Patel shored up his hotels’ finances. Between April and August, he drew roughly $500,000 from a pool of cash contributions made by friends and family. He secured forgivable loans of about $150,000 per hotel through the federal government’s $650 billion Paycheck Protection Program for small businesses, which he used to pay employees through the early stretch of the lockdowns.&lt;/p&gt;&lt;p&gt;With few guests, Mr. Patel assigned some of his staff to deep-cleaning jobs. Still, he furloughed around 225 people, or about 75 percent of his work force. (He has now asked almost everyone to come back, but some have chosen not to, he said.) He tried to upgrade the properties, but it became harder to do as supply chains faltered. LED vanity mirrors and faucets were back-ordered. He also struggled in the spring to find a reliable supply of masks and hand sanitizer, which the hotel chains overseeing his properties required him to provide free to every guest. Supplies were easier to get as the summer progressed, but it was still hard to pay for them.&lt;/p&gt;&lt;p&gt;“When you’re renting rooms at a steeply discounted rate and still trying to offer all of these additional things, it’s either a very thin profit or not profitable at all,” Mr. Patel said. He added that some of the hotel companies’ requirements had started to seem unreasonable. “They can come up with any rules for the franchisee that they want, and they don’t have to worry about fulfilling them,” he said. “They’re not part of our hardship at all.”&lt;/p&gt;&lt;p&gt;Mr. Patel has pleaded with government officials for help, especially for his property in Hershey, a town once popular with tourists. In late August, he attended a county commissioners’ meeting in Harrisburg, Pa., seeking relief for himself and other local businesses on property taxes. The commissioners said there was nothing they could do.&lt;/p&gt;&lt;p&gt;Over time, having fewer guests created fresh peril with lenders. Rather than take out a traditional bank loan for his Hershey property, Mr. Patel had borrowed from Wall Street, attracted by terms that did not allow for the seizure of his personal assets in case of a default. It turned into a nightmare. The commercial mortgage-backed securities loan was controlled by a contract with &lt;a href=&#34;https://www.nytimes.com/2020/05/15/business/small-business-coronavirus-loans.html&#34;&gt;onerous terms&lt;/a&gt; that were almost impossible to change.&lt;/p&gt;&lt;p&gt;Mr. Patel worried that if he fell behind on payments, the property could be seized by investors who held the bonds that his loan was packaged into. In June, desperate for help, he visited the Federal Reserve’s website and read about a program that the central bank had revived — the Term Asset-Backed Securities Loan Facility, or TALF — to prop up the financial markets.&lt;/p&gt;&lt;p&gt;When he saw that the program, created during the 2008 financial crisis, was meant “to support the flow of credit to consumers and businesses,” he wondered: Could that help him get short-term relief on the Hershey loan? No, as it turned out; TALF was designed to help bondholders by lending them money in exchange for bonds like the one linked to the Hershey property as collateral, but it offered no relief to the actual borrowers.&lt;/p&gt;&lt;p&gt;Mr. Patel worries that he may lose the Hershey property. He has set aside $200,000, taken from his company’s other holdings, to pay the $60,000 monthly shortfall he expects to face starting in November, for four months. After that, only another round of aid from the government could keep the property afloat. He is also finding it harder to deal with traditional banks, which typically have more straightforward loan terms but became stricter during the pandemic about negotiating changes to existing loans and even with disbursing what they have already agreed to lend.&lt;/p&gt;&lt;p&gt;In early August, Mr. Patel’s biggest lender asked him for a 12-month “pro forma,” a detailed estimate for how his business would perform over the next year, a monumental request considering how uncertain the future remains. On the morning he had to make a bullish case to the loan officer about the hotel business, the dissipating winds of hurricane Isaias had knocked down the tree in his Hampton Inn parking lot in New Jersey, forcing him to grab a chain saw.&lt;/p&gt;&lt;p&gt;His daily routine has changed, too. He used to reach for his phone while still in bed each morning and scroll through spreadsheets that showed the daily activity at each hotel. But there was little point in doing so after the lockdowns slashed occupancy.&lt;/p&gt;&lt;p&gt;“If I were to calculate all the money that we’re losing, I think I would become unable to just do and see the strategy ahead,” he said.&lt;/p&gt;&lt;p&gt;These days, he often spends hours every day on the phone talking to employees who can’t make it back to work because of child care conflicts or transportation problems. He strategizes about how to help them pay for transportation and their families’ care. He has also found more time to spend with his wife and three children, his parents and members of his extended family who help run the business.&lt;/p&gt;&lt;p&gt;When a vice president in the company started sewing masks in April, Mr. Patel, his wife and his parents joined her in the effort. They kept some of the masks they made for personal use and donated the rest to a hospital. And Mr. Patel picked up a new skill: “I learned how to sew.”&lt;/p&gt;</description>
      <dc:creator>Emily Flitter</dc:creator>
      <pubDate>Tue, 06 Oct 2020 17:51:56 +0000</pubDate>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Small Business</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Hotels and Travel Lodgings</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Coronavirus (2019-nCoV)</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Federal Aid (US)</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Credit and Debt</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Coronavirus Aid, Relief, and Economic Security Act (2020)</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/nyt_per">montu patel</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Travel and Vacations</category>
      <media:content height="549" medium="image" url="https://static01.nyt.com/images/2020/10/06/business/06virus-hotelowner2/06virus-hotelowner2-facebookJumbo.jpg" width="1050">
        <media:credit>Hannah Yoon for The New York Times</media:credit>
        <media:description>“My parents came to this country with nothing in their pockets,” said Montu Patel. He and his family own and operate eight hotels struggling to survive the pandemic. “Everything that we’ve accumulated since then has been gravy.”</media:description>
      </media:content>
      <media:content height="549" medium="image" url="https://static01.nyt.com/images/2020/10/06/business/06virus-hotelowner5/06virus-hotelowner5-facebookJumbo.jpg" width="1050">
        <media:credit>Hannah Yoon for The New York Times</media:credit>
        <media:description>From left, Yasir Fahmy, front desk supervisor at the Clinton Hampton Inn, uses hand sanitizer while serving guest Nita Shinn.</media:description>
      </media:content>
    </item>
    <item>
      <title>Jerome Powell, Fed Chair, Says Economy Has &#39;a Long Way to Go&#39;</title>
      <link>https://www.nytimes.com/2020/10/06/business/economy/jerome-powell-economic-recovery-coronavirus.html</link>
      <guid isPermaLink="true">https://www.nytimes.com/2020/10/06/business/economy/jerome-powell-economic-recovery-coronavirus.html</guid>
      <atom:link href="https://www.nytimes.com/2020/10/06/business/economy/jerome-powell-economic-recovery-coronavirus.html" rel="standout"></atom:link>
      <description>&lt;p&gt;WASHINGTON — Jerome H. Powell, the Federal Reserve chair, delivered a blunt message to Congress and the White House on Tuesday: Faced with a once-in-a-century pandemic that has inflicted economic pain on millions of households, go big.&lt;/p&gt;&lt;p&gt;“Too little support would lead to a weak recovery, creating unnecessary hardship for households and businesses,” Mr. Powell said in remarks before the National Association for Business Economics.&lt;/p&gt;&lt;p&gt;“Over time, household insolvencies and business bankruptcies would rise, harming the productive capacity of the economy and holding back wage growth,” he said. “By contrast, the risks of overdoing it seem, for now, to be smaller.”&lt;/p&gt;&lt;p&gt;Nearly seven months into the pandemic, millions of Americans remain unemployed as the coronavirus keeps many service industries operating below capacity. The &lt;a href=&#34;https://www.nytimes.com/2020/10/02/business/economy/september-jobs-report.html&#34;&gt;unemployment rate&lt;/a&gt; has fallen more rapidly than many economists expected, dropping to 7.9 percent in September, and consumer spending is holding up. But Mr. Powell again highlighted that the economy’s resilience owed substantially to strong government assistance that has been provided to households and businesses.&lt;/p&gt;&lt;p&gt;That included direct payments to families, forgivable loans to small businesses and an extra $600 per week in unemployment benefits, which Mr. Powell said had “muted the normal recessionary dynamics that occur in a downturn,” like a hit to spending that causes additional layoffs.&lt;/p&gt;&lt;p&gt;But that assistance has since run dry, putting what Mr. Powell called an “incomplete recovery” at risk without the government pumping more money into the economy.&lt;/p&gt;&lt;p&gt;“There is still a long way to go,” he said regarding jobs, adding that “there is likely to be a need for further support” given “many will undergo extended periods of unemployment.”&lt;/p&gt;&lt;p&gt;The comments were a clear signal that the Fed remained worried about the economy’s ability to continue its rebound without more government spending to prop up struggling households and businesses. One big risk, Mr. Powell noted, was that prolonged economic weakness could perpetuate job losses that have weighed most heavily on women, people of color and low-wage workers.&lt;/p&gt;&lt;p&gt;“A long period of unnecessarily slow progress could continue to exacerbate existing disparities in our economy,” he said. “That would be tragic, especially in light of our country’s progress on these issues in the years leading up to the pandemic.”&lt;/p&gt;&lt;p&gt;Ernie Tedeschi, a policy economist at Evercore ISI, said that while Mr. Powell had made similar statements in the past, “this was more urgent.”&lt;/p&gt;&lt;p&gt;“I get the sense that he is getting worried that if we don’t have another fiscal package, that the recovery we’ve had may be in jeopardy,” Mr. Tedeschi said.&lt;/p&gt;&lt;p&gt;Mr. Powell has become an important influence for members of Congress during the pandemic recession, pushing for continued economic support and emphasizing that concerns about whether the government is taking on too much debt can wait until the crisis has passed. Speaker Nancy Pelosi of California and Representative Richard E. Neal of Massachusetts, &lt;a href=&#34;https://www.nytimes.com/2020/09/24/us/politics/hosue-democrats-stimulus-coronavirus.html&#34;&gt;are among the Democrats who have cited his advice&lt;/a&gt; when discussing their efforts to pass more stimulus.&lt;/p&gt;&lt;p&gt;Yet despite Mr. Powell’s increasingly frequent calls for sustained government help, lawmakers have been &lt;a href=&#34;https://www.nytimes.com/live/2020/10/05/business/stock-market-today-coronavirus/nancy-pelosi-and-steven-mnuchin-are-still-trying-to-reach-a-stimulus-deal&#34;&gt;unable to reach agreement&lt;/a&gt; on additional aid for out-of-work families, struggling local governments and hard-hit businesses, including &lt;a href=&#34;https://www.nytimes.com/2020/10/01/business/airline-furloughs-coronavirus-united-american.html&#34;&gt;airlines&lt;/a&gt;. House Democrats passed a $2.2 trillion stimulus plan last week, but the White House and Republicans have rejected that price tag as too big.&lt;/p&gt;&lt;p&gt;Top Trump administration officials have played down the need for another big fiscal package by pointing to the falling unemployment rate as a sign that the economy is experiencing a rapid rebound. And many Republican lawmakers have begun publicly fretting about the ballooning federal deficit, which is &lt;a href=&#34;https://www.cbo.gov/publication/56517#:~:text=in%20the%20series.-,Deficits,the%20shortfall%20recorded%20in%202019.&amp;text=At%2016.0%20percent%20of%20gross,be%208.6%20percent%20of%20GDP.&#34;&gt;expected to top $3 trillion&lt;/a&gt; this year.&lt;/p&gt;&lt;p&gt;The Fed chair did not weigh in on what sort of package was appropriate. But Mr. Powell, who has a long track record of worrying about the federal debt, has tried to convince lawmakers that “this is not the time to give priority to those concerns.”&lt;/p&gt;&lt;p&gt;Instead, he has reiterated time and again the importance of returning the economy to full strength, and that both the Fed and Congress need to continue to provide help.&lt;/p&gt;&lt;p&gt;“This will be the work of all of government,” Mr. Powell said. “The recovery will be stronger and move faster if monetary policy and fiscal policy continue to work side by side to provide support to the economy until it is clearly out of the woods.”&lt;/p&gt;&lt;p&gt;But Mr. Powell, along with many of his Fed colleagues, has also made clear that monetary and fiscal policy can only do so much to buttress the economy and that the recovery will be determined in large part by the path of the virus.&lt;/p&gt;&lt;p&gt;Mr. Powell, whose institution is set up to operate independently of the White House, was unambiguous in recommending a solution, one that contrasts with the message and example that has at times been held out by the Trump administration.&lt;/p&gt;&lt;p&gt;“We should continue do what we can to manage downside risks to the outlook,” Mr. Powell said, adding that doing so required “following medical experts’ guidance, including using masks and social-distancing measures.”&lt;/p&gt;&lt;p&gt;One of his colleagues was more blunt — and more worried.&lt;/p&gt;&lt;p&gt;“Because of the United States’s inability to control the virus, we’ve experienced approximately 21 percent of the world’s deaths, despite housing only about 4 percent of the world’s population,” Patrick T. Harker, the president of the Federal Reserve Bank of Philadelphia, said in a separate speech on Tuesday.&lt;/p&gt;&lt;p&gt;The virus is &lt;a href=&#34;https://www.nytimes.com/2020/10/03/us/coronavirus-united-states.html&#34;&gt;still circulating&lt;/a&gt; even as cases come down in some places, Mr. Harker said, and “in recent days, we’ve even seen alarming spikes in other areas, like &lt;a href=&#34;https://www.nytimes.com/2020/10/04/nyregion/nyc-covid-shutdown-zip-codes.html&#34;&gt;New York City&lt;/a&gt;, that we had hoped had permanently suppressed their infection rates.”&lt;/p&gt;&lt;p&gt;The Fed itself has gone to great lengths to support the economy, cutting interest rates to near-zero in March, rolling out a large bond-buying program and setting up emergency lending efforts, many of them backed by Treasury Department funding.&lt;/p&gt;&lt;p&gt;While the Fed invoked its emergency powers in the 2008 recession, it has gone even further this time, buying municipal debt and corporate bonds to shore up key markets.&lt;/p&gt;&lt;p&gt;Mr. Powell said he did not regret rolling out those programs, which had never been tried before and have faced criticism from lawmakers and watchdog groups.&lt;/p&gt;&lt;p&gt;Some argue that the &lt;a href=&#34;https://www.nytimes.com/2020/06/03/business/economy/fed-expands-municipal-bond-program.html&#34;&gt;state and local government program&lt;/a&gt; isn’t generous enough. Others insist that the &lt;a href=&#34;https://www.nytimes.com/2020/05/12/business/economy/fed-corporate-debt-coronavirus.html&#34;&gt;corporate program&lt;/a&gt; should come with more strings — like employee retention requirements. Such restrictions would have been difficult or impossible to carry out in the Fed’s current corporate bond program.&lt;/p&gt;&lt;p&gt;“I don’t know how I would have been able to explain to the public that we didn’t go to the limit of what we can do,” Mr. Powell said during a question-and-answer session after his remarks. “History will judge how well we did.”&lt;/p&gt;</description>
      <dc:creator>Jeanna Smialek</dc:creator>
      <pubDate>Tue, 06 Oct 2020 18:30:36 +0000</pubDate>
      <category domain="http://www.nytimes.com/namespaces/keywords/nyt_per">Powell, Jerome H</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/nyt_org">Federal Reserve System</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">United States Economy</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Stimulus (Economic)</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Coronavirus Aid, Relief, and Economic Security Act (2020)</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Coronavirus (2019-nCoV)</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Unemployment</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Unemployment Insurance</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">Recession and Depression</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/des">United States Politics and Government</category>
      <category domain="http://www.nytimes.com/namespaces/keywords/nyt_per">Trump, Donald J</category>
      <media:content height="550" medium="image" url="https://static01.nyt.com/images/2020/09/22/business/06DC-Powell-01/22markets-brf-powell1-facebookJumbo.jpg" width="1050">
        <media:credit>Pool photo by Caroline Brehman</media:credit>
        <media:description>Jerome H. Powell, the Federal Reserve chair, has called the economic recovery “incomplete” and argued that more government help was needed.</media:description>
      </media:content>
    </item>
  </channel>
</rss>

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakecodescommented, Oct 10, 2020

Thank you for writing in with this, @blakecodes. I took a look at this, and while we do have some basic support for classic serialization scenarios, there appears to be a problem here with how we’re interpreting the List<T> member definitions. As a more specific example, the Channel.Link member from your provided model is of type List<string> and that is throwing us for a loop.

ExtendedXmlSerializer works best when deserializing a document that was serialized by ExtendedXmlSerializer. You can read more behind this here from our wiki:

https://github.com/ExtendedXmlSerializer/home/wiki/FAQs#systemxmlserializer-vs-extendedxmlserializer

If you are adventurous enough, my recommendation would be to use XSLT and run the RSS document through it, producing the resulting document that ExtendedXmlSeializer would work better at deserializing.

Otherwise, as per #383 since this falls outside of the primary use scenario I unfortunately will not have time to look into this further. However, if someone would like to submit a PR to address this I would be more than happy to collaborate towards a commit. 👍

GitHub**ExtendedXmlSerializer/home**A configurable and eXtensible Xml serializer for .NET. - ExtendedXmlSerializer/home

Thanks @Mike-E-angelo, I’ll take a look to see if I can create a fix for it. We’ve got a few use cases for a deserializer and this seems to be closest to what we want to use.

<div> GitHub</div><div>ExtendedXmlSerializer/home</div><div>A configurable and eXtensible Xml serializer for .NET. - ExtendedXmlSerializer/home</div>
0reactions
Mike-E-angelocommented, Feb 23, 2021

There hasn’t been much activity here, so will be closing for now. If something does change please feel free to leave a comment here and we’ll take it from there. 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

XmlSerializer doesn't fill the XmlElementAttribute ...
I have a suspection the XmlSerializer can't properly resolve what is the "message" - an array item or an element containing the string...
Read more >
Technical Articles | Bryan Soliman Blog - WordPress.com
XML serialization serializes only public properties and fields and does not preserve type fidelity. This is useful when you want to provide ...
Read more >
Applied XML Programming for Microsoft .NET
These and other samples will get you on your way to XML in the . ... NET Framework also provides for XML object...
Read more >
Bryan Soliman Blog | Technical Articles
Hash Table − It is possible to serialize a Hash Table in WCF, but this is not the case in a web service....
Read more >
Chapter 20. PowerShell and XML: better together
Although my purpose here has been to show you how to read and use data in XML files, let's not pass up an...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found