ORA-19003 or " XML document must have a top level element" Accessing Table Data with the DBUri Servlet in a Browser (Doc ID 391118.1)

Last updated on FEBRUARY 08, 2017

Applies to:

Oracle Server - Enterprise Edition - Version: 10.1.0.2 and later   [Release: 10.1 and later ]
Information in this document applies to any platform.
Checked for Relevance on 30-Aug-2010

Symptoms

  • Querying table data with the XDB DBUri Servlet in a browser similar to the following:
	http://localhost:8085/oradb/SCOTT/EMP/ROW[MGR=7839]
  • The query is expected to return multiple rows


  • One of the following errors is displayed instead of returning the resultset:
   XML document must have a top level element. Error processing resource
http://localhost:8085/oradb/SCOTT/EMP/ROW[MGR=7839]..."
   <ERROR>
ORA-19003: Missing XML root element name
</ERROR>

Cause

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms