在xml中转义引号 [英] Escape quote character in xml
本文介绍了在xml中转义引号的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在xml中有一个引号的转义字符吗?我想写一个标签,如:
Is there an escape character for a quote in xml? I want to write a tag like:
<parameter name="Quote = " ">
但如果我把,那就意味着字符串已经结束了。我需要这样的东西(c ++):
but if I put ", then that means string has ended. I need something like this (c++):
printf("Quote = \" ");
是否有一个字符在引用之前写入以避免它?
Is there a character to write before the quote to escape it?
推荐答案
尝试这样:
"
这篇关于在xml中转义引号的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文