Archived Forum Post

Index of archived forum posts

Question:

xml and trim

Jun 28 '12 at 00:04

Been examining the results of HtmlToXml and Xml and found something unexpected with .LoadXml2 and .LoadXml.

            xmlalt1.LoadXml2(html2xml.ToXml(), false);
            xmlalt2.LoadXml2(html2xml.ToXml(), true);
            xml.LoadXml(html2xml.ToXml());

If I am looking at my results correctly, LoadXml and LoadXml2 w true/auto-trim set are the same. LoadXml2 w false set yields a potentially different output.

I prefer the behavior as it stands. just thought the documentation could clarify this as I took .LoadXml as not having auto-trim.