Results 1 to 2 of 2

Thread: XDBResource.xsd

  1. #1
    Join Date
    Jan 2004
    Posts
    2

    Question Unanswered: XDBResource.xsd

    Hello,

    How could I extend the XDBResource.xsd schema with my own attributes?

    I've tried something, but it is not working.

    I wrote a schema:
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xdbres="http://xmlns.oracle.com/xdb/XDBResource.xsd">
    <import namespace="xdbres" schemaLocation="/sys/schemas/PUBLIC/xmlns.oracle.com/xdb/XDBResource.xsd"/>
    <complexType name="ApproveType">
    <complexContent>
    <extension base="xdbres:ResourceType">
    <sequence>
    <element name="Approved" type="string" default="false"/>
    </sequence>
    </extension>
    </complexContent>
    </complexType>
    </schema>

    When I try to register, a get this:
    ORA-31000 : The '/sys/schemas/PUBLIC/xmlns.oracle.com/xdb/XDBResource.xsd ' is not a xml schema document...

    I play this resource game, because I want to store extra attributes for each resource.
    How could I reach my goal? (anyway...)

  2. #2
    Join Date
    Jan 2004
    Location
    Venezuela
    Posts
    151

    Re: XDBResource.xsd

    Really I am not expert in Development stuff but I hope this can help you:

    ORA-31000 Resource 'string' is not an XDB schema document

    Cause: The given schema URL does not refer to a registered XDB schema.

    Action: Make sure the specified schema has been registered in XDB.

    XML API Reference - XDK and Oracle XML DB Contents / Search / Index / PDF
    XML Database Developer's Guide - Oracle XML DB Contents / Search / Index / PDF
    XML Developer's Kits Guide - XDK Contents / Search / Index / PDF
    http://otn.oracle.com/pls/db92/db92....emark=homepage
    Joel Pérez

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •