SlideShare a Scribd company logo
2
Most read
3
Most read
5
Most read
JAXB
Java Architecture xml binding
Presented By
Kiran Gajbhiye
Comp Dept | gcoej
Introduction
• JAXB(Java Architecture for XML Binding)
• It is used to convert XML to java object and java object to XML
• JAXB is an API that gives us the power to read and write Java Objects
to and from XML documents.
• Marshalling – Convert a Java object into a XML file
• Unmarshalling – Convert XML content into a Java Object
JAXB Architecture
Implementation
• A JAXB implementation consists of the following architectural components:
 schema compiler: binds a source schema to a set of schema derived program
elements. The binding is described by an XML-based binding language.
 schema generator: maps a set of existing program elements to a derived
schema. The mapping is described by program annotations.
 binding runtime framework: provides unmarshalling (reading) and
marshalling (writing) operations for accessing, manipulating and validating
XML content using either schema-derived or existing program elements.
Steps in JAXB binding process
1. Generate classes. An XML schema is used as input to the JAXB binding compiler to generate
JAXB classes based on that schema.
2. Compile classes
3. Unmarshal. XML documents written according to the constraints in the source schema are
unmarshalled by the JAXB binding framework
4. Generate content tree The unmarshalling process generates a content tree of data objects
instantiated from the generated JAXB classes
5. Validate (optional). The unmarshalling process optionally involves validation of the source
XML documents before generating the content tree.
6. Process content. The client application can modify the XML data represented by the Java
content tree by means of interfaces generated by the binding compiler.
7. Marshal. The processed content tree is marshalled out to one or more XML output documents.
The content may be validated before marshalling.
JAXB Architecture(cont’d)
Features of JAXB 2.0
• Annotation support: JAXB 2.0 provides support to annotation so less coding is required to develop
JAXB application. The javax.xml.bind.annotation package provides classes and interfaces for JAXB 2.0
• Support for all W3C XML Schema features: it supports all the W3C schema unlike JAXB 1.0
• Additional Validation Capabilities: it provides additional validation support by JAXP 1.3
validation API.
• Small Runtime Library: it required small runtime library that JAXB 1.0
• Reduction of generated schema-derived classes: it reduces a lot of generated schema-derived
classes
Thank you !!

More Related Content

PPTX
__Cloud_CNA_MSA_Service+Data+InferenceMesh 소개-박문기@메가존클라우드-20230320.pptx
PPTX
Método fabrica (Method Factory)
PDF
FIWARE Wednesday Webinars - Introduction to NGSI-LD
PPTX
Fiware IoT_IDAS_intro_ul20_v2
PDF
MVC Architecture
PPTX
Modelos de sistemas distribuidos
PDF
Patrones de creación
__Cloud_CNA_MSA_Service+Data+InferenceMesh 소개-박문기@메가존클라우드-20230320.pptx
Método fabrica (Method Factory)
FIWARE Wednesday Webinars - Introduction to NGSI-LD
Fiware IoT_IDAS_intro_ul20_v2
MVC Architecture
Modelos de sistemas distribuidos
Patrones de creación

What's hot (20)

PPTX
Lecture 10 - Message Exchange Patterns
PDF
Spring mvc
PPTX
Nodejs functions & modules
PDF
Nestjs MasterClass Slides
PPT
White box testing
PDF
NestJS
PPTX
Spring 3.x - Spring MVC - Advanced topics
PPTX
WS - Security
PDF
OpenID Connect 4 SSI
PDF
Solid NodeJS with TypeScript, Jest & NestJS
PPT
Object Oriented System Design
PPT
Struts
PDF
오픈소스의 이해와 활용
PPT
Server Controls of ASP.Net
PPTX
Java Beans
PPTX
Introduction to Angularjs
PDF
Formal Verification Techniques
PPTX
NGSIv1 を知っている開発者向けの NGSIv2 の概要 (Orion 3.1.0対応)
Lecture 10 - Message Exchange Patterns
Spring mvc
Nodejs functions & modules
Nestjs MasterClass Slides
White box testing
NestJS
Spring 3.x - Spring MVC - Advanced topics
WS - Security
OpenID Connect 4 SSI
Solid NodeJS with TypeScript, Jest & NestJS
Object Oriented System Design
Struts
오픈소스의 이해와 활용
Server Controls of ASP.Net
Java Beans
Introduction to Angularjs
Formal Verification Techniques
NGSIv1 を知っている開発者向けの NGSIv2 の概要 (Orion 3.1.0対応)
Ad

Similar to Java architecture for xml binding (20)

