Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8872199
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T18:10:07+00:00 2026-06-14T18:10:07+00:00

i have a fully annotated class and multiple xsds(each with a different set of

  • 0

i have a fully annotated class and multiple xsds(each with a different set of fields)
and i wish to marshal according to the different xsds using the same class.

i would like to be able to control the marshaling/unmarshaling process and filter out some fields according to the xsd.

btw i am using cxf.
thanks,

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T18:10:09+00:00Added an answer on June 14, 2026 at 6:10 pm

    Note: I’m the EclipseLink JAXB (MOXy) lead and a member of the JAXB (JSR-222) expert group.

    If you use MOXy as your JAXB provider then you could have the model mapped to one XML schema via the standard annotations, and then adjust the mappings to match the other XML schemas using MOXy’s external mapping document (see: http://blog.bdoughan.com/2010/12/extending-jaxb-representing-annotations.html).

    1. JAXBContext #1 – Created based on annotations to match schema #1
    2. JAXBContext #2 – Created based on annotations and mapping file #1 to match schema #2
    3. JAXBContext #3 – Created based on annotations and mapping file #2 to match schema #3

    The mapping file also allows you to have the annotations completely ignored if one of your schemas bares little resemblance to the others.

    • http://blog.bdoughan.com/2011/09/mapping-objects-to-multiple-xml-schemas.html
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have (Test-A) fully annotated testng test in one project. Note: this test runs
I have a fully functioning Android widget that consists of a service provider class,
Situation : I have service implementation class annotated with @Service with access to properties
In Vaadin's website it says that only Eclipse and NetBeans have fully functional (which
I have a fully working Setup project within Visual Studio 2008 that takes inputs
I have a fully functional redact program written in haskell.it replaces all the words
Bear with me if this is unclear; I have trouble fully wrapping my head
Sometimes I want to have temporary comments fully left justified on a line (//)
I have a project which fully designed for smart phone and now, I need
I have a site which needs to be fully self-contained in the browser window,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.