XML encoding

K

kitty

Does XML encoding charset include "curly brackets" as valid characters
?
My version <?xml version="1.0" encoding="UTF-8"?> does not seem to
support curly brackets when I try to read them from the file.
<Id> {2.3434} </Id}
I have tried replacing them with the hexadecimal values also (&#x7B and
&#x7D). I thought it was an issue with Carbon but I would like to know
if I can use curly brackets in XML files.

Thanks in advance for your help.
kitty
 
J

Johannes Koch

kitty said:
Does XML encoding charset include "curly brackets" as valid characters
?
My version <?xml version="1.0" encoding="UTF-8"?> does not seem to
support curly brackets when I try to read them from the file.
<Id> {2.3434} </Id}
I have tried replacing them with the hexadecimal values also (&#x7B and
&#x7D). I thought it was an issue with Carbon but I would like to know
if I can use curly brackets in XML files.

Of course you can. '{' and '}' are pretty basic characters and can be
encoded using a lot of character encoding schemes, UTF-8 being one of
them. So the problem must be somewhere else. BTW, what is the error
message you get?
 
J

Joe Kesselman

kitty said:
Does XML encoding charset include "curly brackets" as valid characters?

Certainly. However, curly braces may have special meaning to some XML
applications; XSLT, for example, uses them to denote "attribute value
template" expressions. So you need to look at the tools you're using as
well as XML itself.
 
K

kitty

Carbon API reads anything within curly brackets as a variable
identifier ! have to use another parser.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,810
Latest member
Kassie0918

Latest Threads

Top