cancel
Showing results for 
Search instead for 
Did you mean: 

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

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (1)

Answers (1)

Shabarish_Nair
Active Contributor
0 Kudos

the simplest way is a java mapping, that will treat the inputstream as a string and then use string replace functions to get your result