aspose file tools*
The moose likes XML and Related Technologies and the fly likes Castor/JAXB question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor/JAXB question" Watch "Castor/JAXB question" New topic
Author

Castor/JAXB question

Shuai Liu
Ranch Hand

Joined: Jan 25, 2002
Posts: 49
Hi all,
I am using Castor framework to do data binding and I am wondering whether I can get schema constraints back from auto-generated classes.
i.e:
if I have a schema like this
<element name="someClass">
<complexType>
<sequence>
<element name="someProperty" userAttribute="userAttributeType">
...
</sequence>
</complexType>
<attribute name="userAttribute" type="userAttributeType" />
</element>
So from the SomeClass class, can I somehow get the userAttribute back?
Thank you for your attention.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Castor/JAXB question