XMLSequence EXCERPT from HEAD and DETAIL in ORACLE 9.2

Hi, sorry for my English I'm from Argentina.

I have this XML:

<? XML version = "1.0" encoding = "UTF-8" standalone = "yes"? >

< arrayOfServicio >

< Service >

Authentication < number > < / number >

WS < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > RequestTicket < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< Service >

Consultas < number > < / number >

wsConsultas < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > GetVigencia < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< Metodo >

< Number > GetSiniestralidad < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< Metodo >

< Number > GetAgrupados < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< Metodo >

< Number > GetSiniestralidadPorCuil < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< Service >

Referencias < number > < / number >

wsReferencias < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > TablaReferencia < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< Metodo >

< Number > ListadoReferencia < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< Service >

< Number > General < / number >

WsGeneral < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > GetServicios < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< Service >

< Number > eServicios < / number >

wseServicios < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > SetComunicacion < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< Service >

< Number > VentanillaART < / number >

wsVentanillaART < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > ObtenerNovedades < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< Service >

Establishments < number > < / number >

wsEstablecimiento < description > < / description >

< activated > true < / Activo >

< version > 1.0 < / Version >

< MetodosEntity >

< Metodo >

< Number > GetConsultaPorCuit < / number >

< activated > true < / Activo >

< version > 1.0 < / Version >

< / Metodo >

< / MetodosEntity >

< / Servicio >

< / arrayOfServicio >

I work in ORACLE 9.2 and I wrote this query, but the result is not correct, I need join HEAD and DETAIL in a certain way, but can not do...

Select extractvalue (value (head), '//Servicio/Nombre/text ()');

ExtractValue (value (Head), '//Servicio/descripcion/Text ()');

ExtractValue (value (Head), '//Servicio/Activo/Text ()');

ExtractValue (value (Head), '//Servicio/version/Text ()')

, extractvalue (value (retail), '//Metodo/Nombre/text ()')

, extractvalue (value (retail), '//Metodo/Activo/text ()')

, extractvalue (value (retail), '//Metodo/Version/text ()')

of arwt_ws_return x

, table (xmlsequence (extract (x.x_xmldoc, ' / arrayOfServicio/Servicio '))) Chief

, table (xmlsequence (extract (x.x_xmldoc, ' / arrayOfServicio, Servicio, MetodosEntity, Metodo'))) in detail;

II really appreciate your help.

Thank you!

Hello

You can do so by the head of the second XMLSequence element. In this way, you keep the correlation between the parent and its children:

Select extractvalue (value (head), ' / Servicio/number ') as srv_nombre

ExtractValue (value (head), ' / Servicio/Descripción ') as srv_desc

