Convert Java Object To XML Using JAXB

Sdílet
Vložit
  • čas přidán 31. 12. 2020
  • In this video we will see how to convert Java object to XML using JAXB ?
    Converting Java object to XML is called as Marshalling & Converting XML to Java object is called as Unmarshalling. In this video we will see Marshalling using JAXB.
    Here JAXB stands for Java Architecture for XML Binding.
    Source Code - www.infybuzz.com/2021/01/conve...
    Checkout below Courses Provided by me :-
    GraphQL with Spring Boot - bit.ly/32E98kc
    Build REST API with Spring Boot and Spring Data JPA - bit.ly/2ZUT0JO
    Jasper Reports with Java & Spring Boot - bit.ly/3mncX5n
    Learn MongoDB with Java and Spring Boot using Spring Data MongoDB and MongoRepository. - bit.ly/3a1pNkb
    Learn RabbitMQ : Messaging with Java, Spring Boot And Spring MVC - bit.ly/2IRCn9U
    Learn Java Messaging Service - Spring MVC, Spring Boot, ActiveMQ - bit.ly/2UdN7V4
    Java Interview Preparation || 100+ Quality Questions Covered - bit.ly/33kzLdX
    For more GO HERE - www.infybuzz.com
    #java #java8 #infybuzz
  • Věda a technologie

Komentáře • 21

  • @infybuzz
    @infybuzz  Před 3 lety +5

    If you are using Java version greater than 8 then add below dependency.
    mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api

  • @priyagade971
    @priyagade971 Před 3 měsíci +1

    Thank you so much for the nice explanation.

  • @iScreem1
    @iScreem1 Před rokem

    very helpful

  • @pritammod7376
    @pritammod7376 Před 2 lety +3

    Nicely explained 👍👍

  • @ChandanKumar-yo3dj
    @ChandanKumar-yo3dj Před rokem

    each time if you run it is just ovrriding the content that should not be overwriiten please help regarding this

  • @thahirThavvagunta
    @thahirThavvagunta Před 2 lety

    Bro how to return this xml in postman. Please tell

  • @faizquazi292
    @faizquazi292 Před 2 lety

    Hi,
    I have added the dependency but still i m geting the error like
    jakarta.xml.bind.JAXBException: Implementation of Jakarta XML Binding-API has not been found on module path or classpath.
    pls suggest..

    • @faizquazi292
      @faizquazi292 Před 2 lety +1

      After adding below dependency it worked!!!!
      jaxb-runtime

  • @victorm3962
    @victorm3962 Před 2 lety +1

    Good video

  • @bonnes-_-pratiques3122
    @bonnes-_-pratiques3122 Před 3 lety +1

    thans your this tuturial

  • @karan95791
    @karan95791 Před 3 lety

    Hi how can i setup eclipse for using JAXB.
    I want to do same thing you are doing.
    Import.javax is showing errors. I have just download eclipse. How to proceed.

    • @infybuzz
      @infybuzz  Před 3 lety

      Which Java version you are using ?

    • @karan95791
      @karan95791 Před 3 lety

      @@infybuzz 14

    • @infybuzz
      @infybuzz  Před 3 lety

      @@karan95791 then you need to add dependency from below URL.
      mvnrepository.com/artifact/jakarta.xml.bind/jakarta.xml.bind-api

  • @priyankamakwana2837
    @priyankamakwana2837 Před rokem

    Why do we convert xml to java

  • @salmansajid1296
    @salmansajid1296 Před 3 měsíci

    adding second element to the file overwrites the old element

    • @infybuzz
      @infybuzz  Před 2 měsíci

      it should not happen. make sure second element is not same as first one.