New to XSD and XML, need to define certain elements as required and the other ones as optional
Posted on 2005-04-15
Hi, I am very new to XML Schema and I have the following question. Lets say I am trying to create a Schema for a 'Person' whose information include (SSN, name, address, phone). SSN and name are required with only 1 occurrence of them, whereas address and phone are optional with 0 or 1 occurrences. Could someone show me a simple example of how this is done.
thanks in advance