手上难道一堆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> </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%"> </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>
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> </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%"> </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>