I don't want the attribute name's case to change to lower case.
Attribute names converted to lowercase when I loaded XML into HTMLAgility Pack, as seen below.
<Author affiliationids="Aff1" correspondingaffiliationid="Aff1">
I need results like these
<Author AffiliationIDS="Aff1" CorrespondingAffiliationID="Aff1">
Unless you edit the source, which is not possible since the HTML Agility Pack is an open source project. Since HTML is case-insensitive and was intended to handle HTML, it is by design.
Now that it has been officially fixed, vowed to be included to the next release
For the time being, you may build it yourself from the download source.
Use: to avoid using lowercase for any attribute.
HtmlDocument document = new HtmlAgilityPack.HtmlDocument(); document.OptionOutputOriginalCase = true;