Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

XSD Validation based on attribute type value

843834Apr 8 2009
Hi,
Can any one tell me how to validate xml element value based on attribute value.
Ex:-
my xml has the elements like this.
<channel>
<meta type="VideoTitle">Harding Park Golf Club</meta>
<meta type="ReleaseDate">Wed, 03 Jan 2018 15:00:00 GMT</meta> </channel> I want to validate the xml based on meta type value using xsd. For "VideoTitle" i would like check for String type and for ReleaseDate" i want to check for date format. Thanks, Raj
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 6 2009
Added on Apr 8 2009
0 comments
124 views