Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old June 30th, 2004, 11:11 AM
thordiddy thordiddy is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2004
Posts: 40 thordiddy User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 8 h 17 m 12 sec
Reputation Power: 5
Exclamation Converting XMLTYPE to other datatypes

I was wondering how I could go about converting entries in an XML object into other datatypes such as varchar2. I read on the oracle site that table functions can do this, but I have no been able to find any websites with further information on the subject. If anyone can give me some insight as to how to convert XMLTYPE to other datatypes, it will be greatly appreciated.

Reply With Quote
  #2  
Old July 4th, 2004, 03:06 AM
swstephe swstephe is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2004
Location: Brunei, Borneo Island, South East Asia
Posts: 9 swstephe User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via Yahoo to swstephe
Once you have an XMLTYPE object, just call "GetStringVal()", "GetClobVal()" or "GetNumberVal()" on that object. Could be as simple as:

select xmltype.createxml('<foo>text</foo>').GetStringVal() from dual;

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Converting XMLTYPE to other datatypes


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway