Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How Can I Delete Firstline & Second line in XML file.

Hi All,

I have requirement in File 2 File Scenario.In my target XML file I want to remove firstline i.e <?xml version="1.0" encoding="UTF-8" ?> and Second line is namespace line i.e <ns1:Employe xmlns:ns1="http://xxx.com/F2F"> It should be replace with <bxml>.Also end tag in this file is </Employee> it should be replace with </bxml>.

Now Generating Target XML Is :

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

<ns1:Employe xmlns:ns1="http://xxx.com/F2F">

<Row>

-


-


<Row>

</Employee>

Requirement Should be like below :

<bxml>

<Row>

---

---

</Row>

</bxml>

Please suggest me How Can I solve the above issue.

Regards

Pullarao

Not what you were looking for? View more on this topic or Ask a question