Avatar of gudii9
gudii9
Flag for United States of America asked on

xml from xsd

Hi,

 I have the data printed on to my console from the XLS(I have filtered the empty cells, headings etc).

I have XSD as well.

How to make XML using XSD and populated data on console from XLS with my java application.

I am attaching the sample XLS.

I am also attaching how the XML looks like which supposed to prepared from the XSD.

Any ideas, suggestions, sample code, links, source code highly appreciated. Thanks in advance
SampleXLS2.xls
file2.xml
Java EEJavaXML

Avatar of undefined
Last Comment
CEHJ

8/22/2022 - Mon
gudii9

ASKER
http://www.javacodegeeks.com/2011/02/jaxb-generate-xml-xsd.html

I saw above link has something similar.

I created Main.java in my eclipse at package generated.


But I do not see XSD getting passed into that program anywhere.

Also I am getting compilation errors as eclipse not ale to recognize

ObjectFactory

UserT

ItemT

ItemListT

ExpenseT

etc.


Where i have to copy xsd file to. Please advise
gudii9

ASKER
Do i need to import any jars for this . please advise
ASKER CERTIFIED SOLUTION
CEHJ

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23