Skip to Main Content

Database Software

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!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

ID and IDREF attributes in an XSD

111414Aug 5 2003 — edited Aug 5 2003
Does anybody know if the ID and IDREF attributes within an XSD schema are implied when inserting an XML document or do I have to invoke an XML parser and do it via a DTD?

When I test the XSD no validation is being performed on the ID and IDREF attributes. Yet when I use the parser the document raises the required errors.

Regards

Andrew

Schema extra:

<xs:complexType name="PAYMENT" xdb:SQLType="XML_PAYMENT">
<xs:sequence>
<xs:choice>
<xs:element name="USER_ID" type="xs:integer" nillable="false" xdb:SQLType="NUMBER" />
<xs:element name="SERVICE_ID" type="xs:integer" nillable="false" xdb:SQLType="NUMBER" />
</xs:choice>
<xs:element name="CHARGE" type="CHARGE_TYPE" />
</xs:sequence>
<xs:attribute name="PAYMENT_ID" type="xs:ID" use="required" />
<xs:attribute name="PAYMENT_IDREF" type="xs:IDREF" />
</xs:complexType>
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 2 2003
Added on Aug 5 2003
6 comments
451 views