how to Get two XML data elements to appear on the same line
Hello ,
We are trying to generate an XML file as outbound using CreateXMLDoc() in PeopleCode. We had an issue with the child nodes. As per the vendor, all the nodes should appear on the same line. Below are the sample outputs.
The second output Is the expected output. Could you please advise how we can achieve this?
&inXMLDoc_Bell = CreateXmlDoc("");
&rootNode = &inXMLDoc_Bell.CreateDocumentElement("root");
&childNode1 = &rootNode.AddElement(Lower("record"));
&childNode2 = &rootNode.AddElement(Lower("Client"));
&textNode2 = &childNode1.AddText("1000");
&childNode2 = &childNode2.AddElement(Lower("Test"));
&textNode2 = &childNode2.AddText("2000");
the expected output should be
Thanks in advance,
Sudha