generate a diff xmlelements at the same level

How can you generate different xmlelements at the same level. for example as follows:
<APPLICATION NAME="test" DATE="30-NOV-12">
  <ELEMENT1>
     <ELEMENT1_ATTRIBUTE1>
  </ELEMENT1>
  <ELEMENT2>
     <ELEMENT2_ATTRIBUTE1>
  </ELEMENT2>

</APPLICATION>
item 1 and item 2 are at the same level.

I tried to generate, but have failed so far.
I want to extract data from table 1 element1, item 2 data from another table, both tables are not related.

Hello

You can nest 2 XMLELEMENTs inside an another XMLELEMENT, like this:

SELECT XMLSERIALIZE ( DOCUMENT     -- for display only
     XMLELEMENT
     ( "APPLICATION"
     , XMLATTRIBUTES ( 'test' AS "NAME" )
     , XMLELEMENT
       ( "ELEMENT1"
       , d.dummy
       )
     , XMLELEMENT
       ( "ELEMENT2"
       , u.username
       )
     )
       )               -- XMLSERIALIZE
                      AS txt
FROM         dual     d
CROSS JOIN  user_users  u
;

Output:

TXT
----------------------------------------

  X
  FUBAR

I hope that answers your question.
If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and also publish outcomes from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).
See the FAQ forum {message identifier: = 9360002}

Tags: Database

