如何保持属性名称的大小写而不更改为html敏捷包中的小写 [英] how to maintain case of attribute name without changing to lower case in html agility pack

查看:111
本文介绍了如何保持属性名称的大小写而不更改为html敏捷包中的小写的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想保持属性名称的大小写而不更改为小写

i want to maintain case of attribute name without changing to lower case

当我在HTMLAgility Pack中将xml加载为xml时,属性名称变为小写

when i load xml in HTMLAgility pack attribute name changed into lowercase like this

<作者affiliationids ="Aff1"对应的affiliationid ="Aff1"> 我想要这样的输出

<作者身份AffiliationIDS ="Aff1" CorrespondingAffiliationID ="Aff1">

推荐答案

您不能执行此操作,除非您更改源(Html Agility Pack是开源的,因此您可以自由使用).这是设计使然,因为它是为处理HTML而设计的,并且HTML不区分大小写.

You 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.

这篇关于如何保持属性名称的大小写而不更改为html敏捷包中的小写的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