Defining Terminated Data Using Native Schema Constructs

Native Format Builder Wizard 6-15 Native Data Format to Be Translated: Not Quoted This is used when the data is terminated by a particular string or character. The following is a sample native data to be translated: 1020,16,18,,1580.00 Native Schema: Not Quoted ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=terminated complexType sequence element name=product type=string nxsd:style=terminated nxsd:terminatedBy=, element name=ordered type=string nxsd:style=terminated nxsd:terminatedBy=, element name=inventory type=string nxsd:style=terminated nxsd:terminatedBy=, element name=backlog type=string nxsd:style=terminated nxsd:terminatedBy=, element name=listprice type=string nxsd:style=terminated nxsd:terminatedBy={eol} sequence complexType element schema Translated XML Using the Native Schema: Not Quoted terminated xmlns=http:www.oracle.comiasprocessconnect product1020product ordered16ordered inventory18inventory backlogbacklog listprice1580.00listprice terminated Native Data Format to Be Translated: Data Includes Default Quote Character The following is a sample native data to be translated: aaa,bbbbb,[cccc In this case, fields are terminated by commas, the character is part of the data in the second field, and the [ character is part of the data in the third field. Because the default nxsd:quotedBy terminating mark is quot; , the Oracle File Adapter will fail to translate field two even if you specify that this field is terminated by a comma character. To successfully translate this data, you must override the default nxsd:quotedBy terminating mark to any character that will not be part of the data for this field. In this example, we override the default nxsd:quotedBy terminating mark to lt; because we know that this character will never appear in field two: 6-16 Oracle Fusion Middleware Users Guide for Technology Adapters element name=FieldTwo type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=lt; By contrast, for field three, we need only specify nxsd:terminatedBy=, because the [ character does not conflict with the default nxsd:quotedBy terminating mark: element name=FieldThree type=string nxsd:style=terminated nxsd:terminatedBy=, Native Schema: Data Includes Default Quote Character ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=terminated complexType sequence element name=FieldOne type=string nxsd:style=terminated nxsd:terminatedBy=, element name=FieldTwo type=string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=lt; element name=FieldThree type=string nxsd:style=terminated nxsd:terminatedBy=, sequence complexType element Translated XML Using the Native Schema: Data Includes Default Quote Character terminated xmlns=http:www.oracle.comiasprocessconnect FieldOneaaaFieldOne FieldTwobbbbbFieldTwo FieldThree[ccccFieldThree terminated

6.2.2.3 Defining Surrounded Data

This is used when the native data is surrounded by a mark. The following are types of surrounded data: ■ Left and right surrounding marks are different. ■ Left and right surrounding marks are the same. Native Data Format to Be Translated: Left and Right Surrounding Marks Are Different The following is a sample native data to be translated for which the left and the right surrounding marks are different: Ernest Hemingway Museum{Whitehead St.} Native Schema: Left and Right Surrounding Marks Are Different ?xml version=1.0 encoding=US-ASCII? Native Format Builder Wizard 6-17 schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd xmlns:tns=http:www.oracle.comiasprocessconnect targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=limstring complexType sequence element name=Landmark type=string nxsd:style=surrounded nxsd:leftSurroundedBy= nxsd:rightSurroundedBy= element name=Street type=string nxsd:style=surrounded nxsd:leftSurroundedBy={ nxsd:rightSurroundedBy=} sequence complexType element schema Translated XML Using the Native Schema: Left and Right Surrounding Marks Are Different limstring xmlns=http:www.oracle.comiasprocessconnect LandmarkErnest Hemingway MuseumLandmark StreetWhitehead St.Street limstring Native Data Format to Be Translated: Left and Right Surrounding Marks Are the Same The following is a sample native data to be translated for which the left and the right surrounding marks are the same: .FL..Florida Keys.+Key West+ Native Schema: Left and Right Surrounding Marks Are the Same ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd xmlns:tns=http:www.oracle.comiasprocessconnect targetNamespace=http:www.oracle.comiasprocessconnect elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD element name=limstring complexType sequence element name=State type=string nxsd:style=surrounded nxsd:surroundedBy=. element name=Region type=string nxsd:style=surrounded nxsd:surroundedBy=. element name=City type=string nxsd:style=surrounded nxsd:surroundedBy=+ sequence complexType element schema