Is there a standard for the maximum number of characters allowed in an XML attribute?
I tried researching W3C consortium and couldn’t find anything on the character limit aside from some notes on escaping special characters.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I don’t believe there is a character limit per the XML specification, but the Best Practice is to keep attribute values short.
If an attribute value grows long…chances are that it should be an element of its own rather than an attribute on another element.