File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor unmarshalling problem when ignoring elements

 
Sree Potluri
Ranch Hand
Posts: 62
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have 2 XML files that have some attributes that are same.

First xml


second xml


When I am parsing the second xml, then I am getting error as org.exolab.castor.xml.MarshalException:Illegal text data found as child of:name

Java class



Can you please help me why the elements are not ignored?
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic