Legal Notice
The opinions expressed herein are my own personal opinions and do not represent my employer’s view in anyway.Top Posts
- C# DateTime to UNIX timestamps
- C# Use HttpClient to GET JSON from API endpoint
- C# get results from Task.WhenAll
- C# Azure Table Storage QueryAsync, Paging and Filtering
- .NET API CORS: Response to preflight request doesn't pass access control check: No 'Access-Control-Allow-Origin' header.NET API
- C# List Batch - Breaking an IEnumerable into batches with .NET
- C# Ignoring Namespaces in XML when Deserializing
Archive
Meta
Tag Archives: XDocument
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
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