<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <element name="Buy"> <complexType> <sequence> <element name="TrxnTyp" type="xsd:string"/> <element name="Amt"> <complexType> <sequence> <element name="AmtType" type="xsd:string"/> <element name="AmtValue" type="xsd:string"/> </sequence> </complexType> </element> <element name="TaxCode" type="xsd:string"/> <element name="ClientComm" type="xsd:string"/> <element name="Payment" minOccurs="0"> <complexType> <sequence> <element name="PayType" type="xsd:string"/> <element name="Currency" type="xsd:string"/> </sequence> </complexType> </element> <element name="Comments" type="xsd:string"/> </sequence> </complexType> </element> </schema> |
DEFINE TEMP-TABLE Buy NO-UNDO
FIELD TrxnTyp AS CHARACTER FIELD TaxCode AS CHARACTER FIELD ClientComm AS CHARACTER FIELD Comments AS CHARACTER. DEFINE TEMP-TABLE Amt NO-UNDO FIELD AmtType AS CHARACTER FIELD AmtValue AS CHARACTER FIELD Buy_id AS RECID XML-NODE-TYPE "HIDDEN". DEFINE TEMP-TABLE Payment NO-UNDO FIELD PayType AS CHARACTER FIELD Currency AS CHARACTER FIELD Buy_id AS RECID XML-NODE-TYPE "HIDDEN". DEFINE DATASET BuyDset XML-NODE-TYPE "HIDDEN" FOR Buy, Amt, Payment PARENT-ID-RELATION Relation1 FOR Buy, Amt PARENT-ID-FIELD Buy_id PARENT-FIELDS-BEFORE (TrxnTyp) PARENT-FIELDS-AFTER (TaxCode, ClientComm) PARENT-ID-RELATION Relation2 FOR Buy, Payment PARENT-ID-FIELD Buy_id PARENT-FIELDS-AFTER (Comments). |