regular expression to replace an xml attribute

前端 未结 3 434
小蘑菇
小蘑菇 2021-01-14 13:17

I have an xml file of the form:

stuff

There are many propertie

3条回答
  •  无人及你
    2021-01-14 13:25

    You probably don't want to use a regex for manipulating an xml file. Please instead consider xslt, which is aware of xml rules and won't cause your transformed document to become malformed.

提交回复
热议问题