isValidXmlChar

fnbool isValidXmlChar(dchar c, XmlVersion xmlVersion = XmlVersion.XML_1_0) @safe pure nothrow

Returns true if c is a valid XML character.

Note

This currently enforces the XML 1.0 character range for both XML 1.0 and XML 1.1, which matches

a strict subset of XML 1.1 and avoids treating restricted control characters as directly allowed.

Parameters

cUnicode scalar value.
xmlVersionXML version (currently treated like XML 1.0).

Returns

true if c is considered a valid XML character.