Hi Eduard I have a doubt on creating a XML message to send it through the HTTP . can you help me on this how to create a XML document .. I have tried with the below program but it showing the error <Method does not exist> and am using Intersystem IRIS 2022.1.1
set writer = ##class(%XML.Writer).%New() set root = writer.StartDocument() set person = root.Node("person") person.Attribute("id") = "123" person.Element("name").Characters("John Doe") person.Element("age").Characters("30") set xml = writer.EndDocument() write xml
Hi Eduard I have a doubt on creating a XML message to send it through the HTTP . can you help me on this how to create a XML document .. I have tried with the below program but it showing the error <Method does not exist>
and am using Intersystem IRIS 2022.1.1
set writer = ##class(%XML.Writer).%New()
set root = writer.StartDocument()
set person = root.Node("person")
person.Attribute("id") = "123"
person.Element("name").Characters("John Doe")
person.Element("age").Characters("30")
set xml = writer.EndDocument()
write xml
Can you help me on this issue