need to insert a node before a node without terminals in a variable

Hello

I have a script something like this, I have a variable x that contains an xml underneath, where the un_node1 and the un_node2 are endless. I want to insert a new node (which is also un_node2) just before the 1st un_node2. basically the new node that I have to insert should be the first un_node2 boundless.

Can you please help me do this? I'm doing it in one of the streams in OSB.

I tried to use an action insert to do this by having the xpath like:. / *: un_node [1]. But it does not work with a validation failure saying "xquery is not an independent current node."

< r: var_root >


< name r: un_node1 = "xxx" >
< r: value >... < / r: value >
< / r: un_node1 >

< name r: un_node1 = "yyy" >
< r: value >... < / r: value >
< / r: un_node1 >
< name r: un_node1 = "zzz" >
< r: value >... < / r: value >
< / r: un_node1 >

< name r: un_node2 = "aaa" >
< r: value >... < / r: value >
< / r: un_node2 >
< name r: un_node2 = "bbb" >
< r: value >... < / r: value >
< / r: un_node2 >
< name r: un_node2 = "ccc" >
< r: value >... < / r: value >
< / r: un_node2 >


< / r: var_root >

Whatever the XQ is valid if it says nowhere?

. / *: un_node [1]

It should be

. / *: un_node2 [1]

or, perhaps, even (sometimes it makes a difference, but I don't remember if it's the one case, sorry):

(. / *: un_node2) [1]

Vlad

< signature="" link="" removed="" by="" moderator,="" as="" per="" the="" otn="">FAQ >

Tags: Fusion Middleware