Similar Questions

  • How to display the menu bar and address at the same level?

    Firefox 4 seems good, but a major problem is that the menu bar, the bar tabs and the Navigation has a bar a clean upper-left line in the window, with mainly two effects:

    1. Much space wasted on the top right
    2. The real web window being compressed very vertically, so if you have a laptop or widescreen for another reason, then it isn't really a lot of space on the left for navigation.

    The Compact Classic add-on does not solve this problem, but with the adverse bars becoming quite small and rather hard-to-reach buttons. A better solution would be to show the menu bar and the Navigation bar at the same level, but how?

    Default on Win7, Firefox 4.0 not same poster not the Menu bar - the orange Firefox button is displayed. Right-click on the Menu bar and click on the menu bar in this context menu to deselect. When you have the orange Firefox button projection and the menu bar is hidden, you can access the Menu bar by pressing the ALT key .

    Or, you can open the toolbar Customize mode and move items from Navigation bar in the Menu bar, and then hide the Navigation bar.

    https://support.Mozilla.com/en-us/KB/how+to+customize+the+toolbar

    http://KB.mozillazine.org/Toolbar_customization

    In addition, there are a number of compact menu extensions that deal with compaction of the Menu bar down to a button that replaces the menu bar and provides a drop-down list of these menu items. Or extensions that allow you to Customize the Firefox button menu and add menu items that aren't there, but who are in the menu bar. Using most of these types of extensions involves using customize to move the items according to your tastes.

  • Easy VPN setup with interface to multiples with the same level of security

    Hello

    I want to configure an ASA 5505 with 7.2 (4) software and dual license ISP and when I configure two interfaces with the level 0 on two security interfaces and enable vpnclient the trace message appear:

    ERROR: Cannot determine the internal and external interfaces Easy VPN remote: multiple interfaces with the same levels of security.

    vpnlclient of configuration above:

    vpnclient Server x.x.x.x where x.x.x.x
    vpnclient mode network-extension-mode
    vpnclient nem-st-autoconnect
    vpnclient TUNNEL_EZVPN_TUNNELSPEC vpngroup password *.
    vpnclient username usr_ezvpn_tunnelspec password *.
    vpnclient enable

    interfaces:

    interface Vlan200
    nameif outside1
    security-level 0
    IP x.x.x.x 255.255.255.252
    !
    interface Vlan300
    nameif outside2
    security-level 1
    IP x.x.x.x 255.255.255.128
    !

    monitor the SLA to the routing:

    monitor SLA 100
    type echo protocol ipIcmpEcho 200.221.2.45 interface outside1
    NUM-package of 5
    frequency 30
    monitor als 100 calendar life never start-time now
    ALS 200 monitor
    type echo protocol ipIcmpEcho 200.154.56.80 interface outside2
    NUM-package of 5
    frequency 30
    Annex monitor SLA 200 life never start-time now
    ALS 300 monitor
    type echo protocol ipIcmpEcho 4.2.2.1 interface outside1
    NUM-package of 5
    frequency 30
    Annex monitor SLA 300 life never start-time now
    ALS 400 monitor
    type echo protocol ipIcmpEcho 200.244.168.149 interface outside1
    NUM-package of 5
    Timeout 3000
    threshold of 3000
    frequency 30
    Annex monitor SLA 400 life never start-time now

    Follow-up:

    !
    track 1 rtr 400 accessibility
    !
    Track 2 rtr 200 accessibility
    !

    routes:

    Route 0.0.0.0 outside1 0.0.0.0 x.x.x.x 100 track 1
    Route 0.0.0.0 outside2 0.0.0.0 x.x.x.x 200 track 2

    The track works normal.

    Kind regards!

    Try using the command "backup interface" on the secondary ISP interface.

    http://www.Cisco.com/en/us/docs/security/ASA/asa72/command/reference/b_72.html#wp1338585

    You need to increase the level of security to 1 for this interface.

    By default, EasyVPN uses the highest level of safety inside and the lowest outside.  Anything between the two must be set manually.  I assume you have an interior vlan defined but not added to the posted config.

  • How to make all audio at the same level?

    I have a sequence of many clips in first pro, and I could swear I've heard of a way to make all audio on the same level or db. Is there a way to do this? I have a few clips in the timeline with different levels and should be old enough to go to manually balance their volume.

    There is a way to do what you want, but it must be used with caution.  If you open the Audio Mixer Panel, select mixer of track and the track that your clips are on.  Click on the arrow at the top left of the track work (you may need to do it twice) and and access the small white window that goes down.  (See using Adobe https://helpx.adobe.com/pdf/premiere_pro_reference.pdf page 365 if you have not done this before) In the right side of this window, right-click on one of the spikes back arrow and select Amplitude and Compression and dynamics.

    The word dynamic appears in the white window at the top of channel mixer.  Left click on the word dynamic and select Edit.  I pasted below the appropriate settings.

    If you are not familiar with Compressor/Limiter, use the parameter above.

    Now read your timeline and listen carefully while I look at the counters this setting should be good for normally recorded material, and I hope that you do have to do something more. If there is still following problems may be necessary. Schedule audio below (2) drag any clip that's too soft.  All that is too strong to do drag on the calendar below that (3). For the dynamic audio editing 2 repeat the process with the effect but change the makeup to 12.00dB.  For editing audio 3 change the makeup to 0dB setting.  It's not perfect, but it should give you a low-tech solution.   I hope this helps.

  • How to set the audio to all be at the same level?

    I have a file where a speaker recorded in his laptop and sometimes he sits in his chair and his voice sounds like he's going in the background shortly. Then, later in the track, it gets closer to the computer again and the audio to good level. What the best and easiest way to adjust the audio set is stable all the way or on the same level set?

    Try the effect of speech Volume Leveler menu effects/Amplitude and Compression. There are other ways to do this either manually or using a compressor, but in this case for a quick and dirty solution, the speech Volume Leveler can do the work for you.

  • The same level everywhere in the sound project

    Hello

    I have the 14 items first.

    My film was shot in several places with different volumes.

    Y at - it a command that does the same noise level throughout the film?

    Thank you

    Eli

    There is no auto command for this.

    However, if you open the Audio Mixer Panel (under the Tools menu), you can monitor your levels and make sure they peak between-6 and zero. And you can adjust the levels for each video clip by increasing or decreasing the "elastic" yellow which crosses each clip.

    Don't trust your ears or your computer speakers. Use the Audio Mixer Panel to make sure that you analyze your audio levels with precision.

  • Allowance to the same level

    Hello

    Any who tried to the data from a child allowance to all brothers and sisters? is it possible using the available allocation functions to get there? as I found them always allocation of parent to child, as usual as @Allocate.

    I didn't want to load data on the parent level and I thought of the idea on load the dummy member to allocate data thereof to his brothers and sisters.

    Any help?

    Hello

    What you ask is doable if you follow a naming convention that reflects the name of the Member parent in the child dummy member.

    Say your hierarchy is as below:

    Total entities

    Asia

    Asia_All

    China

    Malaysia

    India

    etc.

    Europe

    Europe_All

    Germany

    France

    etc.

    Then, you can formulate your hierarchy in a more dynamic way:

    Your Member for basic is @MEMBER (@CONCATENATE (@NAME (@PARENT (@CURRMBR (Entity))), "_ALL"))

    And your stove will be @REMOVE (@CHILDREN (@PARENT (@CURRMBR (Entity))), @MEMBER (@CONCATENATE (@NAME (@PARENT (@CURRMBR (Entity))), "_ALL")))

    You can then run the calculation using these two.

    See you soon,.

    Alp

  • Can I change the default 'a' character to a version on the same level?

    The font that I use (Proxima Nova) has two and double-floor ' of the default character is doubley floors 'a', but I much prefer the version of bungalow "style alernate."

    Rather than do a find + replace each time that I use the police, for each different weight, is possible to change the value default for every time I type it display the version level?

    Probably no matter much for body copy, but I really don't like it to the display size, and I want to stay consistent when I use the police.

    Find + replace would be ok if I didn't have to do it for each weight of the font.

    Here is what the characters look like in my glyphs Panel:

    http://img69.imageshack.us/img69/918/t24q.png

    I'm under Indesign CC on OS X 10.8.5.

    If this is not possible from InDesign, anyone happen to know how to change systemic?

    Proxima Nova has 'Stylistic sets' of upper right, a context menu of the character panel choose - Opentype/Stylistic Series/1 and then as rightly says Peter make a paragraph style. You can also choose stylistic sets of opentype from the paragraph styles dialog box section.

  • Multiple values for the same column in the columns of diffétent in the same row?

    Hi all
    I wonder how you can display different values for the same column in different columns on the same line. For example, using a CASE statement, I can:

    CASE WHEN CODE IN ('1 ', ' 3') THEN COUNT (ID) AS 'Y '.
    CASE WHEN CODE NOT IN ('1 ', am') THEN COUNT (ID) AS "N".

    Yes, that will produce two columns but will produce null values to empty and also two separate registers.


    Any ideas?

    Thank you

    Are you sure that this code works for you?

    Select ID
             ,CASE WHEN MODE_CODE IN ('1', '3') THEN COUNT( No) END as "Fulltime"
             ,CASE WHEN MODE_CODE NOT IN ('1', '3') THEN COUNT( No ) END  as "Other"
    From table
    group by ID
    

    I guess the code above fails because MODE_CODE is not in your group by?

    My suggestion would be to put the CASE in the COUNT:

    Select ID
             ,COUNT(CASE WHEN MODE_CODE IN ('1', '3') THEN No END) as "Fulltime"
             ,COUNT(CASE WHEN MODE_CODE NOT IN ('1', '3') THEN No END)  as "Other"
    From table
    group by ID
    

    CASE expressions return no. when the respective conditions are true and NULL otherwise.
    COUNTY will have non-null values.

  • Access Local EJB Stateless to a diff EAR in the same Weblogic

    Hello

    EAR1 and EAR2 are deployed on the same instance of weblogic. (weblogic 10.0)
    EAR1 needs to access a session bean without local State (EJB3) deployed as a module in EAR2.

    Please let me know if the above is possible.

    EJB components located in the files from archive (.ear) different application companies or other jar EJB files is not part of the current application, are considered external components, whether or not they run in the same WebLogic Server instance. Note that local business service interfaces can be used in an application, so external components must be looked up and raised by their remote business interfaces.

    You can use either global JNDI (mappedName stateless annotation attribute) names or incorporate appropriate by file ejb - jar.xml and elements in the descriptor weblogic-ejb - jar.xml to find external components.

  • How do reset you all the volume levels of the mixer at the same levels?

    When you manually set a certain level of volume for different programs how you define all programmes at the master volume level?

    do not reinstall the sound driver, use this

    //////////////////////////////////////////////////
    OFF @ECHO
    ECHO Reset settings Volume mixer...
    NET STOP Audiosrv
    NET STOP AudioEndpointBuilder
    REG DELETE "HKLM Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore" /F
    REG ADD "HKLM Explorer\LowRegistry\Audio\PolicyConfig\PropertyStore.
    NET START Audiosrv
    /////////////////////////////////////////////////
    Save .bat & run with admin
  • How to group multiple columns at the same level and sum one

    With the following XML data, I want to simulate the following query in the model. Exactly how can I accomplish this?

    Thank you
    Kurzweil4

    < pre >
    < G_MAIN >
    < LINE_CREATION_DATE > 17 December 09 < / LINE_CREATION_DATE >
    XYZ < ITEM > < / ITEM >
    HHOENT < PLANNER > < / PLANNER >
    < ITEM_TOT_PEND_QTY > 7000 < / ITEM_TOT_PEND_QTY >
    COMPANY ABC < client_name > < / client_name >
    < CATEGORY_SEGMENT1 > UU98 < / CATEGORY_SEGMENT1 >
    < OSTAND_QTY > 1000 < / OSTAND_QTY >
    SHIP_001 < LOCATION > < / LOCATION >
    JJK < SHIP_FROM_ORG > < / SHIP_FROM_ORG >
    < ITEM_TOTAL_OSTAND_QTY > 38000 < / ITEM_TOTAL_OSTAND_QTY >
    < / G_MAIN >
    < G_MAIN >
    < LINE_CREATION_DATE > 17 December 09 < / LINE_CREATION_DATE >
    XYZ < ITEM > < / ITEM >
    HHOENT < PLANNER > < / PLANNER >
    < ITEM_TOT_PEND_QTY > 7000 < / ITEM_TOT_PEND_QTY >
    COMPANY ABC < client_name > < / client_name >
    < CATEGORY_SEGMENT1 > UU98 < / CATEGORY_SEGMENT1 >
    < OSTAND_QTY > 1000 < / OSTAND_QTY >
    SHIP_001 < LOCATION > < / LOCATION >
    JJK < SHIP_FROM_ORG > < / SHIP_FROM_ORG >
    < ITEM_TOTAL_OSTAND_QTY > 38000 < / ITEM_TOTAL_OSTAND_QTY >
    < / G_MAIN >
    < / pre >

    < pre >
    SELECT
    LINE_CREATION_DATE,
    AGENDA,
    PLANNER,
    ITEM_TOT_PEND_QTY,
    CLIENT_NAME,
    CATEGORY_SEGMENT1,
    LOCATION,
    SHIP_FROM_ORG,
    ITEM_TOTAL_OSTAND_QTY,
    sum (OSTAND_QTY)
    Of
    table-name
    Group
    LINE_CREATION_DATE,
    AGENDA,
    PLANNER,
    ITEM_TOT_PEND_QTY,
    CLIENT_NAME,
    CATEGORY_SEGMENT1,
    LOCATION,
    SHIP_FROM_ORG,
    ITEM_TOTAL_OSTAND_QTY
    < / pre >

    http://winrichman.blogspot.com/search/label/grouping

    Certainly, we can group any level that you want

    for each group with data semi flattened

    Count and sum based grouping (could be linked to the crosstab)
    How to make a total in my model?
    Where is my Total issue

    
    
    
    

    It's a group on the Date of creation
    or

    
    
    
    

    It's a grouping on the POINT

    or

    
    
    
    

    It's a grouping on the POINT and PLANNER

  • access to more than one network at the same time drive

    Hello.

    I have a computer running xp with 2 virtual machines on it, and it seems that only the first VM for load - gets network access. I use a network bridge, because I want to be able to have all the machines at the same level.

    to access the second loaded machine, it not enough that I finished first, but I have to close both and load again...

    There is no network not outgoing incoming on the second machine...

    Anyone who is familiar with that?

    Thank you

    VMware Player V 2.5.1 running XP sp2

    Home - XP sp2

    Is the second VM a copy of the first?  If so, you have probably a conflict of MAC address or a computer name or SID conflict.  Make sure that the two virtual machines have different UUID and MAC address values.  If you do not run NewSID or a similar tool to generate a new SID for the Windows installation, do it too.

  • Why all the account folders are created inside my Inbox instead of on the same plane?

    Adding 2 accounts in Thunderbird it will only create the folders, trash, Junk, sent, Archive and models inside the Inbox. I want that they all on the same level as the Inbox as in my other 3 accounts.

    This is usually defined by the IMAP server, that some have so on one level, others insist that they hang out of the Inbox.

    Take a look in the menu (alt + T) tools > account settings > server settings > advanced

    Under the personal namespace, try inserting "Inbox" but make sure that you enable allow the server to roll over. If this is the Inbox, change to «» Sometimes these work, sometimes they do not. Really depends on the server.

  • Closing a tab gives the same security that close a browser?

    Before the arrival of the tabs, we have been invited to close the browser and open a new after being on a site that has involved sensitive information.

    Closing a tab in Firefox gives the same level of security, or should I continue to close the entire browser?

    No, who does not have the same protection. Some data may be revoked by closing and restarting Firefox, but even so, you still have the data stored on the disk in the cache or cookies even if you closed all tabs open before closing Firefox.

    You can switch to private browsing to prevent storage of the data at all, or you can use clear history recent to clear the last hour or more if necessary.

    Firefox 4 and later versions Save the previous session automatically, so it is no longer need for the dialog box asking if you want to save the current session.

    Use ' file > leave ' or ' Firefox > Exit ' (Mac: ' Firefox > quit Firefox ") If you want to restore multiple windows or have problems with the restoration of the tabs.

    You can use ' history > restore previous Session ' to get the previous session at any time.

    There is also a button 'Restore previous Session' on the default on: Home home page.

Maybe you are looking for