login about faq

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.

asked Jun 28 '12 at 00:04

nomadicus's gravatar image

nomadicus
46335

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×59

Asked: Jun 28 '12 at 00:04

Seen: 1,197 times

Last updated: Jun 28 '12 at 00:04

powered by OSQA