ExtractValue (value (head), ' / Servicio/Activo ") as srv_activo

ExtractValue (value (head), ' / Servicio/Version ') as srv_version

ExtractValue (value (retail), ' / method/number ') as met_nombre

ExtractValue (value (retail), ' / Método/Activo ") as met_activo

ExtractValue (value (retail), ' / Método/Version ') as met_version

of arwt_ws_return x

, table (xmlsequence (extract (x.x_xmldoc, ' / arrayOfServicio/Servicio '))) Chief

table (xmlsequence (extract (value (head), ' / MetodosEntity/Servicio/Metodo "))) in detail

;

Please also note:

-you don't need a descendant axis (/ /) If you know the exact path

-you don't need to go to the text() node if you use extractvalue

Hope that helps.

Tags: Oracle Development

Similar Questions

  • How to separate the invoice header and details by a blank page in between

    Hello

    I need to print an invoice report where there should be a blank between the header and the details.
    I have company to print the invoice on both sides of a page so that the details starts on 3 empty page on page 2.

    In other words, how to insert a page break in the RTF template, such that there will be a blank page between invoice and detail at the exit heading.

    Help, please

    Thank you
    Yogi

    Published by: Yogi on January 25, 2013 15:55

    Try the example that I gave you

  • Excerpt from drivers and then nothing

    Hello

    I have a photosmart c4680 (c4600 all-in-one printer).  The disc supplied with the printer has no drivers for my computer which is running windows 7 (64-bit), so I came here to download. Before I download, but a year ago I had to uninstall for one reason or another. I have never been able to download it again. I have download the drivers and double-click the file. He begins to extract and goes to 100%, but then nothing. Some help would be wonderful.

    Hello
    Follow the steps below and check if it solves the problem:

    1 open the Mcafee Virus and Spyware Protection software you are interested in, click on calendar and perform analyses. Click analysis in real time, and then click stop. Never select and confirm by clicking the button turn off.
    2. open the dialog box run by clicking on the Windows key and the R key on your keyboard. Type %windir%, and then click OK.
    3. type hpoins*.dat in the search bar at top, if there is that no result rename the extention in old instead of dat. (e.g. hpoins1.old)
    4. type hpwins*.dat in the search bar at top, if there is that no result rename the extention in old instead of dat. (e.g. hpwins1.old)
    5. start the Run dialog box by clicking the Windows key and the R key on your keyboard. Type MSIEXEC /Unregister. in the Run dialog box and click OK.
    6. launch the Run dialog box by clicking the Windows key and the R key on your keyboard. Type MSIEXEC/REGSERVER in the Run dialog box and click OK.
    7 restart your PC
    8. run the installation file and check all difference.
    9. Once you have finished, remember to open McAfee and re-enable real-time scanning.

    If the steps above does not help to solve the problem, open the Device Manager and devote the processor category, if you have an AMD processor trying to install the patch below:
    http://ftp.HP.com/pub/softlib/software12/COL40390/OJ-98352-1/HPAMDC50PATCH.exe

    Kind regards
    Shlomi

  • How to set a fixed length scheme, composed of several documents of different types, with details of the header and footer in points 22 and 23, namely having 10 for 20 for detail header and 30 for the footer

    How to set a fixed length scheme, composed of several documents of different types, with details of the header and footer in points 22 and 23, namely having 10 for header, 20 for retail and 30 for the footer.

    Here is the sample file

    DDWTYBILL13092502572 1000000112\\NHLSFS\ORACLE\ORACLE\BILLING\VERIFY\ 2013/09/25 01:19:08 BILLEND

    DDWTYBILL13092502572 2000000212PRIVATE PRIVATE STY5572142 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731543 Suspect 91TB? (AC) EMPIEEM A2 Z03.0 05-AUG-201305-AUG-201324-SEP Z03.9 - 2013FEND 113,60 TYGERBERG HOSPITAL Ward

    DDWTYBILL13092502572 2000000312PRIVATE PRIVATE STY5572149 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731548 empyema GMP A2 Z03.9 05-AUG-201305-AUG-201324-SEP Z03.9 - 2013FEND 113,60 TYGERBERG HOSPITAL Ward

    DDWTYBILL13092502572 2000000412PRIVATE PRIVATE STY5572351 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731584 Suspect 91TB? EMPIEEM? CA Ward HOSPITAL TYGERBERG Z03.0 Z03.9 A2 05-AUG-201305-AUG-201324-SEP-2013FEND 113,60

    DDWTYBILL13092502572 2000000512PRIVATE PRIVATE STY5572352 010700 INV 12STYD000789 02-AUG-20130000010472 STY STY 1100611006MGIT NNM DIMPHANA, CN, CELESTE NERINA 9 January 1964 TYG A2 DR OF PREEZ 5602181 63301345 TB731585 Suspect 91TB? EMPIEEM? CA Ward HOSPITAL TYGERBERG Z03.0 Z03.9 A2 05-AUG-201305-AUG-201324-SEP-2013FEND 113,60

    DDWTYBILL13092502572 2000000612MAJOR MAJOR STY5577530 010700 INV 12ZTYG000009 02-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS ZOZI, S, SIYAMBONGA 27 March 2010 TYG D3 DR MARCELIN 5602181 113799662 TB731663 lymphadenitis Ward D3 TYGERBERG HOSPITAL I88.9 Z03.9 07-AUG-201307-AUG-201324-SEP H1 - 2013MEND 58,52

    DDWTYBILL13092502572 2000000712MAJOR STY5577537 MAJOR 010700 INV 12ZTYG000009 06-AUG-20130000010472 STY STY 1100611006MGIT 91 NNS DLAMINI, N, SIMON TYG 9 October 1976 F1 DR WZESE 5602181 135524676 TB731666 Suspect Ward TB F1 TYGERBERG HOSPITAL Z03.0 Z03.9 H1 07-AUG-201314-AUG-201324-SEP - 2013MEND 58,52

    DDWTYBILL13092502572 30003034120000003032END

    You can create a nXSD the use of the Native Format generator and advanced search attribute is used to read values to a specific position and use it as the choice. You can find an example here

    http://docs.Oracle.com/CD/E11036_01/integrate.1013/b28994/NFB.htm#BGBBAJFD

  • When you use Adobe Acrobat Pro DC, how do I convert my PDF to Excel and have it include the header and footer from the original PDF? I can't get it on down to the Excel worksheet.

    When you use Adobe Acrobat Pro DC, how do I convert my PDF to Excel and have it include the header and footer from the original PDF? I can convert all information of an organization but the footer and header with no discharge in the excel worksheet.

    Hi trudyb54940538,

    Converting PDF file to sheet Excel spread, header & foot is not included.  I am able to reproduce the problem at my end.

    Thanks for reporting the issue.

    Kind regards
    Nicos

  • I've set up a website in Muse. Any excerpt from fine to preview in a browser. When I download the file to make it live I am getting this error some files on the server may be missing or incorrect. Clear the cache of the browser, and then try again. If the

    I've set up a website in Muse. Any excerpt from fine to preview in a browser. When I download the file to make it live I am getting this error some files on the server may be missing or incorrect. Clear the cache of the browser, and then try again. If the problem persists, please contact Web site author. Art seems to be fine and the host site says it's probably coding error. What should I do?

    Hello

    Have you tried a few steps in the following article

    "Some files on the server may be missing or incorrect" Warning Message

    See if that helps. Let me know if you have any question.

  • Create a custom with detail header and Associates then detail report

    I am very new to CRMOD, so this question may be simple, but I didn't found any good material yet to help me, so that's.

    We try to create a submission report which will be sent to our customers. The report must have a header and the detail section essentially as follows:

    < header >
    Quote form
    Date:
    Expiration date:
    Name of the vendor:
    Customer name and address
    Conditions
    ... of other text data...

    < detail >
    Standard fields that define the quote, these are easy.

    What I can't determine how to do is create the header section. In Report Designer, it allows only a title, logo and one other line of text. Can someone suggest another method?

    Make sure that you have the privilege of Scripting analytics. (Role management-step 4)

  • How to select from multiple cuts manual header and line in SO?

    Hello!

    I have several manual discounts header and lines in Advanced Pricing. How to select in orders? I read somewhere that to apply a discount, just go to the line and press the "Discount", but I couldn't find this button anywhere. I remember before I am just pressing the lov (...) in the unit selling price and I can choose manual reduction (if I'm not mistaken), but now, when I pressed it, it only apply the first discount manual I have (I have defined it 2 manual sheds). Can someone help me with this? Is the mentioned "Discount" button was the lov (...) in the unit selling price?

    Thank you.

    Use the button Actions to "The sight adjustments." That should allow you to see and apply modifiers are qualified to order.

  • Why Nav, header, and footer keep disappearing from web pages on DW CS4

    When I open a page of website file, it shows an asterisk, which means that a change has been made since the last save - nav, header and foot have disappeared!

    When I check the nav, footer and header, they're all astericks too, and I have not changed anything, because the last I looked on the pages.

    After panicking, I learned to do a right click on the file at the top of DW tab, and click on restore to get the pieces missing back, but why doesn't this keep happening?  Thank you!

    InJoy salvation,

    I mentioned yesterday a book that might be useful. It's * build your own

    Standards Compliant Website Using Dreamweaver 8, * written by Rachel Andrew,.

    published by Sitepoint Pty, Ltd 2005.

    It of an old book of basic, but explains the side Server includes and CSS

    styles quite clearly. Chapter 8, page 225-234 talks on the creation of the

    side Server and how it works so that the CSS style sheet includes

    - and how and why are sometimes not visible!

    So forget everything I've said because I really don't understand this myself, but

    Today, more than before after having read Chapter 8.

    You can buy the book the Sitepoint site, or it's probably in a lot of second

    stores hand holding books or even the library.

    Fun to read.

    Sunovice

  • Overflow of the header and not the foot

    Hello

    I use a multiline text field.  With the mask set on B, I have more than 1024 characters at any given time.  When reading data from an XML in the field. It prints several pages. I know overflow is not supported for MultiPage a multiline text field, but the overflowing of header... and not the footer?

    Is this a bug or am I missing something?

    Thank you very much

    Hi Sid,

    Please ensure that you have enabled the copy options of overflow in header and footer. Also please check multiline properties can cover, can develop.

    Please give abs, abs in the page footer section and activate the copy of overflow for this article and try it.

    Please let me know if you need any additional details...

    Thank you

    Senthil Kumar

  • virus/spam pop-up windows in the words of 'header and body' of the email

    Yesterday, when I was using firefox 15 to retrieve my emails, I found the header words & some words in the email body (such as subject, date and a few words in the body of the text) have been highlighted. As I moved the cursor to these words hi - lite, pop ups of spam/virus appeared - as you do $xxx.00 monthly, a young girl with tantalizing message face, etc..

    At first, I thought that my 15 firefox has been altered. I've upgraded to firefox 17, and the same thing happens again.

    I then had a live chat with a support technique earthlink.net last night, thinking that it was a problem (see below) earthlink. He saw the pop ups on the screen also and suggested I used IE to access my emails, which did not have these pop-ups "surprised." Thus, he concluded that the problem is with the firefox browser.

    Since Mozilla/firefox have no live chat. I need to send you this mail. My question is: is my browser firefox very corrupted I need to stop using it, and remove everything related to mozilla/firefox in the c drive?

    Thank you very much in advance
    George Ling

    (Email removed by mod)

    Hi george it looks like a problem maybe caused by adware/malware on your pc. Please go to firefox > addons > extensions & remove any suspect entries (toolbars, the things that you have not installed intentionally, I don't know what purpose they serve, etc.). also, go to the windows control panel / programs and remove all toolbars or potentially unwanted software from here and do a full scan of your system with the security software you have in place or another tool like the free version of malwarebytes.

    Fix Firefox problems caused by malicious software

  • 4620 prints extra blank page except for her print header and footer on the blank page

    4620 all-in-one, I am trying to print an email from the firefox browser, there is only a single page, but the printer prints 2 pages. The second page has only a header and footer on that printer. I only want a page and select 1 page, but still.

    Hello and thank you for the HP forums. To resolve this problem, you must first restart your computer. Holder of restarting the computer, unplug the power cord at the back of the printer, while he is always under tension. Unplug the power cord from the power source and wait 30 seconds. Plug the power cord directly into a wall outlet (not in a surge protector) and connect the power cord to the back of the printer. Repeat the print job. If the problem persists, try using a different browser such as Google Chrome or Internet Explorer.

  • excerpt from the previous version of create

    Hello!

    Is there a way to create and save a snippet of the block diagram for an earlier version? I realized that even if I save my VI for the previous version and open, the excerpt from png created by this version sooner is always LV 2014 version.

    Is it possible somehow?

    Thanks for the info!

    It should not conflict with those, but there was a bug in VIPM which caused the CTC to enter in conflict with itself in certain circumstances. You can read about it in the CTC support thread starting here. According to the changelog, the latest on the LAVA (3.2.3) should solve this. If you got all of the network tools, it's probably not the updated, so you should get the lava. If this isn't the case, I've also posted a temporary for the support wire, in order to get that one.

  • Excerpts from continuous data acquisition

    Hello

    I want to make an acquisition of continuous data with a NEITHER-6133 @ 1ms per channel. The data must be stored on hard disk. At the same time, I want to take excerpts from acquisition to calculate different values. The acquisition of the extract must be triggert by an external digital trigger.  Are there examples, which combine continuous data collection and collection excerpts?

    Thank you very much.

    Best regards

    Michael

    System

    Windows 7

    LabVIEW 2012

    NOR-6133

    Thanks to the support of NOR-Germany, I found a solution for me:

    1.) continuous trigger switch

    Connect 2) the trigger for the signal to a digital i/o

    3.) synchronize AI and DIO

    Excerpt 4.) the samples needed by the search within the digital waveform pattern

    Result:

    The example shows 4 IA channels Cup (tested on Win7, NI PCI-6115, 4 channels each 5. MECH / s) and calculation on extracts from each channel signal triggered parts.

  • After installing something from windows update my computer start Startup Repair each time and said "a hard disk problem is preventing Windows from start" and turn off.

    Hello

    After installing something from windows update (about 300 MB in size) my computer start Startup Repair each time and said "a hard disk problem is preventing Windows from start" and turns off.
    Then a window pops up saying "Startup Repair cannot repair this computer automatically.
    The details of the problem say;
    Problem event name: StartupRepairV2
    Signature of the problem 01: AutoFailover
    Signature of the problem 02: 6.0.6001.18000.6.0.6001.18000
    Signature of the 04:65537 problem
    Signature of the problem 05: unknown
    Signature of the 06 problem: BadDisk
    Signature of the 09 problem: unknown
    Signature of the 10:1168 problem

    System Restore does nothing, and all the other tools of recovery. :(

    Please help, it will be much apreciated :)
    DOM

    If you are sure that the problems began immediately after installing a Windows Update, use the free support of MS here:
    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.  MS - MVP - Elephant Boy computers - don't panic!

Maybe you are looking for