This method will return the length of types that can be bound
by a size constraint (BIT STRING, OCTET STRING, character string,
and SEQUENCE OF/SET OF).
This method will convert the given string value into XML character
content by escaping special characters in the sting such as
ampersand (&), left angle bracket (<), etc..