Good morning, **Thank you** for taking the time to read and answer this question.   We need to find out how to display an EnsLib.DICOM.Document using LOGINFO, in the traces.   We have tried to use:   set writer=##class(%XML.Writer).%New() set status=writer.OutputToString() set status=writer.RootObject(..DocumentFromService) set xml= writer.GetXMLString() $$$LOGINFO("..DocumentFromService en xml: "_xml)   In the trace it informs us that the "RootObject" method for DICOM documents, the EnsLib.DICOM.Document, does not exist:   Please, could you indicate, recommend, suggest or send us supporting documentation?   We have read: https://community.intersystems.com/post/how-could-we-write-%E2%9C%8D%EF%B8%8F-xml-response-message https://docs.intersystems.com/irislatest/csp/docbook/DocBook.UI.Page.cls?KEY=GXML_EXPORT https://community.intersystems.com/post/listing-all-properties-class-and-why-i-love-objectscript https://community.intersystems.com/post/what-best-way-serialize-objectlistarrayetc-string https://community.intersystems.com/post/serialize-object-string   **Thank you** very much in advance for reading us, reflecting on the question, looking for examples and answering us. **Thanks** for your help Best regards