Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: XML RegisterURI syntax question
"Gerald Rosenberg" <No_at_address.net> wrote in message
news:MPG.1aabf6245f25a5b0989720_at_news.concentric.net...
>
> Cannot seem to fathom the correct syntax for the
> DBMS_XMLSCHEMA.registerURI function. Specifically, I am trying to
> register a schema that simply exists on local storage.
>
> BEGIN
> DBMS_XMLSCHEMA.registerURI('www.acertiv.com/xdbdoc/testgbr.xsd',
> 'File://D:/DevFiles/XMLSchemas/TestGbr1.xsd');
> END;
> /
>
> Gives:
>
> BEGIN
> *
> ERROR at line 1:
> ORA-31001: Invalid resource handle or path name
> "File://D:/DevFiles/XMLSchemas/TestGbr1.xsd"
> ORA-06512: at "SYS.XDBURITYPE", line 45
> ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 163
> ORA-06512: at line 2
>
> Thanks,
> Gerald
Gerald,
The basic problem is that the FILE protocol is not supported by this procedure. The valid protocols are HTTP, FTP, DB, and XDB. Please refer to p.28-5 of "Oracle 9i XML API Reference - XDK and Oracle XML DB".
Douglas Hawthorne Received on Wed Mar 03 2004 - 14:46:02 CST