File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Create an array" Watch "Create an array" New topic

Create an array

mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 251

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?

K. Tsang

Joined: Sep 13, 2007
Posts: 3132

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 OCPJP7 OCPWCD5 OCPBCD5 OCPWSD5 OCMJEA5 part 1 part 2/3
mark smith
Ranch Hand

Joined: Apr 05, 2005
Posts: 251
it look like directly the same thing i done.
I agree. Here's the link:
subject: Create an array
It's not a secret anymore!