How to get several xml elements in a relationship 1: n without using xmlaggregation

I need to create the following xml structure from an oracle database

where each survey can multiple deelnemers (participants)

I'm not sure create this use of XMLElement without getting the message "ORA-01427 subquery returns more then one line."

I could try to use dbms_xmldom (never done that before) but I wonder if anyone knows how to generate this just using the plain Oracle SQL-XMLfunctions (XMLElement, XMLAggr)

< NieuweSurveys >

< survey >

< Surveynaam > 2013 - 02 - 01 < / Surveynaam >

< Months > 2013 - 02 - 01 < / months >

< Einddatum > 2013 - 02 - 15 < / Einddatum >

< Deelnemer >

Tilde < Chairwoman > < / Chairwoman >

< Tussenvoegsel / >

DeelnemerA < Achternaam > < / Achternaam >

man < Geslacht > < / Geslacht >

< Emailadres > [email protected] < / Emailadres >

< Voorkeurstaal > nl < / Voorkeurstaal >

Schouten < account > & Nelisen < / account >

bouwer < function > < / function >

< / Deelnemer >

< Deelnemer >

Tilde < Chairwoman > < / Chairwoman >

< Tussenvoegsel / >

DeelnemerB < Achternaam > < / Achternaam >

Vrouw < Geslacht > < / Geslacht >

< Emailadres > [email protected] < / Emailadres >

< Voorkeurstaal > nl < / Voorkeurstaal >

Schouten < account > & Nelisen < / account >

Tester of < function > < / function >

< / Deelnemer >

< / inquiry >

< / NieuweSurveys >

What is your version of the database? (SELECT * FROM version$ v)

The query does not match the output that you claim that it produces.

In any case, the problem is the following:

) as "deelnemers.

Put an alias here should not generate an element - unless you are using XMLForest in your actual query without your telling us.

That's why I ask about the version of db, it could be an old bug that's been fixed now (I have not to reproduce the behavior on 11.2).

What happens when you delete the alias?

Tags: Oracle Development

