Link to home
Start Free TrialLog in
Avatar of gudii9
gudii9Flag for United States of America

asked on

enum to pass the list of cities from XLS to XML

I am reading xls and populating xml by manipulating existing framework code. In existing framework code each sheet of the xls represent a city. They are looping based on the city count and setting the city name using setter method to a XML XSD element.  For all city names they are using enum to store all the values.

In my approach I am using apachi poi and checking number of sheets to loop all the cities. I did not create enum as well. How do I create enum to set the city name as the enum to pass to existing xml xsd framework to generate XML.

Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

If you have an xsd, why are you not generating all of the Java with, for instance, JAXB?
Avatar of gudii9

ASKER

I do not have exact xsd. Some place holders which resembles like XSD
ASKER CERTIFIED SOLUTION
Avatar of CEHJ
CEHJ
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial