How to remove an xmltype table .xml file?

Hi expert,

I'm in I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

I inserted 3 .xml files in an xmltype table: DOCUMENT

SQL > SELECT OBJECT_VALUE FROM document;

OBJECT_VALUE
-----------------------------------------------------------------------
<? XML version = "1.0" encoding = "WINDOWS-1252"? >
<? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
< document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
< root id = "5ca4e3cb-7298-4948-8cc2-58e71ad32694" / >
< code = c '51725-0.

<? XML version = "1.0" encoding = "WINDOWS-1252"? >
<? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
< document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
< root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34" / >
< code = c '51725-0.

<? XML version = "1.0" encoding = "WINDOWS-1252"? >
<? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
< document xmlns = "" urn: hl7 - org:v3 "xmlns: xsi ="http://www.w3.org/2001/XMLSchema-instance"xsi:schemaLoc"
action = "" urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd ' classCode 'DOC' = > "
< root id = "09ff06d6-8b85-43dd-b5cc-e22d00f02bd0" / >
< code = c '51725-0.

I tried to remove an xml file which with root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34'"

delete the document
where xmlexists (' $p/document/id [@root = "03d6a2cd-fdda-4fe1-865d-da0db9212f34"]' in PASSING OBJECT_VALUE AS "p");

but failed.
Y at - it that can help any expert?

Thank you very much!

Cow

Published by: cow on March 11, 2011 19:02

Hello

Namespace problem.
You must declare it in the XQuery Prolog:

DELETE FROM document
WHERE XMLExists( 'declare default element namespace "urn:hl7-org:v3"; (::)
                  $p/document/id[@root=$root_value]'
                 passing object_value as "p",
                         '03d6a2cd-fdda-4fe1-865d-da0db9212f34' as "root_value" )
;

Tags: Database

