i have xml i want to copy as is like (check xmlns="" and tags. i want to create as is .
The total calculation is taken care. only this issue . it is valid . still client want the expected format to be like that. any help greatly appreciated. three tasks
1)I need to add namespace Employees xmnls="1.2" xmlns:xsi="3" xsi:schemalocation="4"> 2)generating tag like this in the output xml not 3)need to avoid xmlns=""
any help in advance greatly appreciated rameshkumar singh
Input.xml
<Employees>
<employee>
<dept>1</dept>
<sec></sec>
</employee>
<employee>
<dept>2</dept>
<sec></sec>
</employee>
</Employees>
Expected.XML
<Employees xmnls="1.2" xmlns:xsi="3" xsi:schemalocation="4">
<totalemp>2</totalemp>
<employee>
<dept>1</dept>
<sec></sec>
<employee>
<employee>
<dept>2</dept>
<sec></sec>
<employee>
</Employees>
actual.XML
<Employees>
<totalemp>2</totalemp>
<employee xmlns="">
<dept>1</dept>
<sec/>
</employee>
<employee>
<dept>2</dept>
<sec/>
<employee>
</Employees>