This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin for Android App Development and have Peter Sommerhoff on-line!
See this thread for details.
Win a copy of Kotlin for Android App Development this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Devaka Cooray
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Paul Clapham
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • salvin francis
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Frits Walraven
  • Ganesh Patekar

Suggestion regarding <any> tag in xsd  RSS feed

 
Ranch Hand
Posts: 74
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

Following are the two xsds and an xml message I have

InfoMessageBroker-v2016.xsd
PDNotification-20180914.xsd
BranchCustomerNotifcation.xml

I want to unmarshall the ml message using jaxb 2.1 implementation, InfoMessageBroker xsd has a complexType "EventBodyType" which contains the message body but it has generic declaration like below

The problem is how I can import PDNotification xsd in InfoMessageBroker xsd and change the EventBodyTag defination so that the xml message can be correctly unmarshall and gives me populated java object BranchCustomerNotificationType






The xml message is


 
Khuzema Dharwala
Ranch Hand
Posts: 74
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
InfoMessageBroker-v2016.xsd is

 
Khuzema Dharwala
Ranch Hand
Posts: 74
Java Linux Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PDNotification-20180914.xsd is

 
All of the world's problems can be solved in a garden - Geoff Lawton. Tiny ad:
RavenDB is an Open Source NoSQL Database that’s fully transactional (ACID) across your database
https://coderanch.com/t/704633/RavenDB-Open-Source-NoSQL-Database
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!