I
Ian Mayo
Hi all,
I've got a DTD which I'm trying to tidy up and improve into an XSD - I'm
battling with an area of object orientation which I'm used to in Java, but
unsure about whether I can do it in XML:
I've got a container which currently contains a Choice element listing all
of children it can contain. Whenever I add a new child I have to remember
to extend this choice definition.
Since all of the children are extensions of a single base-type I was hoping
that there would be some way of defining that my container just contains
multiple instances of the base-type (or it's children). This type of thing
seems quite normal in OOP, I just don't know if I'm asking too much of XSDs.
Cheers,
Ian
I've got a DTD which I'm trying to tidy up and improve into an XSD - I'm
battling with an area of object orientation which I'm used to in Java, but
unsure about whether I can do it in XML:
I've got a container which currently contains a Choice element listing all
of children it can contain. Whenever I add a new child I have to remember
to extend this choice definition.
Since all of the children are extensions of a single base-type I was hoping
that there would be some way of defining that my container just contains
multiple instances of the base-type (or it's children). This type of thing
seems quite normal in OOP, I just don't know if I'm asking too much of XSDs.
Cheers,
Ian