Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> XPath via HTTP
Hi,
I'm having trouble getting back multiple results from 9i Release 2
over 8080.
I can get single results back OK:
http://servername:8080/oradb/SCOTT/EMP/ROW[EMPNO='7369']
brings back:
<?xml version="1.0" ?>
- <ROW>
...but
http://servername:8080/oradb/SCOTT/EMP/ROW[EMPNO='7369' or EMPNO='7499'] brings back:
<?xml version="1.0" ?>
<ERROR>ORA-19003: Missing XML root element name</ERROR>
.. so, obviously, I am missing the root element and would be getting back something like:
<ROW>
...
</ROW>
<ROW>
...
</ROW>
My question is how do I provide a root element?
Alternatively, can I get Oracle to pass back the raw XML (or can it just send back a string without validating any XML), so I can wrap it in a root element myself? I am issuing the HTTP request from inside a C# .NET component, so I can manipulate the XML once I get it.
Thanks,
G.
Received on Thu Jun 17 2004 - 08:49:50 CDT