def write_xml_string(self, **kwargs):
        """Write URDF model to a string.

        Returns:
            str: String of the xml representation of the URDF model.
        """
        xml_element = self.write_xml()
        return etree.tostring(xml_element, xml_declaration=True, *kwargs)
Write URDF model to a string.

        Returns:
            str: String of the xml representation of the URDF model.
        
deploy/teleop/robot_control/dex_retargeting/yourdfpy.py