how to maintain case of attribute name without changing to lower case in html agility pack
See the question and my original answer on StackOverflowYou can't do this, unless you change the source (the Html Agility Pack is open source, so you're free to go). it's by design, as it was designed to handle HTML, and HTML is case-insensitive.