Similar Questions

  • How to remove missing references and audio files or instruments that popup at launch I need is no longer?

    How to remove missing references and audio files or instruments that popup at launch I need is no longer?

    For audfio missing files: go to the Project Audio Bin, mouse control select unused , and then press DELETE. And then click Save.

    Missing instruments or plugins, go to your mixer and remove/Exchange any plugins that have a '!"in all of their slot. And then click Save.

  • How to remove Trojan hider.00w white file / critical system listed. Also, I'm unable to read a CD, run Windows update (0 x 80070424) and print.

    Original title: how to remove a Trojan hider.00w file of white horse / critical system listed

    I have several problems. My system is microsoft Windows XP Media Center edition

    When I run Avg anti virus, I have a white horse of Trojan hider.00w traded criticism/system files should not be removed.

    When I try to pay my cd rom I do not receive either driver/when I try to install the drivers I get the drivers already on the system.

    When I try to use microsoft update I get the Ox80070424 error message

    my printer does not print by merging the computer.

    All of this worked until today

    30/12/2011

    Hello

    Step 1: You may need to contact the support team AVG for Trojan problem. However, you can run Microsoft Safety Scanner and check.

    Step 2: Due to Windows Update I recommend you refer to the following article.

    Error message 0 x 80070424 when you use Microsoft Update or Windows Update Web sites to install updates

    http://support.Microsoft.com/kb/968002

    Step 3: To solve the printer problem see the article mentioned below.

    Printer in Windows problems

    http://Windows.Microsoft.com/en-us/Windows/help/printer-problems-in-Windows

    Step 4: Run the following article fixit tool and check.

    Your CD or DVD drive cannot read or write media

    http://support.Microsoft.com/mats/cd_dvd_drive_problems/

  • How to insert data in the XML file?

    Hi guys,.

    How to insert information into an XML file. I tell you, I have a CFM file with some questions to the user

    When users submit this form within the form information is send in an XML file.

    How can insert this information in the XML file?

    When I don't have a DB?

    Thank you

    Kind regards

    Fabiano Magno Pechibella

    You must

    1. Read in the XML file
    2. Analyze the document in an XML (just one big struct) object
    3. Insert your XML code of the object where you need
    4. rewrite the XML file with your data now included

    You can Google 'ColdFusion working with XML' and find hundreds of items to help you. Here's a beginning tutorial to help you get started:

    Intermediate ColdFusion Tutorials - working with XML

  • How to remove line/address in PDF file?

    How to remove line/address in PDF file?

    Joan Willets

    Remove you it with text editing / retouching tools in Acrobat object or mark for redaction, so he gets blacked out.

    Mylenium

  • From the table XML file

    Hello

    Load the XML file into an Oracle Table like I did for me

    SQL> INSERT INTO EMP_DEPT (EMPNO, ENAME, SAL, DNAME)
      2 SELECT *
      3 FROM XMLTABLE('/ROWSET/ROW'
      4 PASSING XMLTYPE(BFILENAME('MYXML', 'EMP_DEPT.XML'),
      5 NLS_CHARSET_ID('CHAR_CS'))
      6 COLUMNS EMPNO NUMBER(4) PATH 'EMPNO',
      7 ENAME VARCHAR2(10) PATH 'ENAME',
      8 SAL NUMBER(7,2) PATH 'SAL',
      9 DNAME VARCHAR2(14) PATH 'DNAME'
    10 )
    11 ;
    14 rows created.
    

    Note:PASSING XMLTYPE(BFILENAME('MYXML', 'EMP_DEPT.XML')

    MYXML is directory

    EMP_DEPT. XML is the XML file for me

  • How to remove a mozilla plugin class file that I can't remove

    I have this file showed up in one of my folders. It has just a name of another file stored there, but with the extension/type TSMozillaPlugin class and I can't remove it somehow, I get the message that the file is gone. The file size is 0 and that all the thing is very strange for me.
    Would appreciate any idea on how to remove it.

    Thank you
    Guy

    http://helpdeskgeek.com/help-desk/fix-could-not-find-this-item-when-deleting-in-Windows-7/

    has worked with method 2, after a few tries

  • How to remove and delete a downloaded file

    How can I remove and delete a downloaded file. I downloaded a large file a PDF I want to remove

    You open the folder via the context menu of the PDF file?

    That should open the folder where you saved the file in Windows Explorer and there you can delete (delete) the file.

  • How to remove the easy transfer of files from computer vista.

    Title of the Moose: to find the file for easy transfer to vista to remove

    Remember - this is a public forum so never post private information such as numbers of mail or telephone!

    Ideas: How can I find and delete files on Vista transfer tool to remove.

    • You have problems with programs
    • Error messages
    • Recent changes to your computer
    • What you have already tried to solve the problem
    Hi Heighes,
     
    1. what exactly are you trying to accomplish on your computer?
     
    To completely remove the Windows Easy Transfer files and restore the 'normal' hard drive icons, try the following steps:
     
    a. open the computer, select Tools > Folder Options to open the Folder Options window
    b. in the view tab, select Show hidden files and folders
    c. right click on each of the icons (in my case - disc vista & W7 drive) hard drive and select Explorer
    d. find Windows easy transfer.exe and windowseasytrasfer autorun.inf folder and delete them from the root of the two readers
    e. restart your computer and check if the problem is resolved.
     
    Check out this link forum provided for more information below.
     
    See also:

    How to use Windows Easy Transfer to migrate files and settings from one Windows computer to another Windows Vista-based computer

    Thank you, and in what concerns:
    I. Suuresh Kumar - Microsoft technical support.

    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How do you use the config.xml file to determine which version of an application, a user will download?

    I have two APKs for the same application and I implemented the config.XML of lower version number working for all screen sizes.  The config.XML for the higher version number is set up for only the scresns large and extra-large.  Here's the code from the config.xml file.

    Version 1

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "true".
    Android: normalScreens = 'true '.
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    Version 2

    < media screens android: anyDensity = "true" android: Center = 'true '.
    Android: smallScreens = "false".
    Android: normalScreens = "false".
    Android: largeScreens = "true".
    Android: xlargeScreens = "true" / >

    When I try to download the app on Google game, only the top version is available, regardless of the size of the unit.  When I asked Google game why this was not behave as expected, they said that the file manifest for both applications is the same.  Here is the code, they shot in the manifest after having used PhoneGap Build.

    < media screens android: anyDensity = "true" android: smallScreens = "true" android: normalScreens = "true" android: largeScreens = "true" android: Center = "true" android: xlargeScreens = "true" / >

    Can someone explain why PhoneGap Build is not using the settings I set in the config.xml file?  And how to fix this?

    The tag is not a valid tag in the config.xml file. This is probably why you see the same tag in two, as the build service is ignorant.

    As to how solve you this problem. Currently, you can not, but the next version of android-cordova will include the ability to add a tag which you will be able to use like this:

  • How to display records from the xml file

    Hi all
    I created a region his area of research in reality
    with 5 elements and array of result area

    I want to search records based on the 5 elements and want to view output table


    I have the table name as hr_api_transactions, which contains many columns



    and also, this table contains a column
    name TRANSACTION_DOCUMENT of type CLOB()
    that files xml columns for each record
    I want to extract data from this xml file and want to display.

    Instance of the view - put the name of VO with which you are extracting data

    Discover the attribute and the attribute of file View - could see attribute by which you found the content of the file

    File name substitution - is not mandatory, let him

    The MIME type of the file: do not place anything, need to better manage programmatically through. Put the code in the below processRequest() method

    OADataBoundValueViewObject contentBoundValue = new OADataBoundValueViewObject(downloadBean,
      "FileContentType"); // here "downloadBean" is bean of message Download item
    downloadBean.setAttributeValue(FILE_CONTENT_TYPE, contentBoundValue);
    

    -Anand

  • How to use FM OmegaT processed XML files?

    How to convert files in XML (or any other file format that supports the file format that can be used in T Omega) FM so that it can be imported into the translation software open source OmegaT?

    I have a use [Save as] create an XML file, an error message appears when I try to import in Omega T and but I'm unable to translate the file.

    I am trying to use XML files for translation into Omega T, is because in the past, the person who is in charge of editing the file FM would create a text file with sentences to be translated. I would then import the text file in OmegaT to translate and send the text file with the phrases translated to the editor. This could then be edited in a file of FM.

    It would not be a problem if the content to be translated was small. But in some cases there is a large amount of content that must be translated which would take more time to change the FM files.

    What I want to know is if I could use a file format that can be used in Omega T and then be able to convert this file to FM without the Publisher re - edit the file.

    Concerning

    Denjiba-manual

    With regard to the function "Save as XML" in FrameMaker:

    You may know that in FrameMaker, you can work with 'structured' and regular documents.

    When you use "Save as XML" with a document ordinary FM, the resulting XML is simply an output format and are not suitable for reopening in FM. You can translate the XML resulting, but once you return to the FM file, you need to reapply the formatting and the initial numbers back into place. (At least this is what I know of FM8.)

    Otherwise, when you work with an application of structure in FM, you can save documents structured FM in XML format for editing. This means, you can change (translate) the XML document outside FM and open the (translated) XML file published in FM.

    OmegaT regarding:

    I see two ways of translating a document of FM with OmegaT. For both, you will need the Okapi Framework to convert your files into an intermediate format.

    One way requires that your document is a document structured in FM, you can save in XML format for editing. The XML document has probably none of the types of documents that can be translated immediately OmegaT. You can, however, use a utility of the framework of the Okapi to extract translatable text in the XML document in a XLIFF file. Later, you can merge the translated text in the original XML file, which you can bring in FM.

    The other way is similar, but starts with an of FrameMaker MIF file. In this case, regardless of whether or not the document of FM is structured. Of course, there is a MIF Filter for the frame of the Okapi, which allows you to extract the translatable text of MIF in an XLIFF file. Just like above, you can later merge the translated text in the original MIF file. However, the MIF Filter is in beta state, so don't expect it to work perfectly.

    More on the Okapi Framework can be found at http://okapi.opentag.com.

    All that being said, I only played a bit with OmegaT and Okapi. At work, I use an old version of Trados.

    Johannes

  • How to remove the disc from the files Panel

    The folders pane shows a number of connected external drives.  Now, I have deleted all the files on a disc and want to remove this record from the files Panel.  This empty disc is not highlighted as are all the other drives connected.  Question: How do I remove this disk to store the files Panel?

    When you delete the last folder empty under a drive, the drive itself should disappear from the folder Panel.

    Gossweiler beat

    Switzerland

  • How can I recover the index.xml file?

    I can't open a document Pages I've recently worked on. I get this message: I can't open a document, I worked on. I get the message: the requested index.xml file is missing.  What should I do? Thank you, Miriam

    You have two versions of Pages on your Mac and tried to open an incompatible v5 Pages document, while the Pages ' 09 still worked. You simply leave the Pages ' 09 (the purple ink bottle icon) and then double-click on the same document for it to open correctly in your version of Pages v5 (yellow paper with the pencil icon).

  • How to remove system error memory image files using vista

    When I use the disk clean under performance of the computer, it will not clean the system error memory dump files

    If you go to C:\Windows\Minidump

    What do you see? What happens when you try to delete the files?

    =====================================================

    Maybe your system is configured to save other dmp files - so check the
    definition of here and look in this folder.

    How to configure Windows to create MiniDump on BSOD files
    http://blog.NirSoft.NET/2010/07/27/how-to-configure-Windows-to-create-minidump-files-on-BSOD/

    Regardless of their location, you must be logged in as an ADMINISTRATOR and
    have sufficient permissions in the folder they are located there.

    I hope this helps.

Maybe you are looking for

  • Bootcamp 6.0.1 does not move

    I have a MacBook Pro 15 beginning 2011 with Bootcamp running as well as a whole bunch of questions. I have an iso Windows 8.1 on-site as well with the installation disc in my files. I have the iso burned on a dvd as well and used disk utility to do.

  • Should I replace a disc by disc identical to another server?

    Question from newbie here: I have a server with SAS drive failure predicted and I hope to retire this server within a month. At the same time, I have an another 2950 that have recently been removed and (if possible), I would like to re - use a drive

  • Version authentic windows message

    My eMachines WHAT PSU netbook on board failed a few months ago, so I bought a damaged screen unit and replaced the motherboard on my defective unit. Now, I get a message telling me that my computer is not running a genuine version of windows. I check

  • Freeze the positions of the table

    I made a table that has 4 columns and title for the columns go like nutrient, meaning symptom solution now this table is too big to fit on one page a4, I'm running it on other pages. Now is it an option that my column headings appear on each page, so

  • No right click Add?

    Hey DWers-I tried adding a none option to right click on my site. I know that it is a bit churlish and goes against the community spirit that has made the Internet what it is today, but at the same time, I paid for all but one of my images (permissio