Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# HttpClient POST or PUT Json with content type application/json
- C# get results from Task.WhenAll
- Run tasks in parallel using .NET Core, C# and async coding
- C# Get expiry timestamp from JWT token
- Using C# HttpClient from Sync and Async code
- Creating dynamic arrays and lists using Dynamic and ExpandoObject in C#
- C# Remove Duplicates from List with LINQ
Archive
Meta
Tag Archives: Google Product Feed
C# Working with Namespaces in XDocument and XML
XDocument is your old XML friend in C#, and it allows you to create or manipulate XML documents. To work with namespaces, you must use the XNamespace class. This is an imaginary XML document (a Google Merchant Feed formatted one) … Continue reading
Posted in .net, .NET Core, c#, General .NET
Tagged Google Merchant Data, Google Product Feed, Namespace, XDocument, XML
Leave a comment
Manipulating XML Google Merchant Data using C# and LINQ
Receiving a Google Merchant Data feed (also known as a Google Product Feed) can be fairly easily manipulated on import time using a little C# and LINQ. The feed is basically a XML RSS 2.0 feed with some added properties … Continue reading
Posted in .net, .NET Core, c#, General .NET
Tagged c#, Google Merchant Data, Google Product Feed, LINQ, RSS 2.0, XML
1 Comment
Remove duplicates from XML feed
Apparently XML isn’t dead yet, and today I received a Google Product Feed in the RSS 2.0 XML format. The feed was full of duplicates and my job is to remove them: As you can see, “Product 100” appears twice. … Continue reading
Posted in .net, .NET Core, c#, General .NET
Tagged Google Product Feed, LINQ, RSS 2.0, XDocument, XML
1 Comment