Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

xmlBean Problem

 
Mike Cole
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

i have a problem with xmlBeans and somehow i dont see a solution atm. maybe someone of you can help me.
I have different xml-Files which are nearlly identical(exept for some minor tags)
One for text, one for images.

So i though i am clever and make two different xmlBean-Libraries (jars)
It worked as expected with the images. But now iam trying to load the articles...

To create an image-document i use this:

Later on i try to import the text:

and i get following error message:


Nowhere in my code i try to cast anything. I just use these two xmlBean Libraries (one called img.jar, the other txt.jar)
To make them more different ive used that xsdconfig stuff. Thats why they have the text/image suffix everywhere.

Can anyone help me with this? Thnx!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic