Selection of XML in a CLOB data which a repeating XML tags - don't know how to get each individual tag
This is an XML file that I store in a CLOB field in a table, Oracle 10
'i' <? XML version = "1.0" encoding = "utf-8"? >
< MERIDIANMASTERSEND xsi:noNamespaceSchemaLocation = "MeridianMasterSend.xsd" "xmlns: xsi =" " http://www.w3.org/2001/XMLSchema-instance ">
< MASTER_SPEC_NUMBER > 10217655 < / MASTER_SPEC_NUMBER >
< MASTER_SPEC_REVISION > 2 < / MASTER_SPEC_REVISION >
< MASTER_SPEC_DESCRIPTION > CORNNUTS JALAPENO CHEDDAR 11.3 kg in bulk FS-40 x 1-MS < / MASTER_SPEC_DESCRIPTION >
YES < RELEVANT_ALLERGEN_DATA_PROVIDED > < / RELEVANT_ALLERGEN_DATA_PROVIDED >
CASHEW nuts < ALLERGEN_ATTRIBUTE > < / ALLERGEN_ATTRIBUTE >
< ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >
< ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >
< ALLERGEN_SPECIFICATION_NAME > < / ALLERGEN_SPECIFICATION_NAME >
MILK of < ALLERGEN_ATTRIBUTE > < / ALLERGEN_ATTRIBUTE >
CONTAINS < ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >
Health Canada and the CFIA < ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >
< ALLERGEN_SPECIFICATION_NAME > food and drug B.01.010.1, B.01.010.2, B.01.010.3 < / ALLERGEN_SPECIFICATION_NAME >
SOY < ALLERGEN_ATTRIBUTE > < / ALLERGEN_ATTRIBUTE >
CONTAINS < ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >
Health Canada and the CFIA < ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >
< ALLERGEN_SPECIFICATION_NAME > food and drug B.01.010.1, B.01.010.2, B.01.010.3 < / ALLERGEN_SPECIFICATION_NAME >
< ALLERGEN_ATTRIBUTE > TREE_NUTS < / ALLERGEN_ATTRIBUTE >
< ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >
< ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >
< ALLERGEN_SPECIFICATION_NAME > < / ALLERGEN_SPECIFICATION_NAME >
< / MERIDIANMASTERSEND >
I normally query the Oracle table that stores this file XML in a CLOB column, called MDMXML by using the following query to get the different fields.
Select a.part_no, a.revision, xmltype (a.mdmxml) .extract ("/ MERIDIANMASTERSEND/MASTER_SPEC_DESCRIPTION/text()').getstringVal () 'Master Spec Description' from interspc.atmdmdata where a.master_part_no is not null")
How would be to extract the cashews, milk, soy, values of walnuts (attribute, containment level, agency of specification, the specification name) in my SQL statement above?
Otherwise, I'd be OK for a list
Glad to hear because your main requirement cannot be reached.
You cannot have a return to SELECT an unknown number of columns.
Separate line inscription makes more sense, for what is a relational database is.
Select x.*
of atmdmdata one
xmltable)
' for $i in /MERIDIANMASTERSEND
, $j in $i / ALLERGEN_ATTRIBUTE
Returns the element r {}
$j/next - sibling:ALLERGEN_LEVEL_OF_CONTAINMENT [1]
, $j/next - sibling:ALLERGEN_SPECIFICATION_AGENCY [1]
, $j/next - sibling:ALLERGEN_SPECIFICATION_NAME [1]
, $j/.
, $i / MASTER_SPEC_DESCRIPTION
}'
passage xmltype (a.mdmxml)
columns
Path of varchar2 (30) MASTER_SPEC_DESCRIPTION 'MASTER_SPEC_DESCRIPTION '.
, Path of varchar2 (30) attribute 'ALLERGEN_ATTRIBUTE '.
, Path of varchar2 (30) LEVEL_OF_CONTAINMENT 'ALLERGEN_LEVEL_OF_CONTAINMENT '.
, Path of varchar2 (30) SPECIFICATION_AGENCY 'ALLERGEN_SPECIFICATION_AGENCY '.
, Path of varchar2 (80) SPECIFICATION_NAME 'ALLERGEN_SPECIFICATION_NAME '.
) x
;
MASTER_SPEC_DESCRIPTION LEVEL_OF_CONTAINMENT SPECIFICATION_AGENCY SPECIFICATION_NAME ATTRIBUTE
------------------------------ ------------------------------ ------------------------------ ------------------------------ --------------------------------------------------------------------------------
CORNNUTS 11.3 CASHEW CHEDDAR JALAPEÑO
CORNNUTS JALAPENO CHEDDAR 11.3 MILK CONTAINS Health Canada and CFIA food and drug B.01.010.1, B.01.010.2, B.01.010.3
CORNNUTS JALAPENO CHEDDAR 11.3 SOY CONTAINS Health Canada and CFIA food and drug B.01.010.1, B.01.010.2, B.01.010.3
CORNNUTS JALAPENO CHEDDAR 11.3 TREE_NUTS
Tags: Database
Similar Questions
-
Accidentally, I bought the Mac in December and contacted support which helped me to get the right version installed, but now the PC version is not in my account downloads and I need to add it to a new computer. I don't know how to get help with this. I don't remember how I got the PC version, I think I have access to my computer remotely and she sent, but I can't find any record of it.
Since this is an open forum, not Adobe support... you must contact Adobe personnel to help
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)Creative cloud support (all creative cloud customer service problems)
http://helpx.Adobe.com/x-productkb/global/service-CCM.html -
With the tool move selected, you could uncheck Show transform controls in the options toolbar.
Another way to move the contents of the selection is rather than from the selection of the tool tool move you could press the Ctrl (windows) or command (mac) and move the contents of the selection and should not show the bounding box.
-
BlackBerry smartphones, I don't know how to get the data from the phone to the computer
I have the Desktop Manager and the telephone connected to the cable.
He seems to have only coices I want. I don't want is a full backup or restore or synchronoizing or send anything to the phone.
I want to just do a few simple things:
(1) I want to copy pictures from my phone to my computer, that I can see with the standard Windows software.
(2) I want to copy my address book from my phone on my computer, that I can see with some standard desktop application, any.
(3) I want to copy my calendar so I can see it with some standard desktop application, any.
How can I get them?
Thank you
Hi and welcome to the Forums!
JustCurious wrote:
(1) I want to copy pictures from my phone to my computer, that I can see with the standard Windows software.
See this:
JustCurious wrote:
(2) I want to copy my address book from my phone on my computer, that I can see with some standard desktop application, any.
(3) I want to copy my calendar so I can see it with some standard desktop application, any.
See these:
KB12268 Applications supported by BlackBerry Desktop Manager to synchronize
KB17022 How to set up BlackBerry Desktop Manager synchronization settings
Good luck and let us know!
-
Does anyone know how to get data from a web service of Labview with ajax or JSON?
Hello
I try to use ajax and json to service Web restful which I build with the labview. However I get errors
For example. I create a web service from a labview vi (z = x / y http://localhost: 8080/math/divide/5/20 will give {Z: "4,000,000"})
I get errors for the attached html files.
Does anyone know how to get al labview WebService with ajax or json data?
Thank you... Eran
-
Don't know how it happened but my file deleted is past the last date in an alphabetical list.
Don't know how it happened but my file deleted is past the last date in an alphabetical list. How ti to return with the last date in?
original title: deleted file.If you mean the trash in Explorer mode, simply click on the column heading "Date deleted" until the most recent appears first on the list. If you do not have this column, do a right click No matter what column header and click to put a check on 'Delete Date' in the context menu that appears.
-
I have a toshiba satellite T135D laptop and I don't know how to start my built in webcam which program should I use?
Hello George,.
I could not find this model number on the Toshiba site, so I suggest that you look at this page as a place to start your search: http://support.toshiba.com/drivers . They had a driver for a webcam, which is perhaps what you are missing. But in all cases, the Toshiba site is where you are most likely to solve the problem with the help of your webcam.
Let me know if this helps you.
Kind regards
BearPup
-
Hi, I got to come to the support with the error number 16. for some reason, my first pro no longer works and I'm still paying for I have but I had to reinstall, which I don't know how to do if
Hi Omid,
Please see the below help document to fix the error 16:
Configuration error 16. CC, CS
If the problem persists, please contact support:
Kind regards
Sheena
-
The options for my move tool bar has changed. Is no longer an automatic selection option, does anyone know how to get it back? Thank you!
You have the close option enabled bar, so it can be confusing at first.
Anyway the left most icon is that of automatic selection
If you want to return to the options bar your opportunity, go to Photoshop > Preferences > Interface and uncheck the box Enable close Bar Options , and then restart photoshop.
-
I have a LOV custom, but I don't know how to recover the selection?
Hi all
I want to recover my lov user selection, but I don't know much about the syntax.
Please advice.
Currently, I have attached a script to a button so that I can bring out a LOV.
______________________________________________________________
DECLARE BOOLEAN a_value_chosen;
BEGIN
Message ("LOV is gg to pop up.");
a_value_chosen: = Show_Lov ('LOV27');
IF this is a_value_chosen
Message ("you have not selected a value.");
Bell; RAISE Form_Trigger_Failure;
ON THE OTHER
/ * I don't know how to recover the selection of the user here... * /.
Message ("you selected a value!' |") SELECTION);
END IF;
END;There is another way to get your selection of LOV... you can not use this concept...
You must return value LOV to some parameter/item, while creating LOV. in order to check if its recoveries or not...Suppose that you have returned the value to a parameter named RETURN_VAL then...
DECLARE A_VALUE_CHOSEN BOOLEAN; BEGIN MESSAGE('LOV IS GG TO POP UP.'); A_VALUE_CHOSEN := SHOW_LOV('LOV27'); IF :PARAMETER.RETURN_VAL IS NOT NULL THEN MESSAGE('YOU HAVE NOT SELECTED A VALUE.'); BELL; RAISE FORM_TRIGGER_FAILURE; ELSE MESSAGE('YOU HAVE SELECTED A VALUE!!!' || :PARAMETER.RETURN_VAL); END IF; END;
-Aamir Arif
-
I can not even download a repair tool since when I try to download anything, that it stops at 99% and then it just stops and leave my screen.
Try a system restore to a Date before the problem began:
Restore point:
http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/
Do Safe Mode system restore, if it is impossible to do in Normal Mode.
Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.
Try a restore of the system once, to choose a Restore Point prior to your problem...
Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
http://www.windowsvistauserguide.com/system_restore.htm
Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.
See you soon.
Mick Murphy - Microsoft partner
-
In which case it is said to know when it is not installed, you can refer to:
https://helpx.Adobe.com/creative-cloud/KB/AAM-lists-removed-apps-date.html
-
Hello
Hi have you tried to change the language of the site. To change the preferred language, select file > Site Properties > content tab and select the language from the drop-down list.
Also, try to click the icon on the Panel of text, as shown below
See if that helps.
-
I need help with the backup of a new s 6. The backup screen choose watch my last backup in gray. Making it inaccessible and says iOS required 9.3.1. I have set up as a new iPhone and make sure this new phone has iOS 9.3.1, and then try to install the most recent backup?
iOS 9.3.1 just came out recently, so it's quite possible that there is an older version of iOS installed on it.
Set up as a new phone, using the same Apple ID, then update 9.3.1 (settings > general > software update).
After it is updated, restore from your backup.
-
After the end of a download of e-mail attachments should open a window asking if you want to open the file or save it. Also there is an option to always save this file type. This window is no longer arrives and automatically download all I got is saved on my desktop. Some I would just read and then close and he disappeared. Where this option window and can I get it back. Also never nothing shows in my download folder. It's always empty. This isn't the computer on what happens.
See if you can find this MIME type in tools > Options > Applications
- Press F10, or press the Alt key to bring up the 'Menu Bar' temporarily if the menu bar is hidden.
- Use "Firefox > Options" instead of "tools > Options" If the menu bar is hidden.
See also 'Reset download Actions'
Maybe you are looking for
-
bought used iphone need help to activate without sim
I bought a used iPhone 4 trying to activate, but guard saying need sim, I don't have that I just want to start so that my son can download him a few games and then I can buy a phone plan and SIM at a later date... Help
-
update 10.9.3 Mavericks and now scrolling does not work in Firefox.
I've updated yesterday, and now the wheel on my mouse (optical mouse Belkin) does not work in Firefox. It works everywhere else, but not in Firefox.
-
Satellite A100 - BSOD on startup and often refuses to load windows.
Hello I've had my laptop A100 little over 3 years now and there is a moment he began to stop loading when I lit. He would often be an opportunity "the window loading" icon and then stay there indefinitely. Then he began to spotaneously telling me tha
-
A few questions on Satellite A135-S2386
Hi everyone out there:I want to get a Toshiba A135-S2386.I was told that the battery lasts for not more than 2 hours (which is very short time).Are there devices that I can get in order to extend the life of the battery? Any ideas on price in USD?Tha
-
Windows vista SP2 update failed twice
error code 800F0816 - when the vista sp2 update is completed and the facilities, it goes in a restart, windows does not load and I get the error code after crossing the repair mode