py_serializable.xml =================== .. py:module:: py_serializable.xml .. autoapi-nested-parse:: XML-specific functionality. Functions --------- .. autoapisummary:: py_serializable.xml.xs_normalizedString py_serializable.xml.xs_token Module Contents --------------- .. py:function:: xs_normalizedString(s: str) -> str Make a ``normalizedString``, adhering XML spec. .. epigraph:: *normalizedString* represents white space normalized strings. The `·value space· `_ of normalizedString is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. The `·lexical space· `_ of normalizedString is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters. The `·base type· `_ of normalizedString is `string `_. -- the `XML schema spec `_ .. py:function:: xs_token(s: str) -> str Make a ``token``, adhering XML spec. .. epigraph:: *token* represents tokenized strings. The `·value space· `_ of token is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces. The `·lexical space· `_ of token is the set of strings that do not contain the carriage return (#xD), line feed (#xA) nor tab (#x9) characters, that have no leading or trailing spaces (#x20) and that have no internal sequences of two or more spaces. The `·base type· `_ of token is `normalizedString `_. -- the `XML schema spec `_