i have values with special chars that encoded to ascii in my xml. for example :
<?xml version="1.0" encoding="UTF-8"?>
<response>
<name>Žirmūnų</name>
</response>
but when i parse value name
i get only &
as value.
Is it allowed to use #
or &
in xml? or i have to use cdata necessarily?
Examples of characters include letters, numerical digits, common punctuation marks (such as "." or "-"), and whitespace. The concept also includes control characters, which do not correspond to visible symbols but rather to instructions to format or process the text.
Protagonists = change with the plot (focal point of the story) Main Characters = drive the plot and makes the change happen. Heroes = Who we want to win/succeed.
The & character appears to be illegal, use (below) instead.
&
Invalid Characters in XML
The # character should be OK.
Also this may be useful: http://xml.silmaril.ie/specials.html.
& needs to be escaped as it is used for esaping itself. All escapes start with & ("
, <
, >
).
&
is the escape for &
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With