Home » SQL & PL/SQL » SQL & PL/SQL » xmlelement (oracle 9i)
xmlelement [message #355083] Wed, 22 October 2008 09:01 Go to next message
rohitupgzp
Messages: 11
Registered: August 2008
Junior Member
Hi, the following query with XMLElement is giving following
error
SQL> select XMLElement("label",
  2   XMLElement("variable",
  3   XMLAttributes('FROM1' as "name"),
  4   FROM1
  5   ),
  6   XMLElement("variable",
  7   XMLAttributes('FROM2' as "name"),
  8   FROM2
  9   )
 10   )
 11   from example;
ERROR:
OCI-22303: type "SYS"."XMLTYPE" not found

The version I am using is
Connected to:
Oracle9i Enterprise Edition Release 9.2.0.7.0 - Production
JServer Release 9.2.0.7.0 - Production


[Updated on: Wed, 22 October 2008 10:39] by Moderator

Report message to a moderator

Re: xmlelement [message #355086 is a reply to message #355083] Wed, 22 October 2008 10:40 Go to previous message
Michel Cadot
Messages: 64103
Registered: March 2007
Location: Nanterre, France, http://...
Senior Member
Account Moderator
Indent your query, even with code tags (that I added) it is not readable.

Please read OraFAQ Forum Guide, especially "How to format your post?" section.
Make sure that lines of code do not exceed 80 characters when you format.
Indent the code (See SQL Formatter).
Use the "Preview Message" button to verify.

Post a test case: create table and insert statements along with the result you want with these data.

Regards
Michel

[Updated on: Wed, 22 October 2008 10:47]

Report message to a moderator

Previous Topic: SQL GROUP BY
Next Topic: Schema analyzed
Goto Forum:
  


Current Time: Sat Dec 03 15:57:22 CST 2016

Total time taken to generate the page: 0.15162 seconds