Is there a way to include greater than or less than signs in an XML file?

前端 未结 5 590
别跟我提以往
别跟我提以往 2021-01-01 11:52

I have an XML file from a client that has greater than > and less than < signs in it and it fails an XML format check. Is there a way to get

5条回答
  •  情话喂你
    2021-01-01 12:30

    You will have to use XML escape characters:

    " to  "
    ' to  '
    < to  <
    > to  >
    & to  &
    

    Google escaping characters in XML for more information.

提交回复
热议问题