Home » SQL & PL/SQL » SQL & PL/SQL » xmlelement (oracle 9i)
xmlelement [message #355083] Wed, 22 October 2008 09:01 Go to next message
Messages: 11
Registered: August 2008
Junior Member
Hi, the following query with XMLElement is giving following
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;
OCI-22303: type "SYS"."XMLTYPE" not found

The version I am using is
Connected to:
Oracle9i Enterprise Edition Release - Production
JServer Release - 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: 65084
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.


[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: Fri Jul 21 20:18:12 CDT 2017

Total time taken to generate the page: 0.18859 seconds