Skip to Content
0
Sep 19, 2011 at 06:16 PM

Create Root Element in XML

263 Views

Hi Experts,

I am develpoing a program to generate xml file as output. I am using the method CL_IXML and other interfaces to generate the xml data. Here I need to create a root element. I did search in SDN but I couldnot found anything to generate xml root element.

My output should be like this:

<?xml version="1.0" encoding="UTF-8"?>

<Request Version="11.1" IssuerID="1">

<CreatePurchaseRequest

RequestID="123456"

Commonname="test"

........

........

</CreatePurchaseRequest>

</Request>

Can anybody plz suggest how can I generate the root element Request here?

Regards,

Ranganadh.