/* pi-tfx-write-1.p */
/* Writes an XSD file from a dynamic temp table. */ {pi-tfx-parameterVarDefs.i} DEFINE VARIABLE httCust AS HANDLE NO-UNDO. DEFINE VARIABLE lReturn AS LOGICAL NO-UNDO. CREATE TEMP-TABLE httCust. httCust:CREATE-LIKE("Customer"). httCust:TEMP-TABLE-PREPARE("ttCustomer"). ASSIGN cTargetType = "FILE" cFile = "ttCust2.xsd" lFormatted = YES cEncoding = ? lMinSchema = NO. lReturn = httCust:WRITE-XMLSCHEMA(cTargetType, cFile, lFormatted, cEncoding, lMinSchema). |
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="" xmlns:prodata="urn:schemas-progress-com:xml-prodata:0001"> <xsd:element name="ttCustomer" prodata:proTempTable="true"> <xsd:complexType> <xsd:sequence> <xsd:element name="ttCustRow" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="CustNum" type="xsd:int" nillable="true" prodata:format=">>>>9" prodata:label="Cust Num" prodata:help="Please enter a customer number."/> <xsd:element name="Country" type="xsd:string" nillable="true" default="USA" prodata:format="x(20)" prodata:help="Please enter a country."/> <xsd:element name="Name" type="xsd:string" nillable="true" prodata:format="x(30)" prodata:help="Please enter a name."/> . . . |
<?xml version="1.0"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="" xmlns:prodata="urn:schemas-progress-com:xml-prodata:0001"> <xsd:element name="ttCustomer" prodata:proTempTable="true"> <xsd:complexType> <xsd:sequence> <xsd:element name="ttCustRow" minOccurs="0" maxOccurs="unbounded"> <xsd:complexType> <xsd:sequence> <xsd:element name="CustNum" type="xsd:int" nillable="true"/> <xsd:element name="Country" type="xsd:string" nillable="true" default="USA"/> <xsd:element name="Name" type="xsd:string" nillable="true"/> . . . |