Hi, I want to know how does one write a mapping file for the following schema? How does one handle the choice and the group within a choice?
<?xml version = "1.0" encoding = "utf-8" ?> <xs:schema xmlns:xs = "http://www.w3.org/2001/XMLSchema" targetNamespace = "http://nppmmw1.umi.bhowell.com:9080/devl/nvi/release_1/schemas/Author_1_1.x sd" xmlns = "http://nppmmw1.umi.bhowell.com:9080/devl/nvi/release_1/schemas/Author_1_1.x sd" elementFormDefault = "qualified"> <xs:complexType name = "AuthorType"> <xs:sequence> <xs:element name = "Version" type = "xs:string" fixed = "Author_1_1.xsd"/> <xs:choice> <xs:group ref = "NameGroup"/> <xs:element name = "AuthorName" type = "xs:string"/> </xs:choice> </xs:sequence> </xs:complexType> <xs:group name = "NameGroup"> <xs:sequence> <xs:element name = "FirstName" type = "xs:string"/> <xs:element name = "LastName" type = "xs:string"/> </xs:sequence> </xs:group> </xs:schema> Thanks, --Venkat. ----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to [EMAIL PROTECTED] with a subject of: unsubscribe castor-dev
