XML attribute string lenght maximum

Q

qa4ever

How long in number of characters can a XML attribute be maximum?
E.g. <mystring>how many characters maximum can be here</mystring>

If you answer something like; it can be as long as UTF-8 .
Then I ask, how long can UTF-8 be in charaters?

qa4ever
 
R

Richard Tobin

qa4ever said:
How long in number of characters can a XML attribute be maximum?
E.g. <mystring>how many characters maximum can be here</mystring>

That's not an attribute.

But the answer is the same: XML does not place any limits on string
sizes. An attribute with a trillion characters is legal.

Libraries for accessing XML will inherit limits from their
implementation languages, but you're more likely to run into memory
limits on your computer.

-- Richard
 

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

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top