[Urgent] NXSD tag lookAhead not work, please help me to take a look.
573296May 3 2011 — edited May 3 2011Dear all,
I tried to use lookAhead tag in XSD to do conditional read. But not worked even for below simple sample, no error promopted. Please kindly help to take a look.
<?xml version="1.0" encoding="US-ASCII"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
targetNamespace="http://xmlns.oracle.com/pcbpel/nxsd/smoketest"
elementFormDefault="qualified"
attributeFormDefault="unqualified"
nxsd:stream="chars"
nxsd:version="NXSD">
<element name="LookAhead">
<complexType>
<choice maxOccurs="unbounded">
<element name="Male" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy=""" nxsd:lookAhead="13" nxsd:lookFor="M" /> <element name="Female" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy=""" nxsd:lookAhead="13" nxsd:lookFor="F" />
</choice>
</complexType>
</element>
</schema>
Native Data:
hello dear, F
hello dear, M
Edited by: Tony on May 3, 2011 5:37 AM