PPTX
Module-3 for career and JFSD ppt for study.pptx
PPTX
From JSX to Deployment: Mastering the React Workflow for Scalable Front-End D...
PPTX
Soa 29 jaxb data binding
PDF
Java 8 in Anger (QCon London)
PDF
Java 8 in Anger, Devoxx France
PPT
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
PPTX
Hibernate in Action
PPT
Rollin onj Rubyv3
PDF
JSR-222 Java Architecture for XML Binding
PPT
Lecture 19 dynamic web - java - part 1
PPTX
Introduction Java Web Framework and Web Server.
PPTX
Spring MVC framework
PPTX
PPT
PPTX
Expertezed 2012 Webcast - XML DB Use Cases
PPT
Content Storage With Apache Jackrabbit
PPTX
Lightning web components
PPTX
Java spring ppt
PDF
Hibernate.pdf
Module-3 for career and JFSD ppt for study.pptx
From JSX to Deployment: Mastering the React Workflow for Scalable Front-End D...
Soa 29 jaxb data binding
Java 8 in Anger (QCon London)
Java 8 in Anger, Devoxx France
Lecture 19 - Dynamic Web - JAVA - Part 1.ppt
Hibernate in Action
Rollin onj Rubyv3
JSR-222 Java Architecture for XML Binding
Lecture 19 dynamic web - java - part 1
Introduction Java Web Framework and Web Server.
Spring MVC framework
Expertezed 2012 Webcast - XML DB Use Cases
Content Storage With Apache Jackrabbit
Lightning web components
Java spring ppt
Hibernate.pdf
Ad

Recently uploaded (20)

PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PPTX
Sustainable Sites - Green Building Construction
PDF
PPT on Performance Review to get promotions
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PDF
Digital Logic Computer Design lecture notes
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PPTX
Geodesy 1.pptx...............................................
PPT
Mechanical Engineering MATERIALS Selection
DOCX
573137875-Attendance-Management-System-original
PPTX
CH1 Production IntroductoryConcepts.pptx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPT
introduction to datamining and warehousing
PPTX
Current and future trends in Computer Vision.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
PPTX
Construction Project Organization Group 2.pptx
PPTX
OOP with Java - Java Introduction (Basics)
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
Embodied AI: Ushering in the Next Era of Intelligent Systems
Operating System & Kernel Study Guide-1 - converted.pdf
Sustainable Sites - Green Building Construction
PPT on Performance Review to get promotions
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
CYBER-CRIMES AND SECURITY A guide to understanding
Digital Logic Computer Design lecture notes
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Geodesy 1.pptx...............................................
Mechanical Engineering MATERIALS Selection
573137875-Attendance-Management-System-original
CH1 Production IntroductoryConcepts.pptx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
introduction to datamining and warehousing
Current and future trends in Computer Vision.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PRIZ Academy - 9 Windows Thinking Where to Invest Today to Win Tomorrow.pdf
Construction Project Organization Group 2.pptx
OOP with Java - Java Introduction (Basics)

Java architecture for xml binding

  • 1. JAXB Java Architecture xml binding Presented By Kiran Gajbhiye Comp Dept | gcoej
  • 2. Introduction • JAXB(Java Architecture for XML Binding) • It is used to convert XML to java object and java object to XML • JAXB is an API that gives us the power to read and write Java Objects to and from XML documents. • Marshalling – Convert a Java object into a XML file • Unmarshalling – Convert XML content into a Java Object
  • 4. Implementation • A JAXB implementation consists of the following architectural components:  schema compiler: binds a source schema to a set of schema derived program elements. The binding is described by an XML-based binding language.  schema generator: maps a set of existing program elements to a derived schema. The mapping is described by program annotations.  binding runtime framework: provides unmarshalling (reading) and marshalling (writing) operations for accessing, manipulating and validating XML content using either schema-derived or existing program elements.
  • 5. Steps in JAXB binding process 1. Generate classes. An XML schema is used as input to the JAXB binding compiler to generate JAXB classes based on that schema. 2. Compile classes 3. Unmarshal. XML documents written according to the constraints in the source schema are unmarshalled by the JAXB binding framework 4. Generate content tree The unmarshalling process generates a content tree of data objects instantiated from the generated JAXB classes 5. Validate (optional). The unmarshalling process optionally involves validation of the source XML documents before generating the content tree. 6. Process content. The client application can modify the XML data represented by the Java content tree by means of interfaces generated by the binding compiler. 7. Marshal. The processed content tree is marshalled out to one or more XML output documents. The content may be validated before marshalling.
  • 7. Features of JAXB 2.0 • Annotation support: JAXB 2.0 provides support to annotation so less coding is required to develop JAXB application. The javax.xml.bind.annotation package provides classes and interfaces for JAXB 2.0 • Support for all W3C XML Schema features: it supports all the W3C schema unlike JAXB 1.0 • Additional Validation Capabilities: it provides additional validation support by JAXP 1.3 validation API. • Small Runtime Library: it required small runtime library that JAXB 1.0 • Reduction of generated schema-derived classes: it reduces a lot of generated schema-derived classes