How to find special cases in XML in the situation of overflow

Hello

I have a XML with repetitive data. I have a requirement to indicate the particular case of the data. For example, I should display DailyBenefitAmount of second instance, which is from 150.00 as in the example of XML code below.

I read in Documaker documentation indicating it can be mapped to XDD and with the syntax below to find the instance.
Syntax:? ("XDD_NAME", #instance)

So I mapped my XML to XDD like? ("DailyBenefitAmount") and I used the? ("DailyBenefitAmount", 2) in my DAL script, but no luck and it does not work.

Can someone shed some light, how to handle this requirement.

Example of XML

< id rider = "Rider_1" >
< RiderCode > END < / RiderCode >
< DailyBenefitAmount > 75.00 < / DailyBenefitAmount >
< BenefitCode > ALF < / BenefitCode >
< ModalPremAmt > 65.15 < / ModalPremAmt >
< / rider >
< id rider = "Rider_1" >
< RiderCode > END < / RiderCode >
* < DailyBenefitAmount > 150.00 < / DailyBenefitAmount > *.
< BenefitCode > ALT < / BenefitCode >
< ModalPremAmt > 65.15 < / ModalPremAmt >
< / rider >
< id rider = "Rider_1" >
< RiderCode > END < / RiderCode >
< DailyBenefitAmount > 300,00 < / DailyBenefitAmount >
< BenefitCode > NHC < / BenefitCode >
< ModalPremAmt > 65.15 < / ModalPremAmt >
< / rider >

XML Xpath statements can be tricky trying to cope with events. In your example where you might think this as the second occurrence of DailyBenefitAmount , it's really the 'first' DailyBenefitAmount of the second occurrence of Rider I think you want. Therefore, the Xpath statement is more like this:

Jumper [2] / DailyBenefitAmount

Now, you probably don't want to have a specific XPath statement by event, you may want to recover. For the presence to apply to an appropriate level, you must be able to be able to specify where the accident should be applied within the XPath expression. This is accomplished by using * inside the brackets.

Rider [*] / DailyBenefitAmount

When XPath is executed, the value of instance substitute in the desired node level and return the appropriate value.

Tags: Oracle Applications

Similar Questions

  • Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Photoshop CS4 - is - does anyone know how to find out if two people use the same file?

    Yes, I assumed that was the case, and I thought that this link addressed to her.  I would have thought it was more a function of your network and the OS than Photoshop.

  • How to find assets to a project of the BCC with SQL

    Hello.

    I would like to know how to find assets to a project of the BCC with SQL.

    Thank you.

    Hello.

    You can try this.


    select * from dcs_product where workspace_id in ( Select avm_devline id where the name of (select Workspace for epub_project where display_name = "${name_of_project}"));

    For each version of an asset is recorded the id workspace on the workspace_idfield. This workspace is related to the project in the field name and the workspace field in table epub_projecttable avm_devline .


    But this query must be performed from the active table. Example: Product = dcs_product, sku = dcs_sku, class = dcs_category and so on.

    Thank you rtreto for the help.

  • How to find special characters in a single query

    Dear Experts,

    Your usual help is needed to resolve the query. My query is ' how to find all special characters such as (% $* & @, ' / +-etc. in a single query?).
    Thank you.

    for example


    A_MIR
    A % SIM
    A * SIM
    SIM HAS)

    Hello

    This can work:

    select * from your_table where replace(translate(your_column,' abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890','x'),'x','') is not null
    

    Above code verifies an ascii and numbers. You can adjust the chain with other characters you want to see (exclude)

    Herald tiomela
    http://htendam.WordPress.com

  • How to find a file called mpcache in the computer?

    I found that there is that something called mpcache on my computer. I try to know how I can find this file and delete. I have read some information that suggests it could be a virus or malware but my scans of anti-virus and malware aren't revealed no problem. It is also suggested that mpcache is a file related to a download of a company called Emergingsoft, but I can't find such a named file or the program on my computer.

    Any comments that may be able to help me locate the mpcache on my computer will be very appreciated.

    Hello

    1. How did you find that there is a file called mpcache in the computer?

    2. do you get an error message?

    Use the following link to search the files and tell us about the result.

    Microsoft Windows XP - files and folders hidden view

    Hope that helps.

  • How to find password to put in place the system date and time

    I have a dell computer used (vista), while mine is in the shop, the date system and time is not set. How to find the password of Setup/system to set the time and date. I set the time and date using the Panel control, but within a few hours, it changes again in May 3,2003 Help. Thank you

    [Moved from comments]

    If you have changed the time and date in the Panel, and he continues to return to an older date, then this is probably the CMOS battery that has gone dead. If it is a loan, I wouldn't worry on this subject. If it's your own old PC, then you can change it. Is this a laptop or desktop PC? What brand and model is it?

    SC Tom

  • How to find and replace a URL in the content

    See the following page:

    http://democraticpartyofgeorgia.org/events/index.cfm?fuseaction=week & SM = 9 & SD = 9 & SY = 2007

    He pushes the margins way because some people type in long URLS in their description of the event (see the meeting September 10). I would like to be able to analyze the event description and replace that long url with a hyperlink where the long url is in the attribute href, but which is related is something link 'see link'. Is it possible to do? I can search for the instance of "" http:// ' of course, but can't seem to find a way to tell where the ends of the link... "

    Look at the ActivateURL udf to
    http://www.cflib.org/UDF.cfm/activateurl

    It's really more a question on a very long word of packaging. The URL is not packing, and it's what drives your margin. You need the column to encapsulate your column is a bit more liquid.

    Use the wrap() function CF.

    You can also go the road CSS, but the best solution I found only works on IE.

  • How to find special characters in a string of give/sentance

    Hi all

    I have a task to complete with the time to give. Because I'm not very good in PL/SQL, I need you're help.
    Condition is:

    I must come with the SQL or PL/SQL code which should return and find the hidden or special character in the name of the data files in a database. There are nearly 400 + database are present in almost any flavor of UNIX, and I need to check the database each.

    As you know, the name of the data file will be like this:
     /u02/instance_name\oradata\datafile_01.dbf 
    So, it should avoid these things and only discover the special characters in the name of the data file.
     
    a-z , A-Z , 0-9 and \ 
    Please keep in mind that... I'll be pulled the script Oracle the Oracle 9i client that will access all the databases of Oracle 9i to 11g in a short and give me the result.

    Please help me to solve this problem and let me know if you need more information.

    Hello

    Mukesh says:
    Hi Frank,.

    It is an excellent service. Thanks for you response.
    I want to change the query that... I should get only the name of these data files that are special characters of detention. I don't know how to put it in that condition. :(

    Here's one way:

    SELECT  file_name
    ,       ...     -- other expressions, if you want any
    FROM    dba_data_files
    WHERE   TRANSLATE ( file_name
                      , '?0123456789.ABCDEFGHIJKLMNOPQRSTUVWXYZ\_/abcdefghijklmnopqrstuvwxyz'
                      , '?'
                      ) IS NOT NULL
    

    Among other expressions, you can put in the SELECT clause (if you wish) is a copy of the TRANSLATE function, you had in your message. That would underline exactly what characters rendering invalid file name.

  • How to find valid cases in the truth table?

    Hello

    I am using a truth table to select the next case in my state machine. The number of possible cases is 256 with a set of 8 input of Boolean values. The following is a generic example.

    Obviously, I don't need the conditions of passage, but how to weed them out of the table?

    0          1          2          3          4          5          6          7          8          9          10        11        12        13        14            15in house?            F          T          F          T          F          T          F          T          F          T          F          T          F          T          F            Tpassed test?       F          F          T          T          F          F          T          T          F          F          T          T          F          F          T            Tscrapped?          F          F          F          F          T          T          T          T          F          F          F          F          T          T          T            T in inventory?      F          F          F          F          F          F          F          F          T          T          T          T          T          T          T            T

    The numbers along the top refer to the result of the code just before the structure case in the attached vi.

    Tay

    jcarmody wrote:

    I often do.  Take each of your eight Boolean and consolidate them in a table, convert the table number and select your case on that based on the number.  Thus, if the first fifth suite and boolean (from above) are true, you have 25 case (10011000 = 25).  You can have a case manage multiple values, separate them with a comma in the selector.  It will make you famous.

    I do the same thing, but the value of the radix of the binary display case.

  • How to find all photos in Lightroom where the original file is not found?

    Greetings

    I know there are a lot of pictures in my library in Lightroom where the original file is not found. How can I find all the photos for which this is the case? In other words, I see the exclamation point error in the upper right part of some photos and I would like to find all photos that have this condition so that I can link them to the originals.

    Thank you

    John

    In the library Module, chose the menu library/search all missing Photos

  • How to find a paragraph whose him restart the numbering [CS3] [Javascript]

    Hello

    Does anyone of you knows how to fix it:

    I do a script that needs to search for numbered paragraphs and assign it to a specific paragraph style. It should be like this:

    If the numbering of restarts (which means that it starts with 1) - the style must be '1 '.

    If the continuous numbering from where it is - the style must be 'number

    It seems simple enough in theory and even doable with simple operation "Find/replace" in InDesign, but when I went on the object model, I couldn't find a single method for my script to make the difference between the two cases. Does anyone of you know of a way to do it?

    Here's what I have so far:

    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;

    app.findTextPreferences.bulletsAndNumberingListType = 1280601709; Numbers of

    app.changeTextPreferences.appliedParagraphStyle = 'number ';

    app.changeText ();

    app.findTextPreferences = NothingEnum.nothing;
    app.changeTextPreferences = NothingEnum.nothing;

    Thank you

    OLA

    Oops - sorry. Try numberingContinue.

  • How repeat/option output values from XML in the CLOB column?

    Environment:


    Oracle 11.2.0.3 EE on Solaris


    Very much a newbie XML but try.  :-)


    I have a table with the XML stored in a CLOB (no, I can't imagine the environment but I live here).


    I need to display the data in a flat file format.  Some of the data is both optional and possibly repeat if present.


    Here's a fun sample data:


    "< res: customers xmlns: res = ' http://www.whatever.com/response ">

    < res: lastName > SMITH < / res: lastName >

    < res: firstName > JENNIFER < / res: name >

    < res: Extras >

    < res: Extra >

    HOME < res: phoneType > < / res: phoneType >

    555-555-5555 < res: phoneNumber > < / res: phoneNumber >

    < / res: Extra >

    < res: Extra >

    < res: phoneType > MOBILE < / res: phoneType >

    666-666-6666 < res: phoneNumber > < / res: phoneNumber >

    < / res: Extra >

    < / res: Extras >

    < res: lastName > JONES < / res: name >

    < res: firstName > ROBERT < / res: name >

    < res: Extras >

    < res: Extra >

    HOME < res: phoneType > < / res: / phoneType >

    123-456-7890 < res: phoneNumber > < / res: phoneNumber >

    < / res: Extra >

    < / res: Extras >

    < res: lastName > MURPHY < / res: lastName >

    < res: firstName > SEAN < / res: name >

    < / res: customers >

    I'm trying to get my output to look like this:


    Last name first name model number

    ------------- -------------- -------- ---------------

    JENNIFER SMITH 555-555-5555 HOME

    SMITH JENNIFER MOBILE 666-666-6666

    HOME OF ROBERT JONES 123-456-7890

    SEAN MURPHY


    I don't know how to get the repeated lines printed and I don't know how to get the printed line that does not contain the optional data.


    Here is the script that I have developed so far.  With my actual data I can get the printed name and I can get phone information printed out but only to the exclusion of the names. I was unable to get the data if the optional data is not present.


    I tried to refer to information from phone and then back up to 2 levels for the information of name but I receive: ORA-19110: no support for XQuery expression


    Select x.*

    client m.

    XMLTable (XMLNamespaces ('http://www.whatever.com/response' as "res") )

    , ' / res: clients/res: res/Extras: Extra '

    by the way of xmltype (m.CUSTOMER_XML)

    columns

    lastName varchar2 (80) WAY '... /... / res: LastName'

    , name varchar2 (30) WAY '... /... /FirstName'

    , varchar2 (30) phoneType PATH '.'

    , number of phone varchar2 (30) PATH '.'

    ) x

    Any help is greatly appreciated.


    -gary

    Hi Gary,.

    Are you sure the sample XML code correspond to your actual data?

    The second query expected error because the PATH expression refers to multiple targets.

    If it's really like that, the XML structure is not very easy to deal with. It would be wise to have a container element enclosing each customer information, like this:

    http://www.whatever.com/response">

    SMITH

    JENNIFER

    HOME

    555-555-5555.

    MOBILE

    666-666-6666.

    ...

    To answer your main question, you can use an OUTER JOIN to include data that do not have Extras.

    Using your original sample XML, something like this works for me:

    SQL > select x.lastName

    2, x.firstName

    3, y.phoneType

    4, y.phoneNumber

    client 5 m

    6, XMLTable)

    7 XMLNamespaces (default 'http://www.whatever.com/response')

    8, ' for $i in/clients/first name

    9 return element {} r

    $i 10 / following - sibling:Extras [1]

    11, $i/next - sibling:firstName [1]

    12          , $i

    13          }'

    14 passage xmltype (m.CUSTOMER_XML)

    15 columns

    lastName 16 varchar2 (80) PATH "lastName."

    17, firstName varchar2 (30) PATH "first name".

    18, extras xmltype PATH "Extras."

    (19) x

    20, XMLTable)

    21 XMLNamespaces (default 'http://www.whatever.com/response')

    22, ' / extras/Extra.

    23 passage x.extras

    24 columns

    VARCHAR2 (30) 25 phoneType PATH "phoneType".

    26, phoneNumber varchar2 (30) PATH "phone".

    27       ) (+) y

    28;

    LASTNAME FIRSTNAME PHONETYPE PHONENUMBER

    ------------ ----------- ----------- --------------

    JENNIFER SMITH 555-555-5555 HOME

    SMITH JENNIFER MOBILE 666-666-6666

    HOME OF ROBERT JONES 123-456-7890

    SEAN MURPHY

  • How to find edited a photo folder after the use of Photos

    Hello, I'm new to using a Mac.  I uploaded the photos to Photos and then made changes to multiple images, cropping etc...  Now I can't find the image file on the hard drive after the change of the use of the Photos app, I find only the original file.  I went to the finder, then the photo file and I find the file "Library.photoslibrary photos" so I right click and select "Show package content" then I click on the master file and look for the file in a folder.  However, the file I find does not changes that I made, it is only the original file.  I'm not sure what I am doing wrong?  Thank you

    What you're doing wrong is fiddling in the Photo library package, this will lead to tears. What exactly you are trying to achieve by finding the original.

  • How to enter special characters/symbols (i.e. the degree character) in the text boxes?

    Not a problem/w Firefox - I was wondering if there is a way to enter the special characters and characters (not on the keyboard) in the text boxes? I remember that there is a keyboard sequence that activates a context menu allowing the single character/symbol entry. Thanks in advance, Allan.

    See:

  • How to find information of disk device to the Solaris Server?

    Hi DBAs,

    I received an alert of OEM for my production DB as the below:

    Xvdo disk device is busy at 100%.

    Now, I need to dig into the present and find out where this disk device and its related information that it held 100%?

    any help would be great for a student like me

    See you soon,.

    Ritu

    Thanks for the update, rukbat

Maybe you are looking for