CodeGym /Courses /Java Collections /Tasks | Level 3 | Lesson 8

Tasks | Level 3 | Lesson 8

Java Collections
Level 3 , Lesson 8
Available
8
Task
Java Collections, level 3, lesson 8
Locked
My first serialization into XML
My first serialization into XML
8
Task
Java Collections, level 3, lesson 8
Locked
Deserializing an XML object
Deserializing an XML object
Comments (4)
TO VIEW ALL COMMENTS OR TO MAKE A COMMENT,
GO TO FULL VERSION
Hoist Level 17, San Diego, United States
11 January 2024
Output <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <cat> <name>Missy</name> <age>5</age> <weight>3</weight> </cat> <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <dog>
Justin Smith Level 41, Greenfield, USA, United States
12 October 2022
These are easy to do by adapting the code from the previous lesson, however I also feel like this is the sort of thing I'm not going to remember a month from now.
Skynet Level 40, USA
14 September 2021
If you're using the Community edition and for some reason cannot add/find/use necessary jaxb imports, just install and use JDK 8 in the Collections module of the project settings.
Senned Level 41, Azov, Russia
6 December 2019
For work in JDK 12+ download from maven this version or higher: http://search.maven.org/remotecontent?filepath=com/sun/activation/javax.activation/1.2.0/javax.activation-1.2.0.jar http://search.maven.org/remotecontent?filepath=javax/xml/bind/jaxb-api/2.3.0/jaxb-api-2.3.0.jar http://search.maven.org/remotecontent?filepath=com/sun/xml/bind/jaxb-core/2.3.0/jaxb-core-2.3.0.jar http://search.maven.org/remotecontent?filepath=com/sun/xml/bind/jaxb-impl/2.3.0/jaxb-impl-2.3.0.jar