If the longest value for a string in my DB is
"ABC<DEF"
should the maxLength restriction for this string datatype in the XSD be 7 (pre-encoding) or should it be 10 (post-encoding), i.e.
"ABC<DEF"
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.
Short answer: pre-encoding.
Encoding characters in XML doesn’t affect the “real” length value of the string.
Quick test:
Valid XML 🙂