Highlighting braces in XML

I can not find the answer to this question.

I read that double brackets should help so something like

<node>http://test.com?test={{0}}</node> 

But it is not

+4
source share
3 answers

You do not need to escape the character } . See question for characters that need to be executed in XML format.

+5
source

Sliding brackets should only be escaped when using XSLT internal attributes.

+1
source
  & # 123;  Left curly brace {// --------------> Left Side
 // ------------------------------------------------ --------------- // |
 & # 125;  Right curly brace} // --------------> Right Side

It should be good to save and save for later. I have this saved in .pdf and stored in my iBooks on the phone.

** Ampersand is removed from the code, so it can appear in a line here. The space must be removed between the ampersand and the pound sign for it to work. **

 Code Name Displayed as
 & # 09;  Horizontal tab non-printing
 & #10;  Line feed non-printing
 & #thirteen;  Carriage Return non-printing
 & # 32;  Space non-printing
 & # 33;  Exclamation mark!
 & # 34;  Quotation mark "
 & # 35;  Number sign #
 & # 36;  Dollar sign $
 & # 37;  Percent sign%
 & # 38;  Ampersand &
 & # 39;  Apostrophe '
 & # 40;  Left parenthesis (
 & # 41;  Right parenthesis)
 & # 42;  Asterisk *
 & # 43;  Plus sign.  +
 & # 44;  Comma
 & # 45;  Hyphen -
 & # 46;  Period.
 & # 47;  Slash /
 & # 58;  Colon:
 & # 59;  Semi-colon;
 & # 60;  Less than                   
 & # 63;  Question mark?
 & # 64;  At @
 & # 91;  Left square bracket [
 & # 92;  Bbackslash \
 & # 93;  Right square bracket]
 & # 94;  Caret ^
 & # 95;  Underscore _
 & # 96;  Acute accent '
 & # 123;  Left curly brace {// --------------> Left Side
 & # 124;  Vertical bar |
 & # 125;  Right curly brace} // --------------> Right Side
 & # 126;  Tilde ~


0
source

Source: https://habr.com/ru/post/1307779/


All Articles