How to read a CLOB file and choose one of the node
I have the table with one of its datatyp as CLOB, I need to read a particular node only.Ex
Table tesxml has two ColonneD id, xml and the xml field is a CLOB that includes data as shown below.
<?xml version="1.0" encoding="UTF-8"?>
<alert>
<type0 comment="section in XSL component" name="Initial Information">
<details>
<Priority>0001</Priority>
<Date>2010-06-29</Date>
<Initial_Information></Initial_Information>
</details>
</type0>
</alert>
now I need to select id, < value(from xml) Date >, < value comment >o/p should look like
0000,2010-06-29,section in XSL component
I tried these queries, but I'm doing something wrong with the syntax...SELECT alert_internal_id,EXTRACTVALUE(VALUE(c), '/Date') datee
FROM (SELECT id,xmltype(xml) xml FROM tesxml),
table(XMLSEQUENCE(EXTRACT(xml, '/alert/type0/details/'))) c;
select dbms_lob.read(HTML_FILE_KEY,alert,type0,details,Date) from alerts
MichaelS says:
What is your version of db?You can do it in 11 GR 2
or even 10g...
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> with t as (
2 select xmltype('
3
4
5 0001
6 2010-06-29
7
8
9
10 ') xml from dual
11 )
12 --
13 --
14 select x.*
15 from t,
16 xmltable ('.' passing xml
17 columns prio varchar2 (5) path '/alert/type0/details/Priority',
18 dt varchar2 (15) path '/alert/type0/details/Date',
19 type_comment varchar2 (25) path '/alert/type0/@comment') x
20 /
PRIO DT TYPE_COMMENT
----- --------------- -------------------------
0001 2010-06-29 section in XSL component
SQL>
Tags: Database
Similar Questions
-
need to upgrade hdd 250 GB how I transferred all of the files and opperatting sys win xp sp3 new disk hard ad not lose any
Hello
You cannot transfer the operating system from one hard disk to another. But you can use the backup utility to backup data and restore it on the new hard drive.
Reference:
Install, reinstall, or uninstall Windows
http://Windows.Microsoft.com/en-us/Windows/help/install-reinstall-uninstall
How to use the backup utility to back up files and folders in Windows XP Home Edition
http://support.Microsoft.com/kb/308422
How to use the backup utility to back up files and folders in Windows XP Home Edition
http://support.Microsoft.com/kb/320820
How to use Backup to protect data and restore files and folders on your computer in Windows XP and Windows Vista
http://support.Microsoft.com/kb/309340 -
Please tell us the steps to swap out the bottom of Harry Potter for the standard Firefox... while I like it, the background is too busy at the top of the screen of my laptop. Thank you
See http://support.mozilla.com/en-US/kb/Using%20themes%20with%20Firefox#w_managing-themes-and-personas
Choose 'Default' for the default theme of Firefox.If this answer solved your problem, please click 'Solved It' next to this response when connected to the forum.
Not related to your question, but...
You must update some plug-ins:
- Plugin check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
- Shockwave Flash (Adobe Flash or Flash): updated Flash in Firefox
-
I need to restore iniside files a file in the order in which they were initially created, namely "unsequence" them. Should be simple and obvious, but I'm dead end (after decades of bits and bytes that the average life of most Americans. I'm embarrassed but need help!
- Open the folder
- Click view and make sure details is selected (click to select if it is not)
- Right-click anywhere in the column headings, and then click on check creation Date
Now, simply by clicking on the column heading "Date of creation", you can sort by creation date, click again to reverse sort on date of creation.
Tricky
-
How to read a text file and then view the content as a string
I also want to strip the string from a certain substring, and convert the string into an array of floating-point numbers. I thought the use of playback of the worksheet vi, but I not know exactly if it will work. Any help would be greatly appreciated.
It is here that 8.6. All you had to do was wire the 'chain after' the chain of worksheet to the table.
-
How to delete all personal files and documents before giving the laptop to a parent
I want to give my Dell used laptop, Windows Vista, for my granddaughter. I would like to permanently remove all financial, personal info and docs before that.
http://www.ehow.com/how_7327478_clean-information-before-selling-laptop.html
-
I am running Windows 7. How to read a MDI file?
I am running Windows 7. How to read a MDI file
See http://office.microsoft.com/en-us/help/HP062193601033.aspx Security Microsoft MVP, 2004-2009
-
How can I solve this problem?
Original title: with a peogram I deleted some of my documents folder undeletable file and after reboot I see who lost the icon on my desktop, how can I restor my file and desktop icon?
Have you tried a System Restore yet? Restore to a previous State could solve your problem.
For Windows 7 and Vista: [link]
For Windows XP: [link] (scroll down to restore from a Restore Point)Also, could you please tell us what do you delete?
Thank you
Digilodger -
How to open an .art file and save it in another format (jpeg)?
How to open an .art file and save it in another format (jpeg)?
Hi michaela.
Please refer to the below discussion,
What is an .art file? and how can I open them offline? Yahoo Answers
How to change an art. AOL file in a jpeg file. I tried... - Q & A
Let us know the results.
Kind regards
Mohit
-
This is my first time using this forum. I hope that my question made its appearance and that this space is to respond to the answers possible, but just in case, here's my question again:
On a PC using Windows and Adobe Reader, I sent 10 PDF files in a zip file and each label of the PDF file with a number from 1 to 10, so that they appear in the order I want. Numbered 1 to 9 records fell in the sequence automatically, but the number 10 appears under the number 1 instead of below the number 9. I googled the problem, do not see addressed. I called Microsoft, and they said it's a matter of Adobe. If anyone can help I would be grateful.
Thank you.
Not an Adobe issue at all. If you want your files to a single digit (1-9) to appear before the 10, you must add a zero at the beginning.
01
02
03
04
05
06
07
08
09
10
-
Is there a way to get around the word 2013 hijacking of the process 'to create a pdf file' Acrobat Pro? Then right click on a doc file and choosing "create a pdf file"... .the process Acrobat will beging but then Word 2013 jumps and creates problems.
Hello
Acrobat X doesn't support office in 2013. You will need to upgrade to Acrobat 11.0.1 or higher to use the feature to create a PDF file.
Otherwise, you can open the Word file and print to PDF using the Adobe PDF printer. But it is not as rich as the one created by PDFMaker.
Thank you
Tanvi
-
I have used Muse on a 30 trial and created a site and added my own domain name and it is now online. I now want to muse and edit and add a few things, but I don't know how to do it? I open the software, go file and tried to open the site, but there is nothing there?
Please provide a screenshot of the design view after opening the file, also the url of the site online.
In case the trial is expired, you need to upgrade your membership/registration.
Thank you
Sanjit
-
I can't find a newer version of adobe flash player for ubuntu 14.04, I tried to use the apt version but it wouldn't work and I don't know how to use the tar.gz files and install, I think the current version to .deb
Hi LF12,.
The latest version of Flash Player for Linux is 11.2.202.400. The current versions of Flash Player are displayed here http://www.adobe.com/software/flash/about/. The versions on the page are updated with each new version.
--
Maria
-
How to convert a text file and give the table
Hai
How to convert a text file and give the data of the tableISN'T THERE!
You must put this
SET_BLOCK_PROPERTY ('TEST_MS', insert_allowed, property_false);
SET_BLOCK_PROPERTY ('TEST_MS', update_allowed, property_false);just before the last exception...
Published by: Dora on January 19, 2010 14:54
-
Yesterday, 18:46 Some time ago, when I went to my files using Windows Vista, I could already see the preview of the images in my folder. But now, all I see is either a glass with brushes (the MS Paint logo) for JPG images and a background painted with paint brushes on my BMP images. So, how to get back to see previews in my folder?
I also have another problem: in a few other cases, I see that the name of the program or file when I have the view defined as tiles, details or list. But when I choose one of the views icon (or small icons, medium icons, large icons and Extra large icons) I don't see the name of the program or file.
How can I solve these 2 problems?
I think I can answer the first question. I'll check back for an answer to your 2nd question.
RE: Can't see thumbnails (excerpts), only the icons
Start button > in the search box, type Folders options > view tab > ONE- always check "show icons, never thumbnails" > OK for the benefits of others looking for answers, please mark as answer suggestion if it solves your problem.
Maybe you are looking for
-
Satellite L - water damage and the laptop does not light
Hello I don't know if this is the right forum for this, but I was just wondering if someone could give me some advice. My brother spilled some water on my laptop 3 days ago (argh!). He immediately turned off and won't start up again. I stamped it tow
-
PXI chassis not found after reboot host
I use a chassis SMU-1073, Win7 and Labview 12.0f3 on the host. After a restart of the host, MAX is unable to find the frame and I need to reboot the host. Rebooting usually works, but often it is necessary to power down of the PXI chassis too. It is
-
How to link the value of its output of the PDM file name
Hello I want to store data in a file of PDM. The complete data acquisition is running through a sequence in a while loop. At the end of the sequence, I've now included another frame where I would record the acquired data. Timing information is irrele
-
I hope I am posting this in the right space... on windows xp sp3. At the start of the installation Assistant starts... want to install and unknown device... (not tried to install anything in a long time) Looking in the Device Manager, there are two e
-
HP ENVY 15 Noteb: HP ENVY 15 Notebook PC lost Scruews
Hi help me out for my laptop if possible scruews sent scrues otherwise it wil demmage my body of laptop Ramakant Sharma [Personal information]