Similar Questions

  • Inserting a node on an element empty &lt; af:tree &gt; via the context Menu


    My requirement is to create a tree node by using the option "Insert" through the context menu when the component of the tree is empty. By clicking on the option insert a node should be created in the tree. But currently the context menu don't appear unless a node exists in the tree of.


    JDeveloper Version: 11.1.1.7.0

    Fig-component of the tree on a layout of Stretch

    1.jpg


    Fig - context menu to insert added to the Tree component

    2.jpg


    Fig - context menu is not display when no available tree node

    3.jpg

    The component of the tree grabs only necessary to render space and only in this space, you can access the context menu. As you do not have a jet of node, the space to make the tree is very small or didn't exist at all.

    You can add a showPopupBehavior (pointing to the popup of context menu) to FY: tree which should give you the popup anywhere in the tree.

    Timo

  • Insert a table before the table...

    I need to insert a small table before an existing one.

    "myTable" is a reference to an existing table

    checked with select() - InDesign knows he's here

    myTableTF = myTable.parent; TextFrame that is parent of myTable

    now, this should create a table?

    Filler = myTableTF.tables.add (LocationOptions.BEFORE, myTable, {columnCount:2, bodyRowCount:1});})

    - and all I get is this error;

    "Cannot create filler error: invalid value for the ' reference' parameter 'Add' method." Expected Table, XMLElement, XmlStory, TextFrame, text, PointInsertion, TextStyleRange, paragraph, TextColumn, line, Word, character, story or cell, but receipt table. »

    What is the correct way to insert a table before one?

    Try to use myTable.storyOffset for the LocationOptions instead...

    Substances

  • Satellite Pro P100: I need to remove some software before installing Vista

    My Satellite Pro P100 needs the following software uninstalled before installing Vista: -.
    Norton Internet Security
    Bluetooth Stack for Windows by Toshiba
    ConfigFree

    Toshiba has plans to release a version of Vista the last two?

    Hello

    I put t know that Toshiba exactly, but all the tools and utilities will be available for download after the official launch of Vista.

    A friend of mine told me that it may happen that all software will not be created separately for the facility, but as a set of software. I put t know where he found this info, but let's see how it will work.

    By the way: pile of BT for Vista is available on the Toshiba BT page. Check it out under the http://aps.toshiba-tro.de/bluetooth/

    Good bye

  • I need to uninstall I-Tunes before the upgrade to Windows 7 and I'm afraid that I do; lose the music library?

    I need to uninstall I-Tunes before the upgrade to Windows 7 and I'm afraid that I do; lose any music library?  I'll be able to download I Tunes and recover my music library >?
    original title: Windows 7 upgrade from VISTA?

    Hi Jrawie,

    If you want to upgrade Windows Vista to Windows 7, you won't lose iTunes music library. However, there is a chance of losing the music of iTunes library if you choose custom installation.

    You can see the Microsoft article for more information on the upgrade:

    Upgrade Windows Vista to Windows 7

    http://Windows.Microsoft.com/en-us/Windows7/help/upgrading-from-Windows-Vista-to-Windows-7

    You can also view the article mentioned for more information:

    Windows 7 Upgrade Advisor

    http://Windows.Microsoft.com/UpgradeAdvisor

    Let us know the results.

  • Whenever I restart my pc I need to fix my indexing before I can search anything.

    Whenever I restart my pc I need to fix my indexing before I can search anything. Why? Is there a way to fix this?

    You can try to turn it off and on through Control Panel > everything in Control Panel > programs and features > Windows turn on or off features in the left pane. > Indexing.

  • I always get informed that I need to insert a removable media, small footprint.

    I always get informed that I need to insert a removable media, small footprint. Can I use icloud? If so, how?

    Ask people to support iCloud.

  • The education of Acrobat version converts PDF to tif or jpeg files?  I need to insert tif or jpeg in cadd 2013 drawings

    The education of Acrobat version converts PDF to tif or jpeg files?  I need to insert tif or jpeg documents in cadd 2013 drawings

    There is no difference in functionality between the degree in teaching and a standard license. Yes, you can convert a PDF to TIF or JPEG files.

  • Do we need to disable Adobe products before reloading? Can I backup and restore without disabling? Reinstall Adobe products require first deactivation?

    I work for a firm of managed services. We need to reload the operating system on a client computer that uses the creative suite of Adobe products. Do we need to disable Adobe products before reloading? Can I backup and restore without disabling? Reinstall Adobe products require first deactivation?

    You must disable before uninstalling the software/system.  Just open one of the programs and choose Help-> Deactivate.  If it is part of a suite, it will disable the entire suite.  Products/suites separate need separate deactivations.

  • How to get just the nodes without showing the URI in sem_match?

    Hello


    I try only to retrieve all individuals in an rdf/xml ontology of test without displaying the uri. I tried strafter () and replace the functions in the filter clause to the query of sem_match without success. The uri will not go away. This is the query:

    Select one

    table (sem_match ('{? a RDF: type: a.? a: seqNumber? n.}))

    filter (strafter (str(?a), ""http://www.example.com/test.owl# ""))

    }',

    sem_models ('test'),

    NULL,

    sem_aliases (sem_alias (", 'http://www.example.com/test.owl#')),

    order of null)) by one


    I changed () () to replace strafter. The result is always the same.

    Select one

    table (sem_match ('{? a RDF: type: A.}))

    Filter (Replace (STR(?a), ""http://www.example.com/test.owl# "," ""))

    }',

    sem_models ('test'),

    NULL,

    sem_aliases (sem_alias (", 'http://www.example.com/test.owl#')),

    (null)) ORDER BY one


    Here are the results:

    http://www.example.com/test.OWL#A1

    http://www.example.com/test.OWL#A2

    http://www.example.com/test.OWL#A3

    http://www.example.com/test.OWL#A4

    http://www.example.com/test.OWL#A5

    http://www.example.com/test.OWL#A6

    http://www.example.com/test.OWL#A7

    http://www.example.com/test.OWL#A8


    How can I get just the nodes without showing the uri? Where am I wrong in the query? I know that I can add some annotations to the label so that I can get just the nodes. but it will more data entry. Thank you very much in advance.


    Hong

    Salvation Hong,

    SEM_MATCH returns 8 columns for each variable (var, var, var$ _PREFIX, $RDFVID, $ var, var$ _SUFFIX RDFVTYP, var$ RDFCLOB, var, var and $RDFLTYP$ RDFLANG). var$ _SUFFIX is what you are looking for.

    Select a _suffix $

    table (sem_match ('{? a RDF: type: A.}',))

    sem_models ('test'),

    NULL,

    sem_aliases (sem_alias (", 'http://www.example.com/test.owl#'));

    (null)) ORDER BY;

    Thank you
    Matt

  • Need to insert test data in all the tables that were present in a schema

    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.
    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
      --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
      SELECT u.column_name, u.data_type, u.data_length
      --BULK COLLECT INTO l_col_tab
        FROM user_tab_columns u
       WHERE u.table_name = p_table_name;
    
      -- generated the values using below statement
      
        SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
        -- INTO collection varaible
          FROM user_tab_columns u
         WHERE TABLE_NAME = p_table_name;  
       
    
    END;
    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.



    Thank you
    Suri

    Suri wrote:
    Hello

    I use Oracle 9i.

    10 tables were present in my current schema. All tables are not having all the records.

    I need to insert test data in each table using a single procedure. (the table name is inparameter for the procedure)

    For example, I test_emp, test_sal tables.

    CREATE TABLE test_emp (ename varchar2 (40), number of sal);
    CREATE TABLE test_sal (it NUMBER, rank NUMBER, will designate the NUMBER);

    I need to insert some test data in these tables. I shouldn't use utl_file or sql * loader for this.

    I tried below way.

    -- Incomplete code
    
    CREATE OR REPLACE PROCEDURE test_proc_insertdata(p_table_name IN VARCHAR2) IS
    
    BEGIN
    
    --Selected all the column_names, data_type, data_length into a collection variable from user_tab_columns.
    
    SELECT u.column_name, u.data_type, u.data_length
    --BULK COLLECT INTO l_col_tab
    FROM user_tab_columns u
    WHERE u.table_name = p_table_name;
    
    -- generated the values using below statement
    
    SELECT decode(u.DATA_TYPE,'VARCHAR2',dbms_random.string('A', u.data_length),'NUMBER',TRUNC(dbms_random.value(1, 5000)),'DATE',SYSDATE) val_list
    -- INTO collection varaible
    FROM user_tab_columns u
    WHERE TABLE_NAME = p_table_name;  
    
    END;
    

    I am not able to transmit these values to the collection dynamically to the INSERT statement. I tried many ways, but I am not satisfied with the code I've written.

    Please help me if you know a better idea.

    Thank you
    Suri

    With some effort, you can write dynamic insert queries. Read the data dictionary views ALL_TABLES and ALL_TAB_COLUMNS to get the data you need. You may need to limit the list to the tables you specify to hardcode the names of the tables. You can read the views for the information of table and column that you need generate the insert column orders. It will be a lot of work and it might be easier to simply hardcode values. Dynamic SQL is difficult to debug and work with: (.) Something like this (untested and totally undebugged)

    declare
      cursor v_tab_col(p_table_name) is select * from all_tab_columns where table_name = p_table_name;
      v_text varchar2(32767);
      v_table_name varchar2(30);
    begin
      v_table_name := 'DUAL';
      --chr(10) is a newline for readability when debugging
      v_text := 'insert into '||v_table_name||chr(10)||'(';
      --loop to build column list
      for v_tab_rec in v_tab_col loop
        --add comma if not first item in list
        if v_tab_col%rowcount > 1 then
          v_text := v_text ||',';
        end if;
        v_text := v_text || v_tab_rec.column_name;
      end loop;
      v_text := v_text ||') values ('||
      --loop to build column values
      for v_tab_rec in v_tab_cur loop
        if (v_tab_rec.datatype = 'VARCHAR2') then
          --add comma if not first item in list
          if v_tab_col%rowcount > 1 then
            v_text := v_text ||',';
          end if;
          if v_tab_rec.datatype = 'NUMBER' then
           v_text := v_text || '9';
           elsif v_tab_rec.datatype = 'VARCHAR2' then
             v_text := v_text ||'X';
          end if;
      end loop;
      v_text := v_text || ')';
      execute immediate v_text;
    end;
    

    This code is not effective, but shows how to do what you described. You'll have to code for all data types you need and find a way to take into account the primary/foreign keys, yourself. I leave it to you to find a way to avoid selecting the data twice ;)
    Good luck!

    Published by: riedelme on July 24, 2012 13:58

  • I have the FBI Cyber Virus on my administrator account my pc & need to know how to remove it immediately without having to pay to do so?

    I have the FBI Cyber Virus locked on my administrator account my pc & need to know how to remove it immediately without having to pay to do.  I already know that he is infected with this virus, even if Microsoft Securities said that the pc is in green.  When I log on my administrator account, it stops at my opening page & load the page of the virus, which claims to be the FBI Cyber Division, & demanding pay me $300.00 to unlock my ACCT.

    I need help right away, because I don't know how to remove this virus, without getting ripped off for pay records, etc. to remove.

    Hello

    Please go to the Microsoft Community Forums.
    From the description of the question, we understand that you want to remove the virus from the computer.
    We can imagine the inconvenience you encountered.
    Let me go ahead and help you with the issue.
     
    You did changes to the computer before the show?
     
    I suggest for the link and follow the steps in the article:
    How to remove a computer virus?
    Note: The data files that are infected must be cleaned only by removing the file completely, which means that there is a risk of data loss.
    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:
    How to back up and restore the registry in Windows
    http://Windows.Microsoft.com/en-in/Windows7/back-up-the-registry
     
    Hope this solves the problem. If the problem persists, you can write to us and we will be happy to help you further.
  • You will need to identify what node in a cluster of vRO is the execution of a workflow of.

    Hi all

    This is my first post for the communities in a very long time, so please, be gentle.  I do some work for a client automation, and one of the third-party applications that we integrate with password management requires that users of the API will be bound to a specific IP address.  In an instance of vRO single node is not a problem, but it is a HA configuration, and even if it's an active/passive failover workflows still needs to work if it breaks down.  About 50% of custom streams depends on asking a password to this third party system.  My password calls work fine of node 1 where I did all of the development, but I am now to tackle the issue of making the workflow nodes.

    I have a way very cludgy to circumvent this problem, the use of SSH for 127.0.0.1 (which defeats the point of using a system of management of password in the first place), but I really hope there is a more elegant way to accomplish this task.  Maybe a vRO ownership that can be called?  Or an action that can return the hostname of current node?  If someone has seen, it would be greatly appreciated.

    Sincerely,

    Matt

    Hi Matt,

    Unfortunately, there is no property or action (as I know).

    What you can try is to retrieve the host name of vRO Configurator which allows access to the connected network interfaces. Here is a Javascript code snippet:

    for each (var bound_ip in Config.getNetworkInterfaces().getValidBindInterfaces()) {
      var hostname = System.resolveIpAddress(bound_ip);
      if (hostname != bound_ip   // if ip and hostname are equals, this means ip cannot be resolved
        && hostname != "localhost" // ipv4 localhost
        && bound_ip != "::"  // ipv6 default unicast
        && bound_ip != "::1" // ipv6 localhost
      ) {
        // possible match; the 'hostname' variable contains the vRO node hostname
        System.log(bound_ip + "  -->  " + hostname);
      }
    }
    

    Code lists all the valid binding interfaces and tries to resolve the host name of each IP interface uses heuristics to get rid of localhost addresses.

    I have no HA environment to test this code, but in theory, it should work.

  • I need to insert google remarketing of the tags in my sites of Muse. How can I do this?

    I was just asked to insert google new marketing tags in a few sites I've built in Muse. When I went to the instructions on how to do it properly, they say to insert the generated code just before the closing < / body > tag. I can't find a way to see the html code of the site to find the closing < / body > tag, and when I tried to use the tool "insert html" muse that it produced just a box with a warning triangle, who said: he cannot create a thumbnail for the code I just inserted.

    Does anyone know how to insert the code re-marketing in a site of Muse?

    Thank you for the help,

    JD

    Where you put code is determined by where you place it on the page.  From my experience, it should work even with the impossible to generate a miniature warning in the box. I would put it as a footer at the bottom of the page.  Resize it to fit if necessary.

    If its still does not I export t html code and open the page in an editor like Dreamweaver one cut and past the code where you need.

    Is it supposed to make something or is this code that works with any other code on the page?

  • Insert the arrow before my CSS links

    I have a requirement to insert an arrow pointing just before my links as a help for people to instantly see where they click the link.

    I know how to get my special right arrow in my links to my CSS file that I have commented on my CSS, here , but it fills the entire line of the link not only to the position to the left of the link text?

    It's probably the fixed order, but is not one that I've used to date.

    Any help would be appreciated

    Hello

    It's true.

    Using your code, it would be something like this:

    column a: link, #column a: visited {}
    background-color: #FFF;
    border-left: 10px solid #FFF;
    border-right: 10px solid #FFF;
    Color: #000;
    Display: block;
    text-decoration: underline;
    Width: auto;
    padding: 3px 5px 3px 20px;
    }

    #column a: hover {}
    background-color: #E3806F;
    border-left: 10px solid #E3806F;
    border-right: 10px solid #E3806F;
    color: #FFF;
    Police-weight: 450;
    text-decoration: none;
    background-image: url (arrow.gif);
    background-repeat: no-repeat;
    background-position: left Center.
    }

    Just the left padding in one make sure: link is slightly wider than your arrow
    the image that is used in the background of link at steady state. This will
    Make sure that the text does not appear on the arrow.
    In the above example, I took for the arrow 18px wide, so I gave the
    a value of 20px padding left.

    Take care
    Tim

    "Pakman36" wrote in message
    News:fonbtb$E43$1@forums. Macromedia.com...
    > Hi Tim
    > Thanks for your reply, have not had the chance to try what you suggested
    > again, but my test site can be found at http://uk.geocities.com/dakinidebbs108/
    >
    > I need the "right arrow" forward links in my right-hand columns on each
    > page, but I guess the fact column part of my model I only need of the
    > relevant
    > code to go in my CSS rule of '#column' for the arrow to appear before
    > each
    > link?
    > Pakman
    >

Maybe you are looking for

  • Gravity is HARD on my Tecra M1 disk problem?

    I have a Tecra M1, 1.6 GHz, MS Windows Xp sp2.Last week, I posted a message to describe the problem of my computer. He started very slowly every time I restarted the computer. I logged on and there were Windows to notice that my system has problems.

  • Pavilion model 17-e135nr: message mobile disabled hp 57201254

    need help unlocking a mobile phone to friends. If enabled, all you get is a box asking for a password. admin with a code 57201254 disabled. She said she had it worked on one of those tv ads, now it does not start and locks. any help please,. I would

  • Solartron 1250 driver

    Hello Sir I already send a request to the dll for the driver solartron 1250 for Labview software. You didn't give any reply.in this instrument they provided GPIB.but it does not react with the fom of PC control can you find or make new driver /detail

  • Gradual increase of the output voltage

    I use EAnalogOut.vi from LabJack U12 for the U12 4 volts AO0 value. The instant change of output voltage is at the origin of the problems with the engine I use, so I ask: does anyone have an idea how I could program in the current diagram. To move gr

  • I can't open the DLL or EXE files

    I tried to open an EXE file and I changedt the default program to open this type of file. Not knowing the consequences, I can't open any file EXE or DLL, I hhave tried changin others programs by default, but the EXE files are OPE by windows, is there