StAX XML Parser not escaping single quote (')

后端 未结 1 1068
萌比男神i
萌比男神i 2021-01-28 08:58

We are using StAX parser to read the large XML files and strip off some of the elements/attributes and write the XML file

The source XML file is valid XML file i.e. have

1条回答
  •  迷失自我
    2021-01-28 09:24

    Single quotes only need to be escaped if they occur in an attribute value enclosed by single quotes. There's not really any reason to escape them otherwise.

    0 讨论(0)
提交回复
热议问题