Hello uruj, are you able to replicate it not using CITRIX?, Citrix is unsupported according my knowledge, so it's important verify if your code works as expected under other execution environment.
Also review this information:
The workaround is to remove the first line from the XML file that contains the XML processing instruction (i.e. the <?xml ... ?> line). This defect isn't published yet as a knowledge article on the website, when it is, it would contain the following:
CLRT-73713 XOG Write returns error if it contains an XML processing instruction at the start (<?xml ... ?>)
Description:
XML files typically begin with a processing instruction that identifies the file as XML. The example XOG files provided with the XOG client also include them. They look like this:
If you want entire answer, validate if this thread can be useful:
XOG POST failed ParseError
Thanks & Regards,