Skip to Main Content

DevOps, CI/CD and Automation

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!

xmlparser.parse fails with ORA-20100 when reading from mapped network drive

150874Sep 20 2002
Hi

I have a problem with the xmlparser when parsing an xml document from a mapped network drive. If I read the xml document from a local drive, then there is no problem.


I haven't been able to find any documentation specifying this. Is there any way to parse a file from a mapped network drive???


To clarify, I have created an example procedure, that parses an XML doc from disc, notice that the G: drive is a mapped drive:

CREATE OR REPLACE procedure test_xmlparser is
p xmlparser.Parser;
dir varchar2(100) := 'G:\Vejdirektoratet\root\xsl';
errfile VARCHAR2(32) := 'error.log';
begin
p := xmlparser.newParser;

-- set parser properties
xmlparser.setValidationMode(p, FALSE);
xmlparser.setErrorLog(p, dir || '\' || errfile);
xmlparser.setPreserveWhiteSpace(p, FALSE);

-- parse xml file
xmlparser.parse(p, dir || '\' || 'HelloWorld.xml');

xmlparser.FREEPARSER(p);

end;
/

The file HelloWorld.xml contains the following:

<?xml version = '1.0'?>
<message>
<text>Hello World</text>
</message>


When running this in SQL*Plus I get the following error:

ORA-20100: Error occurred while parsing: Invalid argument
ORA-06512: at "SYS.XMLPARSER", line 22
ORA-06512: at "SYS.XMLPARSER", line 69
ORA-06512: at "VD.TEST_XMLPARSER", line 14
ORA-06512: at line 1


Changing the value of the variable dir to 'C:\' makes it all work.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 20 2002
Added on Sep 20 2002
11 comments
531 views