permaculture playing cards*
The moose likes XML and Related Technologies and the fly likes Create an array Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Create an array" Watch "Create an array" New topic
Author

Create an array

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
hi

in an xsd i need to create a array.

So i have to create an objet: PolicyRequest who contain an array of Payment



minOccurs and maxOccurs don't seem related to doing that. any suggestion?

thanks
K. Tsang
Bartender

Joined: Sep 13, 2007
Posts: 2503
    
    8

First of all, XML schema doesn't have array type. But it has list.

It also depends on how you want to represent your data. Sorry not using your schema tags. Let say I have a "cert_exam" tag representing a certificate I have achieved.


Then the schema would look like


K. Tsang JavaRanch SCJP5 SCJD/OCM-JD OCPJP7 OCPWCD5 OCPBCD5
mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 250
it look like directly the same thing i done.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Create an array