File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Need help with xml schema for the given XML

 
Vlad Golodov
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All!

I have an XML file like that:



How can I restrict special types in XML Schema for the special TYPE of the component?

For the ADDRESS type: picture, thumbnail, description.
For the BOOKMARK type: url, description.

At the moment I have a schema like that:



Thanks in advance.
[ February 16, 2005: Message edited by: Vlad Golodov ]
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guess no..
 
Vlad Golodov
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the answer. My solution will be to put all the possible parameters into one node: <component>. Some of the parameters will be just minOccurs="0".

If you have better solution for the given problem, I would be very glad to here that.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic