:tocdepth: 3 :py:mod:`gws.lib.xmlx.util` =========================== .. py:module:: gws.lib.xmlx.util **Source code:** :source:`gws.lib.xmlx.util` Module Contents --------------- .. py:function:: atom_to_string(s) -> tuple[str, bool] Return a string representation of a primitive value. :returns: A tuple containing the string representation and a boolean indicating if the conversion was successful. .. py:function:: escape_attribute(s: str) -> str Escape special characters in a string for XML attributes. .. py:function:: escape_text(s: str) -> str Escape special characters in a string for XML.