What are invalid characters in XML

后端 未结 15 1280
时光说笑
时光说笑 2020-11-22 03:23

I am working with some XML that holds strings like:

This is a string

Some of the strings that I am passing to the

15条回答
  •  无人及你
    2020-11-22 04:06

    For XSL (on really lazy days) I use:

    capture="&(?!amp;)" capturereplace="&"
    

    to translate all &-signs that aren't follwed på amp; to proper ones.

    We have cases where the input is in CDATA but the system which uses the XML doesn't take it into account. It's a sloppy fix, beware...

提交回复
热议问题