Skip to content

Commit

Permalink
backport of BMECat 2005 reader fix for quirky xml namespaces
Browse files Browse the repository at this point in the history
  • Loading branch information
stephanstapel committed Nov 26, 2023
1 parent 7013eb1 commit bdb7fd1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion BMECat.net/BMECatReader12.cs
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ internal async static Task<ProductCatalog> LoadAsync(Stream inputStream, BMECatE
inputStream.Read(firstPartOfBuffer, 0, 1024);
string firstPartString = System.Text.Encoding.UTF8.GetString(firstPartOfBuffer);

if (!firstPartString.Contains("xmlns"))
if (!firstPartString.Contains("xmlns="))
{
string pattern = "<BMECAT.*?>";
string replacement = @"<BMECAT xmlns=""http://www.bmecat.org/bmecat:bmecat/bmecat:1.2/bmecat:bmecat_new_catalog"" version=""1.2"">";
Expand Down

0 comments on commit bdb7fd1

Please sign in to comment.