Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

[Urgent] NXSD tag lookAhead not work, please help me to take a look.

573296May 3 2011 — edited May 3 2011
Dear 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="&quot;" nxsd:lookAhead="13" nxsd:lookFor="M" /> <element name="Female" type="string" nxsd:style="terminated" nxsd:terminatedBy="${eol}" nxsd:quotedBy="&quot;" 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 31 2011
Added on May 3 2011
1 comment
494 views