跳至內容
選單
此問題已被標幟
1 回覆
276 瀏覽次數

Hi everybody!!!

Please how to put the '&' caracter in an xml view please.

Because when i put it, i have automatically an xml errir.

Who can help please??


頭像
捨棄
最佳答案

Hi Abdelwahed,

By default illegal characters are &, < and > (as well as " or ' in attributes) in XML. So you will have to change them to XML entities. Try with this:

&

This will encode the "&" to XML entities for you. You can find more about encoding here: https://en.wikipedia.org/wiki/List_of_XML_and_HTML_character_entity_references

頭像
捨棄
作者

Thanks a lot. It works fine :)

相關帖文 回覆 瀏覽次數 活動
0
3月 25
1440
0
1月 25
3569
1
8月 23
14919
1
8月 23
13583
1
7月 23
10550