Retrieve the full document

I have a question.
I can retrieve from an XMLType just the value of a leaf. For Example...
SELECT extractValue(xml_content,'/PurchaseOrder') from xml_data;
In case I want try to retrieve all the original XML document, what should I execute?

Marco, you should use EXTRACT and not EXTRACTVALUE becuase ExtractValue can retrieve value of only one leaf node.
SELECT EXTRACT(xml_content, '/') from xml_data
/

Similar Messages

  • To retrieve the PRT document (a PDF file) and insert the doc in PM order

    Hello guys,
    I have a challenging task in from printing as follows,
    By using TC: IW3D we get print preview of PM Order Set (PM Print Program: YIPRJT01), currently the PRT document number prints in the PM Order. Now we have to insert the PRT documents (a PDF file) into the PM Order set rather than printing the PRT document number ( By using TC: IW33 by going OPERTIONAL TAB we will get the PRT document(a PDF file))
    The requirement is to retrieve the PRT document (a PDF file) and insert the document in PM  order set with out navigating separately by using the TC: IW33.
    If you run the script in the print preview we can able to see PM the order set along with the PRT document (a PDF file).
    Thanks & Regards
    Vishnu

    I'm also trying to print PRT document with shop papers and still not able to do so. I selected "P" for print on the control key and it should print but still didn't print.
    If I understand it right, I think you are trying to do the same.
    Have you resolved this issue ?
    Thank you,
    Sam

  • I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    I set up my new iPad, then deleted the Pages documents on my old iPad, but this had the effect of deleting them on my new iPad too because they are synced. How do I retrieve the deleted documents?

    Sorry no. That's how it works.
    Check if you still have an old backup and do a restore otherwise it's gone.

  • Why will my Imac (1 yr old) only print the full document in half a page?

    Why will my IMAC only print the full document in half a page? All updated IOS downloads.  My Laptop Mac does not do this, so I feel it is not the printer, but the actual computer.  The full document is printed, it is just half a page, other half is blank.  This is presenting a huge problem for school and also when I need to print a shipping label ( which I do often) for my business.  I have several printers and it performs the mistake on all of them.  Thank you!

    Make sure the scale in the Print window is set to 100%

  • How do i retrieve the word document format

    I write a java program which writes a word document in to a BLOB in oracle database. and i retrieve the word document from the database and flush the output to a word document in local path. i do get the output and the word document is saved to my local path, but when i try to open the document it opens ina junk format which cannot be read.. how to preserve the format of the document??
    here is the sample code..
    I open a connection.......
    File fileIn     =     new File("C://input.doc");
    FileInputStream     finput     =     new FileInputStream(fileIn);
    BufferedReader br     =     new BufferedReader(new InputStreamReader(finput,"Cp1252"));
    String lStrDoc_name     =     "1011";
              Conn.setAutoCommit(false);
              String lStrQuery     =     "insert into TESTPDF (" +"DOC_NAME,"+"DOCUMENT,"+"DOC_URL) "+" values(?,?,?)";
              pStmt = Conn.prepareStatement(lStrQuery);
              pStmt.setString(1,lStrDoc_name);
              pStmt.setBlob(2,newblob);
              pStmt.setString(3,"C://testing.doc");
              pStmt.executeUpdate();
              pStmt.close();
              Conn.commit();
              Statement     st     =     Conn.createStatement();
              ResultSet rs= st.executeQuery("select DOCUMENT from TESTPDF where DOC_NAME = " + lStrDoc_name + " for update");
              if(rs.next())
                   oracle.sql.BLOB blob=((oracle.jdbc.driver.OracleResultSet)rs).getBLOB(1);
                   System.out.println("BLOB-------->"+blob);
                   OutputStream outbb=blob.getBinaryOutputStream();
                   for(int i = 0; i < fileIn.length(); i++) {
                        outbb.write(br.read());
                   outbb.flush();
              rs.close();
              Conn.commit();
    Later i read the blob and store my output...
    the code is as follows....
    String lStrQuery     =     null;
              String lStrDoc_Name     =     "1011";
              String lStrDoc_Url     =     null;
              Blob newBlob     =     null;
              InputStream     fInput     =     null;
              BufferedReader br     =     null;
              FileOutputStream     fOutput     =     null;
              lStrQuery     =     "Select * from TESTPDF where DOC_NAME=" +lStrDoc_Name;
              try {
                   pStmt     =     Conn.prepareStatement(lStrQuery);
              } catch (SQLException e2) {
                   // TODO Auto-generated catch block
                   e2.printStackTrace();
              try {
                   rs = pStmt.executeQuery();
                   if(rs.next())
                        lStrDoc_Name     =     rs.getString(1);
                        newBlob               =     rs.getBlob(2);
                        lStrDoc_Url          =     rs.getString(3);
                        if(newBlob != null)
                             fInput = newBlob.getBinaryStream();
              } catch (SQLException e3) {
                   // TODO Auto-generated catch block
                   e3.printStackTrace();
              String lStrOutputFileName     =     "C://"+lStrDoc_Name+"testing.doc";
              try {
                   fOutput     =     new FileOutputStream(lStrOutputFileName);
              } catch (FileNotFoundException e5) {
                   // TODO Auto-generated catch block
                   e5.printStackTrace();
                   byte b;
                   try {
                        while ((fInput.read()) > -1) {
                             b = (byte) fInput.read();
                             fOutput.write(b);
                   } catch (IOException e4) {
                        // TODO Auto-generated catch block
                        e4.printStackTrace();
    The word document is stored in my local path.. but iwas not able to read the document. it opens in some ascii format..
    Your help is appreciated..

    BufferedReader br = new BufferedReader(new InputStreamReader(finput,"Cp1252"));Preserving the format would include not mangling it by using a Reader to read it. If you want to preserve it byte for byte then only use InputStream and OutputStream.

  • HELP! Premiere pro could not retrieve the 'my documents' folder location?!

    Hi
    I just installed Creative Cloud and downloaded Premiere CS6.
    When I start it, I get two dialogue boxes saying the same thing...
    "adobe premiere pro could not retrieve the 'my documents' folder location. The application will make use of a temporary folder for this session..."
    When I then go to export to Media Encoder, it crashes repeatedly.
    I am unable to find the My Documents folder on my system - it's a new system and must have been set up strangely.
    Can someone please help here as I am unable to run my video editing business when I can't export files!
    Thanks
    Geoff

    As far as I know "My Documents" is a Windows thing... giving more information when asking a question is a good thing... Information FAQ http://forums.adobe.com/message/4200840
    If you are on Windows, search http://search.microsoft.com/search.aspx?mkt=en-US&setlang=en-US for help on creating that folder

  • Retrieving the Full Path of the Document / Folder in Search results

    Hello,
    We have a custom portlet to perform search in knowledge directory. We are able to retrieve the results from knowledge directory and would like to know on one enhancement feature.
    Would like to know if it is possible to retrieve the directory structure / path of the document / folder. Something like "\Knowledge Directory\Customer Service\...." I have seen this path come up in search results when using Portal Admin. Not sure if it is available when using the idk.dll
    Below is a sample code in C#. Would you know if there is a way I can retrieve the directory strcuture. If so, what method would give me that value? I tried GetURL, but that gives me the URL of the document http://portal/.....as compared to the path.
    ===== 
    using Plumtree.Remote.Portlet; 
    using Plumtree.Remote.PRC; 
    using Plumtree.Remote.PRC.Search;
    //Establishing Session with Portal
    IRemoteSession session = RemoteSessionFactory.GetExplicitLoginContext(new Uri(portletPortalAPIPref), username, password);
    ISearchFactory searchFactory = session.GetSearchFactory();
    searchRequest = searchFactory.CreatePortalSearchRequest();
    searchRequest.SetQuery(txtSearchText.Text);
                //Setting up the Search Parameters – Objects to Search, Order By, Number of Results
      ObjectClass[] objectTypes = { ObjectClass.Document, ObjectClass.DocumentFolder };
      searchRequest.SetObjectTypesToSearch(objectTypes);
       searchRequest.SetResultsOrderBy(PlumtreeField.NAME);
       searchRequest.SetOrderAscending(true);
      searchRequest.SetResultsCount(0, RecordCount);
    //Executing the Search
    searchResponse = searchRequest.Execute();
    resultSet = searchResponse.GetResultSet();
      //iterate through the results
    IEnumerator resultsfolder = resultSet.GetResults();
    while (resultsfolder.MoveNext())
                        IPortalSearchResult result = (IPortalSearchResult)resultsfolder.Current;
    Convert.ToString(result.GetRank() + 1);
    result.GetIconURL().ToString();
    result.GetURL().ToString();
    result.GetName().ToString();
    result.GetExcerpt().ToString();
    result.GetLastModified().ToString();
    result.GetClassID().ToString();
    result.GetObjectID().ToString();

    Have you tried getting the extended data and the Parent Folder ID. (Plumtree.Remote.PRC.IExtendedData)
    Using an additional object search to get the Path for the Parent Folder ID.
    Here is a snippet that may help
    Plumtree.Remote.PRC.IObjectManager objectManager = session.GetObjectManager(Plumtree.Remote.PRC.ObjectClass.<your class to return>);
    Plumtree.Remote.PRC.IObjectQueryRow qResults = objectManager.QuerySingleObject(<id of object to return>);
    if (qResults != null)
        Plumtree.Remote.PRC.IExtendedData ied = qResults.GetExtendedData();
        if (ied != null)
           sResult =  ied.GetStringValue(<property you want to return>);

  • IOS 4.2 email attachment word file not displaying the full document

    I have just downloaded iOS 4.2 and have noticed that an issue that bugged me on the iPad has now made it's way to my iPhone.
    Every day I receive an email with an A4 size word file attached, that contains a full page table. When I viewed the attachment on my iPad (running iOS 3.2) the last column of the table would be cut off. If I viewed the same file on my iPhone (running iOS 4 or earlier), I could see the whole document.
    The issue didn't annoy me when it was only on the iPad as it was more important for me to view the file on the iPhone, but now the issue has crossed over to the iPhone with the update to 4.2, the last column of the table in the document is being cut off. Changing the layout of the file is not an option.
    Any ideas?

    I am having the same issue, getting the message "Presentation can't be opened." since updating ipad and keynote to latest version.
    Have apple commented on this yet?

  • HT5361 How do I attach a PDF document and have it display as an icon, not the full document?

    When I attach a PDF file to an email message, the entire document displays.  How do I have the attachment display as an icon?

    Try using Applications/Utilities/Terminal - copy and paste the line below and hit return. Worked for me.
    defaults write com.apple.mail DisableInlineAttachmentViewing -bool YES

  • Need help retrieving the full license key for Photoshop 7.0 in order to re-install CS3 upgrade.

    Reinstalling a licensed version of Photoshop CS3. It's an upgrade from 7.0 and it's asking for the full key for 7.0. Where can I find that?

    If you did not register with Adobe, this may help.
    How To Recover Your Lost Software Serial Numbers

  • IDK : How to retrieve the kd document's icon

    Hello.
    I am using ALUI G6 portal and IDK.
    I want to list all the documents from a specific kd folder and display their icon (this icon is based on the content type) using the IDK.
    When performing a search, I can get the icon URL using :
    ISearchResult.getFieldAsString(PlumtreeField.ICON_URL)
    Is it possible to retrieve this same information from an IDocumentManager ?
    Thanks for your help.

    Hello Joel.
    Thanks for your reply.
    Indeed I can limit the PortalSearchRequest, and if it's not possible to display the documents icon using the IDocumentManager then I will use it.
    The truth is I don't like to use a feature to perform something it wasn't designed to : I want to use the PortalSearchRequest if the user needs to perform a search. I do know where the documents are, therefore no need to search.
    However, most of times the end justifies the means, so I'm pretty sure I will surrender to the PortalSearchRequest.
    Ideas and opinions are welcome.

  • Why is word not receiving the full document from reader?

    When I convert a PDF document to a word document, some of the document is coming across correctly. How do I fix this?

    Can you share a sample of the original and converted documents (http://forums.adobe.com/thread/1408375)?
    [topic moved to ExportPDF forum]

  • How should I print the full document though e-print?

    Dear Sir,
    I am totally confused about e-print facility. I tried to send an e print  e-mail through my mailing id from Nokia phone. But I found that the e-print facility worked on my printer but only the body of the e-mail was printed and nobody will come to know from whose e-mail  id this e-mail has come for the direct printing on the printer because no information gets printed, except the letter nothing is been printed. Please help me to configure this e-print facility. 

    Hello kingamit,
    ePrint was designed to give you a clear clutter free print from your printer when sending with ePrint. There is currently no option to print with the senders information. You can have the sender enter the information into the body of the email if you need to know who sent it.
    Although I am an HP employee, I am speaking for myself and not for HP.
    If I have resolved your issue, feel free to provide Kudos and make sure you mark this thread as solution provided.

  • HT4059 I am unable to email the full document of notes that I've taken. It only emails the last 4 notes on the section.

    I've taken a ton of notes in ibook's. I've never had a problem emailing them and printing them in their entirety before now. I can't get the complete page of notes to email. Only the last four will email. I've tried restarting my iPad. I've tried syncing and emailing from my iPhone 4s and it still only sends the last four. I even tried to trick it by editing the notes. Still only the last four will email. Any ideas?

    I've taken a ton of notes in ibook's. I've never had a problem emailing them and printing them in their entirety before now. I can't get the complete page of notes to email. Only the last four will email. I've tried restarting my iPad. I've tried syncing and emailing from my iPhone 4s and it still only sends the last four. I even tried to trick it by editing the notes. Still only the last four will email. Any ideas?

  • Retrieve the status in the contract document tab in master agreement

    Hi,
    I am unable to retrieve the status in the contract document tab in master agreement. Please help me if you know the code.
    Regards
    Swastik

    contractsColl=doc.getContractDocuments();
    contractBean =contractsColl.get(0);//retrieve the First document
    phase=contractBean.getCurrentPhase().getDisplayName(session);
    Phase gives the status of the contract document. in this case the Status of the first contract document.
    iterate through the collection to get the individual contract documents and perform a similar operation to retrieve the respective status.
    Regards
    Immanuel

Maybe you are looking for

  • Compressor 4.0.4 Has Terrible Reviews. What Gives?

    Several reviews in the App store mention crashing at startup. Really? seems hard to believe. If i do purchase this app, should i run a Final Cut Pro uninstaller to try to avoid some possible errors? I really want to upgrade, but the reviews are just

  • Photoshop CC 2014 crashing when I try to open or save

    I am experiencing a crash in Windows 8.1 using the cc2014 Photoshop Update too. The crash occurs whenever I try to open or save. I have tried the solutions that worked for some with previous versions including: removing the preference files uninstall

  • Photoshop images with spot channels in Indesign CS6 (layout question)

    I've got an Indesign CS6 layout that will have a spot varnish when it goes to press. Right now I've got a layout with psd files that have spot channels in them that will be used for the spot varnish. My question is, in Indesign when I'm laying this o

  • Failed to open the target schema error

    Hi, I am using JDeveloper 10.1.3.1. I created a soap service in ESB to consume one of Jive forum web service and a routing service to supply information to the soap service to call a method in the web service. When I tried to create the mapping, I go

  • "original file could not be found" help needed please

    Hello and help...please i have a new laptop, so i saved my itunes music library to an external drive to transfer it to the new machine. I uploaded to itunes with the simple 'add folder' option and all my songs appeared in itunes everything is great i