Similar Questions

  • How to get several beep?

    Hello

    I want to get several beeps output if a comparison condition gives output as true.

    Can someone tell me how to get several beep?

    Put the beep function in a loop with a small wait for the statement.

  • How to get Adobe Photoshop Elements 8 to 8.1 Windows of Windows 10

    How to get Adobe Photoshop Elements 8 to 8.1 Windows of Windows 10

    Hi Jørgen,

    Please check if it is compatible or not:

    https://helpx.Adobe.com/x-productkb/policy-pricing/system-requirements-Photoshop-elements. HTML

    After that you can try to uninstall it from Windows 8.1 and install it on Windows 10.

    Concerning

    Megha Rawat

  • How to get 2 xml (brother) of the tag even time and merge them

    How to get 2 xml(Sibling tag) content at the same time and merge them and find the value of the result in the indesign file with page number

    As

    account <>

    < a > This is a text < /A >

    a-123 < B > < /B >

    < / documents >

    First of all, we need to tag A and B value as:

    It is a text - a-123 and then get this form of text from indesign doc page number

    Help, please

    Try this,

    var root = app.activeDocument.xmlElements[0];
    var aTag = root.evaluateXPathExpression("//Record/A");
    var bTag = root.evaluateXPathExpression("//Record/B");
    for(i=0; i
    

    Vandy

  • How to view NTUSER. DAT file as to the registry without using it?

    How to view NTUSER. DAT file as to the registry without using it?

    The file is from a different Windows instalation!
    I have Win 7 but it comes from my old Windows xp.

    Hi Leonnis,

    There are many ways to read the registry file without using regedit.
    Some ways:
    RegLookup: RegLookup project is dedicated to the direct analysis of Windows NT registry files. RegLookup is distributed under the GNU GPL license and is implemented in ANSI C. RegLookup provides a C API, a Python module and command line tools to access registry data structures.
    Download here: http://projects.sentinelchicken.org/reglookup/
    RegViewer: Is GTK 2.2 based registry Windows GUI file browser. It is platform-independent for the review of the files of Windows registry from any platform. Particularly useful in forensics files Windows of * nix systems.
    Download here: http://regviewer.sourceforge.net

    RegRipper:

    RegRipper is an application of forensics software open source developed by Harlan Carvey. RegRipper, written in Perl, is a tool for extracting data from Windows registry.
    Download here: http://regviewer.sourceforge.net
    KRegedit:
    kregedit is a KDE utility for the visualization of the native Windows registry files. It is similar to the regedt32 utility that is found on most Windows platforms. Only the format of the NT (NT4/2000/XP) registry is supported.
    Paulo Breim
    Centro Brasileiro Pericia

    Help, please!

  • How to combine several optional elements of ESD

    I'm trying to get a para element to allow me to type in any order, < TEXT >, perhaps an xref, then perhaps more text followed by a note and so on.

    For example, I would write something like "for more information, see"Hohoho"on page 27. If they can't help, nothing can. "Note: If you do not succeed the first time, give up to '. In other words, I wish that my Para to support the xref < TEXT >, < TEXT > note.

    Also, I would also like to be able to write "Note: think about." Now continue and see Hohoho page 27", that is to say, a paragraph that uses the element in the order note < TEXT > Xref.

    According to the the Structure FM Adobe Application Developers Guide, an ampersand means "child elements can occur in any order" and the asterisk means "child element is optional and may appear several times.

    So in General for my Para of < TEXT > & (Xref & Note) * should work, but it does not work. In the structured view, I can't past the Xref element. Validation results following after xref: "more content required at the end. I do not understand that as the ampersand indicates any order is ok and the asterisk indicates that the child element is optional. So why he insists on more content?

    Other variants of the general rule, I tried are < TEXT > & xref * & Note *: gives "document is valid", but does not any text more after the xref.

    Also tried: (< TEXT >, xref, Note) *: I have to put a Note After the xref, even if I don't want that. And even then it returns "more content required at the end.

    I wonder if FM structured cannot simply supports several child elements and if I should go back to Word or OpenOffice for an informal solution.

    Any help much appreciated.

    1roach,

    You simply use the compatible XML notation, i.e. for mixed content

    ( | Note | xref) *

    I would like to draw your attention to the fact that it helps a lot to clearly distinguish the elements 'block', and 'inline' element. The Inline elements are those beside the plain. Block elements are the equivalent of paragraphs and other top-level organizing stuff. Although it is possible to mix, I find structures that are much easier to maintain and teach if there's a clear distinction.

    Most of the people initially think that this would be a block element, assuming that it could contain more than a single sentence, perhaps even a list. So be careful with the names of items. Well-chosen names help a lot in a teaching structure.

    -Michael Müller-Hillebrand

  • How to get the XML from the Request of Java object before sending. SOAP Web services

    I'm building Java request to Online Web Services and we'll call it application A . I got the WSDL forms the second part of the file in order to communicate with their application and we'll call it application B .

    Of the WSDL file generate the Java required classes that are Requests and Responses . classes Application A will send some request object after setting the parameters required and with the exception of response object of application B .

    The connection is established and the two applications A and B communicate with each other.

    Question:

    Of application A How can I get the xml data (or text file) for the request object before sending it to application B ?

    As described the connection is passing Java object such as request and I know that in some point this request will be converted to xml file. How to get it?

    -EDIT-

    Missing important information which can be confusing.

    I'm generated the Java rating were generated using the Axis framework

    The problem is solved by, add the following statements in the bindingStub class that was automatically generated from the WSDL file to the web-services you are trying to access.

       String request = _call.getMessageContext().getRequestMessage().getSOAPPartAsString(); 
     String response = _call.getMessageContext().getResponseMessage().getSOAPPartAsString();
    

    These statements should be placed after the following method call _call.invoke otherwise you will get NullPointerException .

    _callis a variable of type org.apache.axis.client.Cal and it is automatically generated byAxis

  • How to get related data element repository products

    How to get products of data element repository using droplets


    Can help on this requirement.


    Thanks in advance.

    Hi, in Jsp, you can use as below:




                        
                             




    ~ Abdelali

  • Get all XML elements

    Hi guys,.

    I need to get all of the XML elements in the InDesign using JS documents (InDesign 5.0.4 - windows), the code below, it shows only the first node.

    for (var i = 0; i < app.activeDocument.xmlElements.length; i ++)
    {

    Alert (App.activeDocument.xmlElements.markupTag.Name);
    }

    Help me to anybodies,

    Nanan

    Hi Julie

    Try this

    aDoc var = app.activeDocument;

    getTags (aDoc)

    function getTags (ele)
    {
    If (!) ELE.xmlElements.Length) {return ;}
    for (var i = 0; i)<>
    {
           
    xrefId = ele.xmlElements [i].markupTag.name;
    $.writeln (xrefId);
               
           
           
    getTags (ele.xmlElements [i]);
    }
    }

  • ++ HOW TO GET THE XML FOR THE PRINTING OF QUOTATION?

    Summary: -.

    The customer must change a rtf in R12.
    To check this, they need generate the XML data file in order to pass through the RTF in order to generate the PDF file.

    In other modules (such as check printing), the client can get the XML data file through the output of the simultaneous query. However, quoting is not
    provided, they need to know how they can get the XML data file.

    I have already posted this in the forum citing and was asked to publish it with the XML editor team.


    Please notify.

    Best regards
    Saket

    Published by: sakesing on March 11, 2009 19:10

    Published by: sakesing on March 11, 2009 19:11

    Do the metalink Doc ID: 364547.1
    Title: Troubleshooting Oracle XML Publisher for Oracle Applications 11i

    Works the same way for R12.xx

    go to section 3.3

    HTH

    Shaun S.

  • How to get the 6th element of a C.V. value column

    Hi all

    I use Oracle Business Intelligence 11.1.1.7.131017.

    I have a column with the following formula: C.V. ("Tickets". "Number of tickets"), but since we want to only show the values advocated by the past 6 months and which is an accumulative column, we added the rank function in the filter and placed as: grade (C.V. ("Tickets". " Number of tickets')) < = 6 and for the final formula, we need the minimum value that is placed in 6th place...

    My problem is how to get the value assigned to this position?

    Here's the column values:

    30719 (value I pretend-> min)

    31357

    32025

    32595

    33652

    34616 (I also use this value-> max)

    Any idea on how to get the value placed on tier 6?

    Thanks for the help and have a good week.

    Kind regards

    Frederico.

    I found a solution (poor, but it works)...

    As a minimum I want is always located in the row = 6 I put a case when row = 6, then returns the value I'm pretending, else return 0, so after that I need only the max of all values, as they are 0 or the value that I'm pretending, like this:

    MAX (CASE WHEN (GRADE (C.V. ("Tickets". "Number of tickets')) = 6) THEN of C.V. (FILTER ("Tickets"." Number of tickets' using 'status '. ((("" Resolved "="Resolvido")) END ELSE 0)

    I want to thank you all for the help, normally I post in the forum of the ADF but its good to know I can get a lot of support here as well...

    Many thanks to all,

    Frederico.

  • How to get all the elements form Jdev10.1.3.4

    Hello
    I have a form on his land is not bound to VO. Pagedef empty.
    each element has the id and binding.
    <af:inputText label="#{r['questionnaire.surname']}"
                                  required="true" id="surname"
                                  binding="#{QuestionnaireBean.surname}"
                                  />
    I want to get an array of elements.

    for a list of links
             BindingContainer bindings = getBindings ();
             bindings.getAttributeBindings ();
    null (())

    As you request your empty pagedef, which is what you do with

    BindingContainer bindings = getBindings ();
    bindings.getAttributeBindings ();
    

    It returns null. It is the expected behavior.
    You have to walk the tree of components for all components check each of this type and get the information from the component itself. You can use something like

    // reset all the child uicomponents
    private void getAllUIItems(AdfFacesContext adfFacesContext,
                                     UIComponent component){
       List items = component.getChildren();
       for ( UIComponent item : items ) {
    
           getAllUIItems(adfFacesContext,item);
    
           if ( item instanceof RichInputText  ) {
               RichInputText input = (RichInputText)item;
               //do your work here e.g. store id in an array
               };
           } else if ( item instanceof RichInputDate ) {
               RichInputDate input = (RichInputDate)item;
               //do your work here e.g. store id in an array
               };
           }
       }
    }
    

    You may need to change the signature of the method to return the array of ID...

    Timo

  • How to get a normal white page when open a new tab, using ' + '.

    When you open a new tab, using '+', I want Firefox to open the blank page. But it shows all my sites from the browsing history. 'White page' is with images-hyperlinks to these Web pages! How to get a normal white page without images-hyperlinks in navigation history without deleting all browsing history?

    Click on the button 'Hide new tab page' in the upper right corner of the page

  • How to get the orientation angle screen with 40 Hz stably without delay to sync?

    Goal: Get orientation angle screen at 40 Hz stably without delay for synchronization.

    Problem with two situations:

    1. When you use the bbutil_swap and navigator_event_get_orientation_angle (event) to get the orientation angle screen with other data such as acceleration sensors and gyroscope data, the sampling frequency will be low grade at 10 Hz randomly. The difference of synchronization will increase from 25 ms to 100 ms.

    2. when the screen orientation angle is collected in the following code to get the angle only, the difference in timing of sampling will be 1, 2 or 5 seconds at random.

    Question: How do I get the orientation angle screen with 40 Hz stably without delay to sync?

    or something wrong in my code?

    Mini code:

    public static void handleNavigatorEvent(bps_event_t *event) {}
    switch (bps_event_get_code (event)) {}
    case NAVIGATOR_ORIENTATION_CHECK:
    navigator_orientation_check_response (event, true); If not the line, no updates on the screen rotation.
    angle = navigator_event_get_orientation_angle (event);
    break;
    case NAVIGATOR_EXIT:
    stop = true;
    break;
    }
    }

    public static void handle_events() {}
    for(; ) {
    bps_event_t * event = NULL;
    If (BPS_SUCCESS! = bps_get_event (& event, 0)) {}
    fprintf (stderr, "bps_get_event failed\n");
    break;
    }
    If {(event)
    If (bps_event_get_domain (event) is {navigator_get_domain()})
    handleNavigatorEvent (event);
    }
    } else {}
    break;
    }
    pthread_create (& t1, NULL, (void *) & rawacceleration, NULL);
    }
    }

    int main (int argc, char * argv []) {}
    screen_create_context (& screen_cxt, 0);
    bps_initialize();

    {If (EXIT_SUCCESS! = {bbutil_init_egl (screen_cxt))}
    fprintf (stderr, "bbutil_init_egl failed\n");
    bbutil_terminate();
    screen_destroy_context (screen_cxt);
    return 0;
    }

    If (BPS_SUCCESS! = screen_request_events (screen_cxt)) {}
    fprintf (stderr, "screen_request_events failed\n");
    bbutil_terminate();
    screen_destroy_context (screen_cxt);
    return 0;
    }

    If (BPS_SUCCESS! = navigator_request_events (0)) {}
    fprintf (stderr, "navigator_request_events failed\n");
    bbutil_terminate();
    screen_destroy_context (screen_cxt);
    return 0;
    }

    Rawlog = fopen (rawfilename, "w"); Save the file in a specific path.
    fprintf (rawlog, "Absorption system, Angle\n");

    navigator_request_events (0);

    While (! shutdown) {}
    handle_events();
    bbutil_swap();
    }

    closeshutdown();

    return 0;
    }

    Thank you for your attention,

    Using SENSOR_TYPE_ORIENTATION of sensor_type_t , you should be able to get > 10 Hz.  Use sensor_set_rate() to get the slower delay to call sensor_info().  Make sure not to enable sensor_set_skip_duplicates().

    However get the orientation at the 40 Hz streaming will not make your application any repsonsive more.  The only way to make your app more would be to manage the orientation change in a short period of time.  This is the time when orientation changes (at the hardware level), to receive you and to deal with it.  It is usually a constraint system and there is not that you can do about it.  What you see using the code above is the same information repeated over and over; FACE_UP, FACE_UP, FACE_UP, which is not really useful.

  • Can I get the contacts and email from an old record without using the Migration Wizard?

    Can I recover Contacts and messaging of an old record without using the Migration Wizard? Disc of the user in question has been very corrupted with several programs having a weird behavior. Migration wizard migrated corrupt files, so, even a clean install with only migrated users gave rise to an unusable installation.

    I have now all own installed now, but need old email files and contacts. How can I transfer this information a copy of the old/bad drive and only this info?

    Yes. With the old drive mounted and available, open Mail and choose import mailboxes... from the file menu of mail. In the dialog box import data from , choose Apple Mail.

    Navigate to the Mail folder to the user of the old library drive. According to the version of courier used, you might see folders named V2 and / or V3. Choose the applicable folder, and then click Choose.

Maybe you are looking for