PeopleTools and Lifecycle Management - PSFT (MOSC)

MOSC Banner

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

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center