Defining Complex Condition in conditionValue

Native Format Builder Wizard 6-43 Item4, Lt.Clopper, 50, 100 Cust2, Jersey WebInovaters, ID46786 Native Schema: ?xml version=1.0 ? xsd:schema xmlns:xsd=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdextensionsSampleNS xmlns:tns=http:xmlns.oracle.compcbpelnxsdextensionsSampleNS elementFormDefault=qualified attributeFormDefault=unqualified nxsd:encoding=US-ASCII nxsd:stream=chars nxsd:version=NXSD xsd:element name=Container xsd:complexType xsd:choice minOccurs=1 maxOccurs=unbounded nxsd:choiceCondition=terminated nxsd:terminatedBy=, xsd:element name=Customer nxsd:conditionValue=== Cust1 or == Cust2 and = emp xsd:complexType xsd:sequence xsd:element name=C1 type=xsd:string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; xsd:element xsd:element name=C2 type=xsd:string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy=quot; xsd:element xsd:sequence xsd:complexType xsd:element xsd:element name=Item nxsd:conditionValue=== Item1 or == Item2 or ==Item3 or == Item4 xsd:complexType xsd:sequence xsd:element name=C1 type=xsd:string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; xsd:element xsd:element name=C2 type=xsd:string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; xsd:element xsd:element name=C3 type=xsd:string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy=quot; xsd:element xsd:sequence xsd:complexType xsd:element xsd:element name=Order nxsd:conditionValue=Order xsd:complexType xsd:sequence xsd:element name=C1 type=xsd:string nxsd:style=terminated nxsd:terminatedBy=, nxsd:quotedBy=quot; xsd:element xsd:element name=C2 type=xsd:string nxsd:style=terminated nxsd:terminatedBy={eol} nxsd:quotedBy=quot; xsd:element xsd:sequence xsd:complexType xsd:element xsd:choice 6-44 Oracle Fusion Middleware Users Guide for Technology Adapters xsd:complexType xsd:element xsd:schema Translated XML Using Native Schema: Container xmlns=http:xmlns.oracle.compcbpelnxsdextensionsSampleNS Order C1 ID41678C1 C2 20May2000C2 Order Item C1 GigaWidgetC1 C2 60C2 C3 75C3 Item Item C1 MegaBucketC1 C2 48C2 C3 125C3 Item Customer C1 Hopkins AssociatesC1 C2 ID26490C2 Customer Order C1 ID41680C1 C2 20May2000C2 Order Item C1 Rt.ClopperC1 C2 40C2 C3 100C3 Item Item C1 Lt.ClopperC1 C2 50C2 C3 100C3 Item Customer C1 Jersey WebInovatersC1 C2 ID46786C2 Customer Container

6.2.2.16 Defining Complex Condition in choiceCondition

The choiceCondition construct is used along with the conditionValue construct for records that are complex and may have fields delimited by multiple delimiter types. The other choiceCondition types available are FixedLength, Variable, and Ad hoc. The following example is for the variable choiceCondition type. Native Data Format to Be Translated: Name1,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718, YES Name2,2 Old Street, Old Town,Manchester,20-08-1954,0161-499-1718, NO Native Format Builder Wizard 6-45 Native Schema: element name=LookAhead complexType choice maxOccurs=unbounded nxsd:choiceCondition={x} nxsd:lookAhead=70 nxsd:scanLength=3 nxsd:assignTo={x} element name=Record1 type=string nxsd:conditionValue=YES nxsd:style=terminated nxsd:terminatedBy=, nxsd:skipMode=after nxsd:skipUntil={eol} element name=Record2 type=string nxsd:conditionValue=NO nxsd:style=terminated nxsd:terminatedBy=, nxsd:skipMode=after nxsd:skipUntil={eol} choice complexType element Translated XML Using Native Schema: LookAhead xmlns=http:xmlns.oracle.compcbpelnxsdsmoketest Record1Name1Record1 Record2Name2Record2 LookAhead

6.2.2.17 Defining dataLines

If the requirement is to translate only a portion of the data and not the entire data, then you can specify the number of lines to be ignored from the beginning of the file and the number of lines to be translated from that point onwards by using the dataLines construct. Native Data Format to Be Translated: Fred,addr,20-08-1954,0161-499-1718 Tam,addr,20-08-1954,0161-499-1718 Albert,addr,20-08-1954,0161-499-1718 Bill,addr,20-08-1954,0161-499-1718 Phil,addr,20-08-1954,0161-499-1718 Native Schema: ?xml version=1.0 encoding=US-ASCII? schema xmlns=http:www.w3.org2001XMLSchema xmlns:nxsd=http:xmlns.oracle.compcbpelnxsd targetNamespace=http:xmlns.oracle.compcbpelnxsdsmoketest elementFormDefault=qualified attributeFormDefault=unqualified nxsd:stream=chars nxsd:version=NXSD nxsd:headerLines=1 nxsd:dataLines=1 element name=terminated complexType sequence maxOccurs=unbounded element name=PersonName type=string nxsd:style=terminated nxsd:terminatedBy=, element name=Address type=string nxsd:style=terminated nxsd:terminatedBy=,