Closed iannesbitt closed 1 year ago
@iannesbitt that escaping was probably because the XML was being sent via a shell script and curl. As you move the work over to Python, building the XML object from a string is not a very robust way of handling it. I think it would be better to use the core pyxb types that we have in our core d1_python library, such as the Subject class, which knows how to serialize and deserialize instances with proper escaping into XML. This will prevent problems down the line if the data you are putting in the subject fields contains characters that need to be escaped in the XML serialization.
Changes have been made but will soon be obsoleted by #26
Written XML string must be changed according the following:
\
before quotes\n