src/Misc/EFTools/XmlCore/Model/Validation/AttributeContentValidator.cs
/// <summary>
///     Determines if a proposed string is valid for the given type in the given namespace.
/// </summary>
/// <param name="proposedString"></param>
/// <param name="xsdTypeName"></param>
/// <param name="nameSpace"></param>
/// <returns></returns>
Determines if a proposed string is valid for the given type in the given namespace.
Determines if a proposed string is valid for the given type in the given namespace .
private bool IsValidStringForSchema(string proposedString, string xsdTypeName, string nameSpace)
        {
            var escapedProposedString = SecurityElement.Escape(proposedString);
            var s = String.Format(
                CultureInfo.InvariantCulture, _tempInstanceDocForValidation, nameSpace, xsdTypeName, escapedProposedString);
            return IsValidXmlDocument(s);
        }
private bool IsValidStringForSchema ( string proposedString , string xsdTypeName , string nameSpace ) { var escapedProposedString = SecurityElement . Escape ( proposedString ) ; var s = String . Format ( CultureInfo . InvariantCulture , _tempInstanceDocForValidation , nameSpace , xsdTypeName , escapedProposedString ) ; return IsValidXmlDocument ( s ) ; }
Determines if a proposed string is valid for the given type in the given namespace.
Determines if a proposed string is valid for the given type in the given namespace .
// Escape the proposed string since if the string contains xml special characters (for example: '<', '>'), the method will always return false regardless the XSD type.
None
proposedString
string
None
xsdTypeName
string
None
nameSpace
string
None