GetXml method adds extra slash to element data
I have a column whose data contains slashes to denote UNC paths.

When calling GetXml on a dataset that contains this data, for example:
Item Test\ABC123

When the output is rendered an extra slash is added:
Item Test\\\\ABC123

I've tried string replacements but they don't work (I understand they are immutable and I am using separate variables). 

    
            string returnXml = string.Empty;

            if (ds.Tables.Count > 0)
            {
                ds.Namespace = "http://mynamespacehere";
                returnXml = ds.GetXml().Replace(@"\\", @"\");
             
            }
    return returnXml;

The double slashes persist and are causing issues with another application further downstream. How can I remove these reliably?

Thanks.


GetXml method adds extra slash to element data
===

I have a column whose data contains slashes to denote UNC paths.

When calling GetXml on a dataset that contains this data, for example:
Item Test\ABC123

When the output is rendered an extra slash is added:
Item Test\\\\ABC123

I've tried string replacements but they don't work (I understand they are immutable and I am using separate variables). 

    
            string returnXml = string.Empty;

            if (ds.Tables.Count > 0)
            {
                ds.Namespace = "http://mynamespacehere";
                returnXml = ds.GetXml().Replace(@"\\", @"\");
             
            }
    return returnXml;

The double slashes persist and are causing issues with another application further downstream. How can I remove these reliably?

Thanks.

