Retrieves the name of the root of a XML package

Hello
I thought it would be simple, but cannot work on how I can extract the name of the node root for a XML package
I was going to just use xmltype.extract, but I can't work on the paameter of xpath to get this working.
Any of you smart people you know?

Is it possible to do it in pure PLSQL, without the overhead associated with a change in context with the SQL engine?

Maybe it's

SQL> declare
  2
  3  t xmltype:=xmltype('
  4  
  5  12688f8ac8aa6310VgnVCM10000078ccc70a____
  6  Brooklyn
  7  
  8  ');
  9
 10  begin
 11
 12  dbms_output.put_line('1-' || xmltype.getRootElement(t));
 13  dbms_output.put_line('2-' || t.getRootElement());
 14
 15  end;
 16  /

1-RESULTS
2-RESULTS

PL/SQL procedure successfully completed

SQL> 

Tags: Oracle Development

Similar Questions

  • Retrieve the namespace of an xml (PL/SQL)

    How can I retrieve a xml namespace in a varchar? Do you know if there is no function XML (no chain) which allow me to do this?

    Thank you

    OK, so you want to plan the entire namespace.

    May I ask what to do?

    There is no "easy way" to extract this information because standard XQuery, the namespace axis kept no XPath 1.0 specification.

    Here's how you can do this however:

    SQL> declare
      2
      3    doc     xmltype := xmltype(
      4         '');
      9
    10    nsmap   varchar2(4000);
    11
    12  begin
    13
    14    select /*+ no_xml_query_rewrite */
    15           xmlcast(
    16             xmlquery(
    17               'string-join(
    18                  for $i in distinct-values(in-scope-prefixes(*)[.!="xml"])
    19                  return concat( "xmlns"
    20                               , if ($i) then ":" else ""
    21                               , $i
    22                               , "=""
    23                               , namespace-uri-for-prefix($i,*)
    24                               , """ )
    25                , " "
    26                )'
    27               passing doc
    28               returning content
    29             )
    30             as varchar2(4000)
    31           )
    32    into nsmap
    33    from dual;
    34
    35    dbms_output.put_line(nsmap);
    36
    37  end;
    38  /
    
    xmlns:ns0="http://website/xxxxx/xxx" xmlns:msxsl="urn:schemas-microsoft-com:xslt" xmlns:msxml="urn:schemas-microsoft-com:xslt" xmlns:ctx="http://reply.cluster.yyyyyy/mapper/contextdictionary" xmlns="default"
    
    PL/SQL procedure successfully completed.
    
  • Need help to retrieve the value of an xml tag.

    Hi all

    Hello all, I have problem to extract a value from an xml tag. I created an xml schema based on the schema, I created an xmltype table and inserted a value to the table. When I try to extract a value of a particular tag I can't do... Kindly help me to solve this problem. Here by I write all working, I did...

    I use the following client:
    -----------------------------------

    SQL * more: Release 10.2.0.1.0 - Production on Mon 31 Jan 11:44: 59 2011

    Copyright (c) 1982, 2005, Oracle. All rights reserved.


    Connected to:
    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
    With partitioning, OLAP and Data Mining options


    ////////////////////////////////// XML Schema ///////////////////////

    Start
    () dbms_xmlschema.registerSchema
    "http://www.oradev.com/chipsxml.xsd,"
    ' < scheme xmlns = "http://www.w3.org/2001/XMLSchema".
    targetNamespace = "http://www.oradev.com/chipsxml.xsd."
    xmlns:SAMP = "http://www.oradev.com/chipsxml.xsd".
    version = "1.0" >

    < feature name = 'Field1' >
    < complexType >
    <>sequence
    < element name = "UTI" >
    < complexType >
    <>sequence
    < element name = "U01" type = "string" / >
    < element name = "U02" type = "string" / >
    < element name = "U03" type = "string" / >
    < element name = "U03a" type = "string" / >
    < element name = "U03b" type = "string" / >
    < element name = "U03c" type = "string" / >
    < element name = "U04" type = "string" / >
    < element name = "U05" type = "string" / >
    < / sequence >
    < / complexType >
    < / item >
    < / sequence >
    < / complexType >
    < / item >
    < / schema > ',
    (TRUE, TRUE, FALSE, FALSE);
    end;


    A table that has several column.

    CREATE TABLE chipsxmltable1)
    Identification number, XMLDATA XmlType)
    XMLTYPE XMLDATA STORE AS OBJECT / RELATIONAL
    XMLSCHEMA 'http://www.oradev.com/chipsxml.xsd '.
    ELEMENT 'field1 ';


    Insert the query in chipsxmltable.

    INSERT INTO (VALUES) chipsxmltable
    XmlType.CreateXml ("<?") XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    Y < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    ((< / samp: field1 > '));


    To display the data in a field with the structure:
    --------------------------------------------

    1. motion:
    ----------
    Select * from chipsxmltable1;

    Output:
    -------


    ID XMLDATA
    ---------- -----------------------------------------------------------------
    1 <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    2 query: (both the query shows the same result)
    ----------

    SELECT X.xmldata.getClobVal ('XMLDATA' FROM chipsxmltable1 X);

    Select extract (XMLDATA, "/ Field1'") .getstringval ("XMLDATA" chipsxmltable1 x);


    Output:
    --------

    XMLDATA
    -----------------------------------------------------------------
    <? XML version = "1.0"? >
    < xmlns:samp samp: field1 = "http://www.oradev.com/chipsxml.xsd" >
    < USE >
    No. < U01 > < / U01 >
    No. < U02 > < / U02 >
    Y < U03 > < / U03 >
    < U03a > Y < / U03a >
    < U03b > Y < / U03b >
    < U03c > Y < / U03c >
    Y < U04 > < / U04 >
    Y < U05 > < / U05 >
    < / UTI >
    < / samp: field1 >


    To display the data as a single string without structure using "getstringval()":
    ---------------------------------------------------------------------------------

    3 query
    ---------

    Select extract (XMLDATA, "//text()').getstringval()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    -------

    CHIPS - XML
    ---------------------
    NoNoYYYYYY


    To display the data as a single string without structure using "getclobval()":
    ---------------------------------------------------------------------------------

    4 query
    -------

    Select extract (XMLDATA, "//text()').getClobVal()"CHIPS - XML"of chipsxmltable1 x;)

    Output:
    --------

    CHIPS - XML
    -----------------
    NoNoYYYYYY


    To display the data in a tag with or without structure (which does work) using the function "EXTRACT":
    -------------------------------------------------------------------------------------------------------------

    6.query:
    ---------

    Select extract (XMLDATA, "/Field1/text()').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01').getstringval()"XMLDATA' chipsxmltable1 x;

    Select extract (XMLDATA, "/Field1/UTI/U01/text()').getstringval()"XMLDATA' chipsxmltable1 x;


    Output:
    --------

    CHIPS - XML
    ---------------------------------------



    The queries above are not fetch the value.



    To display the data in a tag with or without structure (which does work) using the function "EXTRACTVALUE":
    ------------------------------------------------------------------------------------------------------------------

    7 query:
    ----------

    Select extractValue (XMLDATA, ' / Field1/UTI ') 'XMLDATA' of chipsxmltable1 x;

    Select extractValue (XMLDATA, ' / U01/UTI/Field1 ') 'XMLDATA' of chipsxmltable1 x;


    Output:
    --------

    X
    -



    The queries above are not fetch the value.


    My question is:
    --------------------
    How to extract the values of xml tag when the value are inserted through xml schema?


    My apologies if the description is not clear. Kindly let me know if further details are required. Thanks a lot for your help.

    Very cordially,
    Godwin Castro C.V.

    Hello

    You must declare the namespace of each element used in the XPath expression, like this:

    SQL> select extractvalue( XMLDATA
      2                     , '/samp:Field1/UTI/U01'
      3                     , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"' ) "XMLDATA"
      4  from chipsxmltable1 x
      5  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    No
     
    
    SQL> select extract( XMLDATA
      2                , '/samp:Field1/UTI'
      3                , 'xmlns:samp="http://www.oradev.com/chipsxml.xsd"'
      4                ).getstringval() "XMLDATA"
      5  from chipsxmltable1 x
      6  ;
    
    XMLDATA
    --------------------------------------------------------------------------------
    
      No
      Y
      Y
      Y
      Y
      Y
      Y
      Y
    
     
    

    Please see EXTRACT and EXTRACTVALUE documentation:
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions051.htm#i1006712
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/functions052.htm#SQLRF06173

    BTW, 'XMLDATA' is a pseudo-column used by Oracle. I don't know if it will never cause any conflict, but perhaps you need to rename your column.
    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/pseudocolumns010.htm#SQLRF00256

    Kind regards.

  • Cannot retrieve the data of Type XML

    Hi all

    I have equipped table column of type XMLType

    XML data is loaded into the table.

    But when iam trying to extract not able to recover data

    I use here is the select query

    SELECT CL. XMLDATA. Extract('/ServiceType/EntityName/text()').getStringVal () "entityname" OF CL_DATA_SERVICE_TEMPLATE CL.

    Any help / pointer will help me much... Thanks in advance

    Example of XML file:

    <? XML version = "1.0" encoding = "WINDOWS-1252"? >

    < ServiceType xmlns = "http://www.bmiasia.com/tBos/service_1_0" >

    < entityName > bmiasia.app.irb.servicetemplate12 < / entityName >

    < systemVersion > 4 < / systemVersion >

    < displayName >

    < bundle / >

    < key > AG - VCA < / key >

    < / displayName >

    < description > AG - VCA GROUP: AG - VCA < / description >

    < entityName category = ' bmiasia.app.service.category.ServiceRootCategory.AG_ - _EVC_Services ' >

    < operation > ADD < / operation >

    < / category >

    < entityMetaInfo name = "bmiasia.app.irb.servicetemplate12.NC_PRODUCT_ID" >

    < entityName type = "1" > < / type >

    < / entityMetaInfo >

    < entityMetaInfo name = "bmiasia.app.irb.servicetemplate12.NC_GL_PRODUCT_CODE" >

    < entityName type = "2" > < / type >

    < / entityMetaInfo >

    < entityMetaInfo name = "bmiasia.app.irb.servicetemplate12.NC_GL_PROFIT_CENTRE" >

    < entityName type = "3" > < / type >

    < / entityMetaInfo >

    < entityMetaInfo name = "bmiasia.app.irb.servicetemplate12.NC_SERVICE_CODE" >

    < entityName type = "4" > < / type >

    < / entityMetaInfo >

    < entityMetaInfo name = "bmiasia.app.irb.servicetemplate12.RSP_EU_CUST_REF" >

    < entityName type = "5" > < / type >

    < / entityMetaInfo >

    < entityMetaInfo name = "irbPkClass" >

    < entityName = "type com.convergys.geneva.j2ee.product.ProductPK" > < / type >

    < / entityMetaInfo >

    < entityMetaInfo name = "irbId" >

    < entityName type "12" = > < / type >

    < / entityMetaInfo >

    < name extensionProperty = "hasAddress" value = "true" > < / extensionProperty >

    < parent >

    < itemkey > AllServiceTemplate < / itemkey >

    < name > AllServiceTemplate < / name >

    < targetEntity entityName = "bmiasia.app.service.template.AllServiceTemplate" > < / targetEntity >

    < number > 0 < / number >

    < / parent >

    NORMAL < group > < / group >

    < siu >

    < itemkey > L2_OPTION < / itemkey >

    < operation > ADD < / operation >

    < name > L2_OPTION < / name >

    < required > true < / required >

    < source > INTERNAL < / source >

    < displayName >

    L2 Option < key > < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > L3_OPTION < / itemkey >

    < operation > ADD < / operation >

    < name > L3_OPTION < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    L3 Option < key > < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > QPEVPL_SERVICE_ID < / itemkey >

    < operation > ADD < / operation >

    < name > QPEVPL_SERVICE_ID < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > QP EVLP Service ID < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > QPEVPL_LAG_ID < / itemkey >

    < operation > ADD < / operation >

    < name > QPEVPL_LAG_ID < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > QP EVLP LAG ID < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > CO_NAME < / itemkey >

    < operation > ADD < / operation >

    < name > CO_NAME < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > aggregation Layer / layer of Co < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_SALUTAION < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_SALUTAION < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Installation greeting < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_LASTNAME < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_LASTNAME < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > plant name < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_FIRSTNAME < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_FIRSTNAME < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Installation first name < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_TELEPHONE < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_TELEPHONE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Installation phone < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_MOBILE < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_MOBILE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Installation Mobile < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_EMAIL < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_EMAIL < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > plant Email < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > INSTALL_NOTIFICATION < / itemkey >

    < operation > ADD < / operation >

    < name > INSTALL_NOTIFICATION < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Installation Notification < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_SALUTAION < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_SALUTAION < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Operational / technical greeting < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_LASTNAME < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_LASTNAME < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    <>key operational and technical name < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_FIRSTNAME < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_FIRSTNAME < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    key operational <>/ Technical name < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_TELEPHONE < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_TELEPHONE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Operational / technical phone < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_MOBILE < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_MOBILE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Operational / technical Mobile < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_EMAIL < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_EMAIL < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Operational / technical Email < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > TECHNICAL_NOTIFICATION < / itemkey >

    < operation > ADD < / operation >

    < name > TECHNICAL_NOTIFICATION < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Operational / Technical Notification < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > SERVICE_ACTIVATION_PERIOD < / itemkey >

    < operation > ADD < / operation >

    < name > SERVICE_ACTIVATION_PERIOD < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > period of Activation of Service < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > REJECT_CODE < / itemkey >

    < operation > ADD < / operation >

    < name > REJECT_CODE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > reason for rejection < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > APPLICATION_ACCEPTED < / itemkey >

    < operation > ADD < / operation >

    < name > APPLICATION_ACCEPTED < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > application accepted < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.BooleanCheckSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > APPLICATION_REJECTED < / itemkey >

    < operation > ADD < / operation >

    < name > APPLICATION_REJECTED < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > application rejected < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.BooleanCheckSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > APPROVAL_CODE < / itemkey >

    < operation > ADD < / operation >

    < name > APPROVAL_CODE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > Probate Code < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > PROCESSED_BY < / itemkey >

    < operation > ADD < / operation >

    < name > PROCESSED_BY < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > treated by < / keys >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > ACTUAL_RFS_DATE < / itemkey >

    < operation > ADD < / operation >

    < name > ACTUAL_RFS_DATE < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > effective Date of RFS < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.DateSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > WARNING < / itemkey >

    < operation > ADD < / operation >

    < name > WARNING < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < displayName >

    < key > WARNING < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > NC_PRODUCT_ID < / itemkey >

    < operation > ADD < / operation >

    < name > NC_PRODUCT_ID < / name >

    < required > false < / mandatory >

    < source > EXTERNAL < / source >

    < displayName >

    < key > NC product ID < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > NC_GL_PRODUCT_CODE < / itemkey >

    < operation > ADD < / operation >

    < name > NC_GL_PRODUCT_CODE < / name >

    < required > false < / mandatory >

    < source > EXTERNAL < / source >

    < displayName >

    < key > NC GL product Code < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > NC_GL_PROFIT_CENTRE < / itemkey >

    < operation > ADD < / operation >

    < name > NC_GL_PROFIT_CENTRE < / name >

    < required > false < / mandatory >

    < source > EXTERNAL < / source >

    < displayName >

    < key > Profit Center for the GL NC < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > NC_SERVICE_CODE < / itemkey >

    < operation > ADD < / operation >

    < name > NC_SERVICE_CODE < / name >

    < required > false < / mandatory >

    < source > EXTERNAL < / source >

    < displayName >

    < key > EUC ID < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.common.StringSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAttribute" > < / mapping >

    PRODUCT < scope > < / scope >

    < / siu >

    < siu >

    < itemkey > bmiasia.app.irb.servicetemplate54 < / itemkey >

    < operation > ADD < / operation >

    < name > bmiasia.app.irb.servicetemplate54 < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < equalsProvider > bmiasia.app.service.spi.AddSvcSIUEqualsProvider < / equalsProvider >

    < displayName >

    < key > CIR by 250Mbps CoS A < / keys >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.AdditionalServiceSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAdditionalService" > < / mapping >

    < scope > SERVICE < / scope >

    < outSvcAttr > true < / outSvcAttr >

    < / siu >

    < siu >

    < itemkey > bmiasia.app.irb.servicetemplate55 < / itemkey >

    < operation > ADD < / operation >

    < name > bmiasia.app.irb.servicetemplate55 < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < equalsProvider > bmiasia.app.service.spi.AddSvcSIUEqualsProvider < / equalsProvider >

    < displayName >

    < key > CIR by 250Mbps CoS B < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.AdditionalServiceSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAdditionalService" > < / mapping >

    < scope > SERVICE < / scope >

    < outSvcAttr > true < / outSvcAttr >

    < / siu >

    < siu >

    < itemkey > bmiasia.app.irb.servicetemplate56 < / itemkey >

    < operation > ADD < / operation >

    < name > bmiasia.app.irb.servicetemplate56 < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < equalsProvider > bmiasia.app.service.spi.AddSvcSIUEqualsProvider < / equalsProvider >

    < displayName >

    < key > CIR by 250Mbps CoS C < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.AdditionalServiceSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAdditionalService" > < / mapping >

    < scope > SERVICE < / scope >

    < outSvcAttr > true < / outSvcAttr >

    < / siu >

    < siu >

    < itemkey > bmiasia.app.irb.servicetemplate57 < / itemkey >

    < operation > ADD < / operation >

    < name > bmiasia.app.irb.servicetemplate57 < / name >

    < required > false < / mandatory >

    < source > INTERNAL < / source >

    < equalsProvider > bmiasia.app.service.spi.AddSvcSIUEqualsProvider < / equalsProvider >

    < displayName >

    < key > CIR by 250Mbps CoS D < / key >

    < / displayName >

    < entityName = "type bmiasia.app.siulib.siu.AdditionalServiceSIU" > < / type >

    < entityName = "map bmiasia.app.service.oo.ServiceAndAdditionalService" > < / mapping >

    < scope > SERVICE < / scope >

    < outSvcAttr > true < / outSvcAttr >

    < / siu >

    < defaultWorkflowInfo >

    < entityName = "workflow bmiasia.app.irb.servicetemplate12_Workflow" > < / workflow >

    < entityName = "bmiasia.app.irb.servicetemplate12_CancelFlow" cancelFlow > < / cancelFlow >

    < / defaultWorkflowInfo >

    < source > EXTERNAL < / source >

    < entityName = "bmiasia.app.irb.servicetemplate54" additionalServices >

    < operation > ADD < / operation >

    < name > CIR by 250Mbps CoS A < / name >

    < / additionalServices >

    < entityName = "bmiasia.app.irb.servicetemplate55" additionalServices >

    < operation > ADD < / operation >

    < name > CIR Per 250Mbps CoS B < / name >

    < / additionalServices >

    < entityName = "bmiasia.app.irb.servicetemplate56" additionalServices >

    < operation > ADD < / operation >

    < name > CIR by 250Mbps CoS C < / name >

    < / additionalServices >

    < entityName = "bmiasia.app.irb.servicetemplate57" additionalServices >

    < operation > ADD < / operation >

    < name > CIR by 250Mbps CoS D < / name >

    < / additionalServices >

    < defaultWorkflowDefinition >

    < installSoEntityName > bmiasia.app.template.serviceorder.Installservicetemplate12SO < / installSoEntityName >

    < changeSoEntityName > bmiasia.app.template.serviceorder.Modifyservicetemplate12SO < / changeSoEntityName >

    < removeSoEntityName > bmiasia.app.template.serviceorder.Removeservicetemplate12SO < / removeSoEntityName >

    workflow <>

    < entityName > bmiasia.app.irb.servicetemplate12_Workflow < / entityName >

    < / workflow >

    < cancelFlow >

    < entityName > bmiasia.app.irb.servicetemplate12_CancelFlow < / entityName >

    < / cancelFlow >

    < / defaultWorkflowDefinition >

    < / ServiceType >
     SELECT extractvalue(VALUE(p),'//itemkey','xmlns="http://www.bmiasia.com/tBos/service_1_0"') Name,
      extractvalue(VALUE(p),'//required','xmlns="http://www.bmiasia.com/tBos/service_1_0"') Required
       FROM CL_DATA_SERVICE_TEMPLATE w,
      TABLE(XMLSEQUENCE(EXTRACT(xmldata,'/ServiceType/siu','xmlns="http://www.bmiasia.com/tBos/service_1_0"'))) p
    

    untested... check and confirm...

    Ravi Kumar

  • Can I hold ThisContext go a step and use it in a later step to find the name of the current stage? Error 1 when retrieving the name of the step.

    I am trying to create a generic message using LVOOP logging class.  The recorder would include information on stage during execution (name, sequence, etc.).  I would like to create the message object log and then move it into another object (communication, controller of oven, etc.).  Everyone should get its own copy.  None of this is a problem to date.

    I found ways to gather the necessary information to ThisContext.  However, this only seems to work if ThisContext is spent in running step.  If I want ThisContext in LVOOP, the next step to try to use causes an error 1 "an input parameter is incorrect."  Is it possible to get this kind of information (name, sequence, etc.) without ThisContext in at each stage?  It would be inappropriate to do so, but if necessary I will.  It does not go against LVOOP.

    Summary: Can I hold ThisContext go a step and use it in a later step to find the name of the current stage?  If not, is there an effective way to do this?

    My solution was to store the reference to thread.  At each step, I can retrieve the current context.  This is valid only in a thread, but meets my needs.  I could also move something to a higher level, but it would need to know the thread that interests me in any case.

  • Retrieves the name of the variable

    Hello

    I'm trying to change the OpenG changed? Subvi (see below) so that he will write the new value of the variable sent to 'Variant' if changed on the disk (using the following config VI). To do this, I need to somehow extract the variable name of the variable (any type) which was connected to the entrance of variant of the changed? Sub - VI by VI calling so that I can use it as a key name. Is this possible? This information is still transmitted to the Subvi?

    If you use openg, there is a "Get the name of data" function that retrieves the name of the data passed in the Variant.

  • My names Contact list for Windows Live "disappeared". My ISP says it still resides in my computer, but only Microsoft can allow retrieving the list. What must I do to get these names?

    My names Contact list for Windows Live "disappeared". My ISP says it still resides in my computer, but only Microsoft can allow retrieving the list. What must I do to get these names?

    Hello

    The question you have posted is related to Windows Live; This is why it would be better suited in the Windows Live community. Please visit the link below to find a community that will provide the best support.

    http://windowslivehelp.com/forums.aspx?ForumID=28aff142-9106-4d74-BE08-9b5d9fc0efea

  • Retrieve the name of the model of the device

    Hello

    Is there a way to retrieve the name of the device in use? I wish I could know if the user is using a Z10, Q10 etc...

    Thank you

    Scott

    Have you tried with HardwareInfo?

    https://developer.BlackBerry.com/Cascades/reference/bb__device__hardwareinfo.html

  • Is it possible, using ExtendScript, to retrieve the name of a model used in first

    I have an AE Comp used in first instance.  I'm looking for a way to quickly manage the names of the AE model and this model used in the first instance.  The goal is to maintain naming conventions as efficiently and accurately as possible.  I was wondering if there is a way, using ExtendScript (a command in a custom panel) to retrieve the name AE Comp of her in first instance.

    Any projectItem with a path ending with .aep is a likely candidate.

    Our next version provides iteration better the elements in a sequence; You can reach the projectItem of any clip, that should give you what you need.

  • Is it possible NOT to include the name of the document as the root of a peoplesoft JSON document tag?

    I'm consuming a REST service (from documentum) in peopletools 8.53. I have set up my document, message, service and security and can connect to and receive a response from the REST service. I can't fill the response document, however, for two reasons - the peoplesoft document begins with the name of the document that the tag root has no the REST service. In addition, the service REMAINS returns tables brackets and the peoplesoft document seems to accept only braces. What I've read, hooks can be supported in peopletools 8.54 but we will not upgraded our tools of press at the moment.

    Is it possible not to provide or ignore the root of a document of peopelsoft tag? Also, is there a way to structure a document to tables? I can see the whole of the response from the REST service using the GetContentString method message - is the best option to analyze manually through the answer and do not use the document object at all?

    I have the same frustration. One solution is to use a separate library to parse the JSON (something like json.simple). Another solution, I think it's easier, is to use JavaScript, which is included in Java 7 with 8.53 PeopleTools. Here is an example of JavaScript:

    /* Sample JSON data
    [
        {"emplid": "KU0001", "oprid": "HCRUSA_KU0001"},
        {"emplid": "KU0002", "oprid": "HCRUSA_KU0002"},
        {"emplid": "KU0003", "oprid": "HCRUSA_KU0003"}
    ];*/
    
    var result = (function() {
        var CreateRecord = Packages.PeopleSoft.PeopleCode.Func.CreateRecord;
        var Name = Packages.PeopleSoft.PeopleCode.Name;
        var SQLExec = Packages.PeopleSoft.PeopleCode.Func.SQLExec;
    
        var rec = CreateRecord(new Name('RECORD', 'NAA_SCRIPT_TBL'));
    
        var count = 0;
        var json_string;
        var json;
    
        var guid = 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) {
            var r = Math.random()*16|0, v = c == 'x' ? r : (r&0x3|0x8);
            return v.toString(16);
        });
    
        rec.GetField(new Name('FIELD', 'PM_SCRIPT_NAME')).setValue('JSON_TEST_DATA');
        rec.SelectByKey();
        json_string = rec.GetField(new Name('FIELD', 'HTMLAREA')).getValue();
        json = JSON.parse(json_string);
    
        // TODO: iterate over json data and
        json.forEach(function(item, idx) {
            SQLExec("INSERT INTO PS_NAA_TEST_TBL VALUES(:1, :2, :3, SYSTIMESTAMP)", [guid, item.emplid, item.oprid]);
            count += 1;
        });
    
        return "Inserted " + count + " rows";
    
    }());
    

    Here is the JavaScript:

    1. Declares variables that point to PeopleCode functions
    2. Selects JSON data in a database table. You could alternatively fill a JavaScript variable before executing the JavaScript (code below)
    3. Analysis the JSON using JSON JavaScript Analyzer
    4. Traverses the JSON
    5. Using SQLExec in JavaScript to insert some values of the JSON data into PeopleSoft tables
    6. Returns a message describing what happened

    Here are the PeopleCode required to run this JavaScript:

    Local JavaObject & Manager = CreateJavaObject ("javax.script.ScriptEngineManager");

    Engine & local JavaObject = & manager .getEngineByName ("JavaScript");

    Local station &script;

    SQLExec ("SELECT HTMLAREA FROM PS_MY_SCRIPT_TBL WHERE MY_SCRIPT_ID =: 1", "THE_SCRIPT_ID", & script);

    & engine.eval(&script);

    Local chain & result_text = & engine .get ("result") m:System.NET.SocketAddress.ToString ();

  • Please share the Script to retrieve the name of host, HBA, HBAstatus, WWN, pathpolicy and dualpathinfo

    Please share the Script to retrieve the name of host, HBA, HBAstatus, WWN, pathpolicy and dualpathinfo

    Take a look on Re: information on the host hardware with information about the HBA drivers and nic

  • Retrieve the Name of the tag property

    I'm definitely a novice PowerCLI. However, I have a script which is heavily borrowed from http://www.vstrong.info/2013/10/18/vmware-powercli-script-to-query-virtual-machine-events/

    What I would like to make in addition to the values that are retrieved, also receive the Name property of the attribute of the tag.

    The script I use now is:

    $vcenterserver = "myvcenter".

    # Check if VMware Snapin is loaded, otherwise, load

    If ((Get - PSSnapin - name VMware.VimAutomation.Core - ErrorAction SilentlyContinue) - eq $null)

    {

    Add-PSSnapin VMware.VimAutomation.Core

    }

    SE connect-VIServer-Server $vcenterserver

    $CDT = get-Date

    Get-VM-name testvm | »

    Get-VIEvent-Types of information - start $CDT. AddDays(-30)-finishing $CDT | »

    Where {'}

    $_. GetType(). Name - eq "VmBeingDeployedEvent" "

    - or $_. GetType(). Name - eq "VmCreatedEvent" "

    - or $_. GetType(). Name - eq "VmRegisteredEvent"} | »

    Select the name of user, Createduserid, FullFormattedMessage, @{Name = "VM"; Expression = {$_.} Vm.Name}}, @{Name = "RC Code"; Expression = {$_.} Vm.Tag}}

    He retrieves the correct values with the exception of the tag for the virtual machine. I also tried @{Name = "RC Code"; Expression = {$_.} Vm.Tag.Name}}

    I can extract the value in a table using the following command, but can't seem to pull the Name property:

    Get-VM-name testvm | Get-TagAssignment-category RCCode | Select-Object - ExpandProperty tag

    Description of the categories of name

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

    10031 technical RCCode except...

    Any help would be appreciated, thanks!

    OK, then try this. I have not yet tested, but it should do it for you:

    Select the name of user, Createduserid, FullFormattedMessage, @{Name = "VM"; Expression = {$_.} Vm.Name}}, @{Name = "RC Code"; Expression = {$vm = ($_.)} UMM name); Get-TagAssignment | where {$_.} Entity-like ("$VM")}}} | Export Csv c:\Temp\csv.csv - NoTypeInformation - UseCulture

    The issue was that as the expression of Code RC worked essentially a new request, the $_. UMM name was irrelevant for the entity. Instead I just had the previous $_. UMM name in a variable that is referenced in the cmdlet that followed. Let me know if it works for you.

  • How to retrieve the name of the partition of a deployment process

    Hello

    In a 11g BPEL process I need the partition name (for example - default etc.) in which the process has been deployed. As we buld available function to retrieve the instance id (ora:getCompositeInstanceId ()), we have no function to retrieve the name of the partition?

    Hello

    Try this to affect the business.

          
            
            
          
    

    Kind regards
    Neeraj Sehgal

  • Retrieve the names of files for Linux?

    Hello
    I installed ODI 11 g on windows. and load the multiple file. as you can see that this procedure (script) is used to get the name of the files. using technology "Operating System"
    cmd /c dir D:\test\*.*/b /a:-d > D:\\Filesname.txt. It works well on windows. Now, I want to load these files names that are on the Linux server.
    How will be the script for this
    as my files directory name is Test > > > > that contains files
    Filename.txt > > retrieves the names of the files in the test directory.
    In Linux.

    Thank you

    Concerning

    create a script file using above command and run the script file in odi.

    /Home/user_name/ScriptFile.sh

    It will work.

  • retrieve the Vc:HostSystem host name

    How to retrieve the host name of the object of HostSystem under the api vc3.5.

    I tried

    $host.name host. Name

    Host.info.Name host.info.Name

    Host.Summary.info.Name host.summary.info.Name

    I have a table of host objects I want to choose a host by name.

    var table = new Array();

    (host var cluster.host)

    {

    System.log (host.xxxxxx)

    }

    vCO 4.0 had a 32 bit JRE 1.5, vCO 4.1 has a 64-bit JRE 1.6.

    I don't know if the plugin VIM3.5, you have the 4.0 version works on version 4.1. I'm sure it wasn't something QA teams tested.

    I checked with the doc team. The latest guide mentioning the plugin vim3.5 is the 4.01. It must be available for this version of vCO (4.0 Update 1).

    To be in a position to support, you must install a 4.01, including the plugin vim3.5 vCO in the Install_Directory/extras/plugins folder.

    Ideally of course, you'd have the last corresponding vCO 4.1 / vCenter 4.1 U1.

    Please note that the workflow in writing against the plugin vim3.5 will requires that the types of plug-ins for vim3.5 for plug-ins to VC of refactoring.

    Christophe.

Maybe you are looking for