c#开发旅程

收集了所有我自己开发历程使用到过的所有点点滴滴 可能有时引用了他人的文章而没有注明请见谅

博客园 首页 联系 订阅 管理
手上难道一堆XML文件,拿来给网站做数据源的。发现格式有些要改。
XML文档里有很多<Span>XXX</>的标签。要删除掉但标签里的内容要保留。
能有谁写个程序做批处理么。手动删除工作量太大了。眼睛都看花了。
SOS啊
把这个个
<body><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">VIP Club is designed to enhance our frequent guest’s experiences of more personalized services by Nanyuan hotel and its subsidiary hotels.</SPAN></P><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN>&nbsp;</P><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%"><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">We will pay more attention to your every need and personal preferences. Our ultimate goal is to achieve your satisfaction beyond your expectations.</SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN></P></SPAN><SPAN style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"></SPAN></body>

要改成
<body><font face="Verdana"><P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">VIP Club is designed to enhance our frequent guest’s experiences of more personalized services by Nanyuan hotel and its subsidiary hotels.</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">&nbsp;</P>
<P class=MsoNormal style="MARGIN: 0cm 0cm 0pt; LINE-HEIGHT: 150%">We will pay more attention to your every need and personal preferences. Our ultimate goal is to achieve your satisfaction beyond your expectations.</P></font></body>

posted on 2006-10-13 12:39  Kinbor  阅读(355)  评论(4编辑  收藏  举报