79542948

Date: 2025-03-29 08:16:08
Score: 1
Natty:
Report link

In the end I just decided to go with the easiest and for me most flexible option by just ignoring the namespaces in the XML.

public class IgnoreNamespaceXmlTextReader : XmlTextReader
{
    public IgnoreNamespaceXmlTextReader(TextReader reader) : base(reader) { }

    public override string NamespaceURI => string.Empty; // Ignores all namespaces
}

Not saying its the best solution, but for my use I think I can afford to do this.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: JohnnyHavlis