<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <element name="ClientInfo"> <complexType> <sequence> <element name="Individual" minOccurs="0"> <complexType> <sequence> <element name="LastName" type="xsd:string"/> <element name="FirstName" type="xsd:string"/> <element name="BirthDate" type="xsd:date"/> <element name="Gender" type="xsd:string"/> </sequence> </complexType> </element> <element name="Organization" minOccurs="0"> <complexType> <sequence> <element name="OrgName" type="xsd:string"/> <element name="FedBN" type="xsd:string"/> <element name="ProvBN" type="xsd: string "/> </sequence> </complexType> </element> <element name="Language" type="xsd:string"/> <element name="Email" type="xsd:string"/> </sequence> </complexType> </element> </schema> |
DEFINE TEMP-TABLE ClientInfo NO-UNDO
FIELD Language AS CHARACTER FIELD Email AS CHARACTER. DEFINE TEMP-TABLE Individual NO-UNDO FIELD LastName AS CHARACTER FIELD FirstName AS CHARACTER FIELD BirthDate AS CHARACTER FIELD Gender AS CHARACTER FIELD ClientInfo_id AS RECID XML-NODE-TYPE "HIDDEN". DEFINE TEMP-TABLE Organization NO-UNDO FIELD OrgName AS CHARACTER FIELD FedBN AS CHARACTER FIELD ProvBN AS CHARACTER FIELD ClientInfo_id AS RECID XML-NODE-TYPE "HIDDEN". DEFINE DATASET ClientInfoDset XML-NODE-TYPE "HIDDEN" FOR ClientInfo, Individual, Organization PARENT-ID-RELATION Relation1 FOR ClientInfo, Individual PARENT-ID-FIELD ClientInfo_id PARENT-ID-RELATION Relation2 FOR ClientInfo, Organization PARENT-ID-FIELD ClientInfo_id PARENT-FIELDS-AFTER (Language, Email). |