Using XSD to create a XML file

  • Thread starter Thread starter Manoj 1503
  • Start date Start date
M

Manoj 1503

Guest
I have tried to generate a xml file by creating xsd with the class hierarchy as needed for the xml.

But the xml file generated contains namespace and other information as mentioned below

1348276.png

How to get ride of the namespace in the xml file?

I need the xml sample as mentioned below.

<?xml version="1.0" encoding="utf-8"?>
<EMPLOYEES>
<EMPLOYEE>
<Name>xyz</Name>
<ID>1</ID>
<ADDRESS>
<Door_x0020_No>15</Door_x0020_No>
<Street>wwwww</Street>
<City>YYYYY</City>
<State>zzzz</State>
</ADDRESS>
<Salary>20000</Salary>
<Join_x0020_Date>2018-10-16T00:00:00+05:30</Join_x0020_Date>
</EMPLOYEE>
</EMPLOYEES>


Suggest any better ways to do this. I used xsd as i have large number of class in my xml file.

Continue reading...
 
Back
Top