Not too complicated. All I had to do was:
- Convert the xml files to Java objects.
- Write some code to perform a calculation on said objects.
I hadn't actually tried this before but I challenged myself to do this (at least the boilerplate of point 1) in 2 lines of code. Here's how I did it:
Step 1 - Create a Java data model
I created a project in IntelliJ and dropped my xsd document in a resources directory.
I then highlighted the xsd file and clicked Tools->JAXB->Generate Java Code
I was presented with a dialogue box as below
Click OK and hey presto your whole data model has been created into Java objects.
Step 2 - Deserialise the xml file into Java Objects
//line 1 create an Unmarshaller for the object type you are reading from the xml file
Unmarshaller um = JAXBContext.newInstance(DataObject.class).createUnmarshaller();
//line 2 deserialise the xml file into a java object
DataObject dataOject = (DataObject)um.unmarshal(new FileReader("DataObject.xml"));
//now run the calculation on dataObject
So that's it - only took 2 lines!
great
ReplyDeleteIEEE Final Year projects Project Centers in Chennai are consistently sought after. Final Year Students Projects take a shot at them to improve their aptitudes. IEEE Final Year project centers ground for all fragments of CSE & IT engineers hoping to assemble.Final Year Projects for CSE
DeleteSpring Framework has already made serious inroads as an integrated technology stack for building user-facing applications. Spring Framework Corporate TRaining .
Specifically, Spring Framework provides various tasks are geared around preparing data for further analysis and visualization. Spring Training in Chennai
The Angular Training covers a wide range of topics including Angular Directives, Angular Services, and Angular programmability.Angular Training
I have read your blog its very attractive and impressive. I like it your blog.
ReplyDeleteJava Training in Chennai Core Java Training in Chennai Core Java Training in Chennai
Java Online Training Java Online Training JavaEE Training in Chennai Java EE Training in Chennai
nice
ReplyDeleteNeeded to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here.
ReplyDeleteJava Training in Bangalore
This comment has been removed by the author.
ReplyDeleteThanks for one marvelous posting! I enjoyed reading it; you are a great author. I will make sure to bookmark your blog and may come back someday. I want to encourage that you continue your great posts, have a nice weekend!
ReplyDeleteJava Training in Chennai
Java Training in Bangalore
Java Training in Bangalore
This comment has been removed by the author.
ReplyDelete• Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating. Power Bi Online Training Bangalore
ReplyDeleteThose guidelines additionally worked to become a good way to
ReplyDeleterecognize that other people online have the identical fervor like mine
to grasp great deal more around this condition.
java Training in Bangalore
I and my friends were going through the nice, helpful tips from the blog then the sudden came up with an awful suspicion I never expressed respect to the website owner for those secrets.
ReplyDeleteDevops Training in Bangalore
I really enjoyed while reading your article, the information you have delivered in this post was damn good. Keep sharing your post with efficient news.
ReplyDeleteME/M.Tech Project Center in Chennai | ME/M.Tech Project Center in Velachery
This information is very useful. thank you for sharing. and I will also share information about health through the website
ReplyDeletePenyebab Benjolan dileher seperti jakun
Pengobatan penyakit Meningioma
Cara Mudah Menghilangkan Keloid
Pengobatan Alami Tuntaskan Keputihan
Obat Luka Bernanah bekas Caesar
Obat Alami Menurunkan tekanan Darah Tinggi
Obat Penyakit kulit Eksim
Nice and good article. It is very useful for me to learn and understand easily. Thanks for sharing your valuable information and time. Please keep updating.
ReplyDeleteoracle training in chennai|| hadoop training in chennai
Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…
ReplyDeleteRegards,
hadoop training in chennai || selenium training in chennai
Best Online Software Training Institute | DevOps Training
ReplyDeleteyou have done a good task buddy. just keep posting thi type of articles here. or if want to learn DevOps TRaining in Gurgaon then visit us.
ReplyDeleteThose guidelines additionally worked to become a good way to recognize that other people online have the identical fervor like mine to grasp great deal more around this condition.
ReplyDeletesafety course in chennai
well! Thanks for providing a good stuff related to DevOps Explination is good, nice Article
ReplyDeleteanyone want to learn advance devops tools or devops online training
DevOps Online Training
Amazing blog about the various informative information on the programming languages... Java Training in Chennai | Python Training in Chennai
ReplyDeleteThanks for posting useful information. You have provided a nice article, Thank you very much for this one... Java Training in Chennai | Pega Training in Chennai
ReplyDeleteThanks! For sharing your views regarding this topic. I really enjoyed your post.
ReplyDeletejava/j2ee classes Bangalore | java Training Center Bangalore | Best Core Java Training in Bangalore | java Course in Bangalore | Best Java Training Institute Bangalore Marathahalli | Core and Advanced Java Institute Marathahalli | Java Training Institute in Bangalore Marathahalli | Advanced java Training in Bangalore | Java Technologies for web applications | Java Training in Bangalore
Hello,
ReplyDeleteThank You Rational Java for the post update regularly. KernelTraining is one of the leading DevOps training institutes. Recently i completed my software course in KernelTraining, good Institute where you can get good knowledge by real-time experts. I would strongly recommend KernelTraining. for more details please go through the link: DevOps Training In Hyderabad
well! Thanks for providing a good stuff related to DevOps Explination is good, nice Article.
ReplyDeleteDevOps Online Training
Well said!! much impressed by reading your article. Keep writing more.
ReplyDeletePHP Training in Chennai
DOT NET Training in Chennai
Big Data Training in Chennai
Hadoop Training in Chennai
Android Training in Chennai
Selenium Training in Chennai
Digital Marketing Course in Chennai
JAVA Training in Chennai
Java training institute in chennai
Thanks for the info on Rational Java JAXB - XML to Java in 2 lines of Code!
ReplyDeleteDevOps Training
Useful post admin, your blog has lots of information about Java. Keep sharing.
ReplyDeletePython Training in Chennai
Python Classes in Chennai
ccna course in Chennai
AWS Training in Chennai
DevOps Training in Chennai
Angularjs Training in Chennai
RPA Training in Chennai
UiPath Training in Chennai
Blue Prism Training in Chennai
Very impressive to read
ReplyDeleteblue prism training course in chennai
This was an excellent post. This blog was really comprehensive and helpful to me. Thanks for sharing.
ReplyDeleteSpoken English Classes in Chennai
Spoken English in Chennai
IELTS Coaching in Chennai
IELTS Coaching Centre in Chennai
IELTS Training in Chennai
Best IELTS Coaching in Chennai
IELTS Classes in Chennai
English Speaking Classes in Mumbai
Spoken English Classes in Anna Nagar
Great info. The content you wrote is very interesting to read. This will loved by all age groups.
ReplyDeleteAngularjs Training in Chennai
Angularjs Course in Chennai
CCNA Training in Chennai
Salesforce Training in Chennai
Angular5 Training in Chennai
Angular6 Training in Chennai
Angular7 Training in Chennai
Angularjs Training in Chennai
Angularjs Course in Chennai
Very nice blog, Thank you for providing good information.
ReplyDeleteAviation Academy in Chennai
Air hostess training in Chennai
Airport management courses in Chennai
Ground staff training in Chennai
aviation training in chennai
cabin crew training institute in chennai
airlines training chennai
airport ground staff training in chennai
An astounding web diary I visit this blog, it's inconceivably magnificent. Strangely, in this current blog's substance made point of fact and sensible. The substance of information is instructive.
ReplyDeleteA bewildering web journal I visit this blog, it's unfathomably heavenly. Oddly, in this present blog's substance made purpose of actuality and reasonable. The substance of data is informative
Oracle Fusion Financials Online Training
Oracle Fusion HCM Online Training
Oracle Fusion SCM Online Training
Thank you for sharing wonderful information with us to get some idea about jaxb to xml content. check it once through Devops Training | DevOps Training in Hyderabad | DevOps Online Course
ReplyDeleteVery Nice article, Thanks For Sharing
ReplyDeleteHere a related Stuff:
Power Bi Training In Hyderabad
Power Bi Online Training
Very Nice article, Thanks For Sharing
ReplyDeleteHere a related Stuff:
Power Bi Training In Hyderabad
Power Bi Online Training
Thanks for sharing this useful information.
ReplyDeletepython training
its really awesome post..Thanks for sharing ..
ReplyDeletePython training in Chennai/
Python training in OMR/
Python training in Velachery/
Python certification training in Chennai/
Python training fees in Chennai/
Python training with placement in Chennai/
Python training in Chennai with Placement/
Python course in Chennai/
Python Certification course in Chennai/
Python online training in Chennai/
Python training in Chennai Quora/
Best Python Training in Chennai/
Best Python training in OMR/
Best Python training in Velachery/
Best Python course in Chennai/
Excellent post...! It is very helpful for developing my knowledge and Keep it up...
ReplyDeleteUnix Training in Chennai
Unix Certification in Chennai
Oracle DBA Training in Chennai
Social Media Marketing Courses in Chennai
Pega Training in Chennai
Tableau Training in Chennai
Spark Training in Chennai
Linux Training in Chennai
Primavera Training in Chennai
Power BI Training in Chennai
ReplyDeleteExcellent post.Gained lots of information here. Keep posting like this
German Classes in Velachery
German Classes in Tambaram
German Classes in T Nagar
German Classes in Anna Nagar
German Classes in Porur
German Classes in Vadapalani
German Classes in Thiruvanmiyur
German Classes in Adyar
German Classes in OMR
Your info is really amazing with impressive content..Excellent blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog..
ReplyDeleteIf you are looking for any Data science Related information please visit our website Data Science Course In Bangalore page!
Nice information, want to know about Selenium Training In Chennai
ReplyDeleteSelenium Training In Chennai
Data Science Course In Chennai
Protractor Training in Chennai
jmeter training in chennai
Rpa Training Chennai
Rpa Course Chennai
Selenium Training institute In Chennai
Python Training In Chennai
Data Science Training In Chennai
ReplyDeleteData Science Course In Chennai
Data Science Course In Chennai
Thanks for sharing valuable information.
ReplyDeleteDigital Marketing training Course in Chennai
digital marketing training institute in Chennai
digital marketing training in Chennai
digital marketing course in Chennai
digital marketing course training in omr
digital marketing certification in omr
digital marketing course training in velachery
digital marketing training center in Chennai
digital marketing courses with placement in Chennai
digital marketing certification in Chennai
digital marketing institute in Chennai
digital marketing certification course in Chennai
digital marketing course training in Chennai
Digital Marketing course in Chennai with placement
digital marketing courses in Chennai
I just loved your article on the beginners guide to starting a blog.If somebody take this blog article seriously in their life, he/she can earn his living by doing blogging.thank you for thizs article. best devops online training
ReplyDeleteSuch a great blog. I Got Lots of informations about this technology.Keep update like this....
ReplyDeleteBest IELTS Coaching in Bangalore
IELTS Training in Bangalore
IELTS Coaching centre in Chennai
IELTS Training in Chennai
IELTS Coaching in Bangalore
IELTS Coaching centre in coimbatore
IELTS Coaching in madurai
IELTS Coaching in Hyderabad
Selenium Training in Chennai
Ethical hacking course in bangalore
There's definately a great deal to find out about this subject. I like all the points you made. oneplus 7 pro display replacement bangalore You made some good points there. I looked on the net to learn more about the issue and found most people will go along with your views on this web site. vivo V17 pro display replacement marathahalli
ReplyDeleteHowdy! This article couldn’t be written any better! Looking at this article reminds me of my previous roommate! He constantly kept talking about this. I am going to send this article to him. Pretty sure he's going to have a very good read. I appreciate you for sharing! iphone 11 pro display replacement marathahalli Greetings, There's no doubt that your website may be having web browser compatibility problems. When I take a look at your website in Safari, it looks fine however, when opening in I.E., it has some overlapping issues. I just wanted to provide you with a quick heads up! Other than that, fantastic website! samsung M30s display replacement
ReplyDeleteYour style is unique in comparison to other people I've read stuff from. I appreciate you for posting when you have the opportunity, Guess I'll just bookmark this site. redmi note 8 pro display replacement bangalore I was able to find good information from your content. realme x display replacement
ReplyDeleteThanks for sharing such valuable blog post, thanks again.
ReplyDeleteca coaching in delhi
banking coaching in delhi
cat coaching in delhi
gate coaching in delhi
dance classes in delhi
ReplyDeleteThanks for this wonderful blog it is really informative to all.keep update more information about this
Selenium Training in Chennai
Selenium Training in Bangalore
Selenium Training in Coimbatore
Best Selenium Training in Bangalore
Selenium Course in Bangalore
Selenium Training Institute in Bangalore
selenium training in marathahalli
Software Testing Course in Chennai
Hacking Course in Bangalore
It is an excellent blog. Your post is very good and unique. I eagerly waiting for your new post. Thanks for sharing keep sharing more good blogs.
ReplyDeleteDOT NET Training in Bangalore
DOT NET Training in Chennai
DOT NET Training Institutes in Bangalore
DOT NET Course in Bangalore
Best DOT NET Training Institutes in Bangalore
DOT NET Institute in Bangalore
AWS Training in Bangalore
Data Science Courses in Bangalore
DevOps Training in Bangalore
PHP Training in Bangalore
Thanks for sharing this amazing blog post. keep posting.
ReplyDeleteDigital Marketing Course in GTB Nagar
Digital Marketing Course Janakpuri
ReplyDeleteExcellent post and it is really useful for most of the freshers.
Node JS Training in Chennai
Node JS Advanced Training
IELTS Training in Chennai
Japanese Language Course in Chennai
TOEFL Training in Chennai
spoken english coaching centre in chennai
best spoken english in chennai
French Language Classes in Chennai
content writing course in chennai
spanish coaching in chennai
Node JS Training in Adyar
Node JS Training in Anna Nagar
This Blog is really informative!! keep update more about this…
ReplyDeleteAviation Courses in Bangalore
Air Hostess Training in Bangalore
Airport Management Courses in Bangalore
Ground Staff Training in Bangalore
Best Aviation Academy in Bangalore
Air Hostess Training Institute in Bangalore
Airline and Airport Management Courses in Bangalore
It's a very awesome article! Thanks a lot for sharing information.
ReplyDeleteSelenium Training Institute in Bangalore
angularjs training in marathahalli
python course in hyderabad
Software Testing Course in Chennai
web designing course in coimbatore
Web Development courses in bangalore
Web Designing Course in bangalore
web designing course in madurai
Web development training in bangalore
Python Training in Bangalore
angularjs training in marathahalli
This is really too useful and have more ideas and keep sharing many techniques. Eagerly waiting for your new blog keep doing more.
ReplyDeleteDevOps Training in Chennai
DevOps certification in Chennai
DevOps course in Chennai
DevOps Training in Anna Nagar
DevOps Training in T Nagar
DevOps Training in OMR
DevOps Training in Porur
This is really very nice post you shared, i like the post, thanks for sharing DevOps Training in Chennai | DevOps Training in anna nagar | DevOps Training in omr | DevOps Training in porur | DevOps Training in tambaram | DevOps Training in velachery
ReplyDeleteThank you for such a wonderful blog. It's a very great concept and I learn more details from your blog. Try
ReplyDeleteSnaplogic Training
Snowflake Training
Talend Big Data Training
Oracle Fusion Cloud Training
Elasticsearch Training
AWS Devops Training
CyberSecurity Training
Nice blog.Thank you for this valuable information.
ReplyDeleteAngular JS Training in Chennai | Certification | Online Training Course | Angular JS Training in Bangalore | Certification | Online Training Course | Angular JS Training in Hyderabad | Certification | Online Training Course | Angular JS Training in Coimbatore | Certification | Online Training Course | Angular JS Training | Certification | Angular JS Online Training Course
Hey Loved the post! Great article and congrats on Reaching the To 50! I will be back to visit often
ReplyDeletePower Bi Training in Hyderabad
Power Bi Training
Power Bi Training Online
Great information to say the least. I really do appreciate everything so much from this great website.
ReplyDeleteIELTS Coaching in chennai
German Classes in Chennai
GRE Coaching Classes in Chennai
TOEFL Coaching in Chennai
spoken english classes in chennai | Communication training
Thank you for sharing the article. The data that you provided in the blog is informative and effective.
ReplyDeleteTableau Training in Hyderabad
Learned a lot of new things in this post. Thanks for taking the time to share this blog..
ReplyDeletecloud computing skills
scope of automation
google digital marketing coursegoogle digital marketing certification
technical skills required for cloud computing
I really enjoyed reading your blog. Great blog
ReplyDeletecommon errors
artificial intelligence future scope
angularjs charts
benefits of rpa
angularjs interview questions and answers for experienced
Thank you for sharing the article. The data that you provided in the blog is informative and effective.
ReplyDeletePostgreSQL Training
Thanks for sharing such nice info. I hope you will share more information like this. please keep on sharing!
ReplyDeletePython Training In Bangalore | Python Online Training
Artificial Intelligence Training In Bangalore | Artificial Intelligence Online Training
Data Science Training In Bangalore | Data Science Online Training
Machine Learning Training In Bangalore | Machine Learning Online Training
AWS Training In Bangalore | AWS Online Training
IoT Training In Bangalore | IoT Online Training
Adobe Experience Manager (AEM) Training In Bangalore | Adobe Experience Manager (AEM) Online Training
Oracle Apex Training In Bangalore | Oracle Apex Online Training
Nice article. Thank you for sharing devops online training
ReplyDeleteUseful post power bi training
ReplyDeleteSalesforce communities have an important role in improving the connection among the customers, channel partners and internal employees of a company. lightning interview questions 2021
ReplyDelete
ReplyDeleteI am really happy to say it’s an interesting post to read . I learn new information from your article , you are doing a great job . Keep it up
Devops Training in Hyderabad
Hadoop Training in Hyderabad
Python Training in Hyderabad
Tableau Training in Hyderabad
Selenium Training in Hyderabad
I believe there are many more pleasurable opportunities ahead for
ReplyDeleteindividuals that looked at your site.
oracle dba training in Chennai
best java training in Chennai
node js certification training in Chennai
Thanks for the valuable information shared here, Keep sharing https://powerbipros.in/
ReplyDeleteThank you for sharing such a nice information. iFuture Technologies Private Limited is computer courses in thane & Kalyan
ReplyDeleteThere will be best course in Hyderabad, duck creek policy program,duck creek can earn a salary 130000 per annum.it is useful to students career in the field you have interest visit my website link.thanks youhttps://duckcreektraining.com/
ReplyDelete