Retrieve XML data in clob type

I have a created table as below

create the table tab123 (clob x);

Inserted a line like below

insert into values t ('"< ProcessBatchRequest xmlns:inp1 ="http://services.abc.com/"ServiceVersionNumber =" "xmlns ="http://services.abc.com/GlobalBatchServiceV1.0">)
< inp1:BatchDetail >
< inp1:ApplicationID > test.123 < / inp1:ApplicationID >
< inp1:ApplicationBatchID > test.123 < / inp1:ApplicationBatchID >
< inp1:MessageTimeStamp > 2012-11-28 T 11: 05:32.000 - 05:00 < / inp1:MessageTimeStamp >
< / inp1:BatchDetail >
< inp1:CustomerIdentityDetail >
< inp1:SubscriberNumber > 123 < / inp1:SubscriberNumber >
< inp1:UserUniqueID > 1542 < / inp1:UserUniqueID >
< inp1:SubscriberCountryISOAlpha2Code > AD < / inp1:SubscriberCountryISOAlpha2Code >
< inp1:ApplicationCustomerID > 1210 < / inp1:ApplicationCustomerID >
< inp1:ApplicationCustomerName > CBA < / inp1:ApplicationCustomerName >
< inp1:ApplicationUserID > CBA < / inp1:ApplicationUserID >
< / inp1:CustomerIdentityDetail >
< inp1:BatchSpecification >
< inp1:BatchProcessID > Clean < / inp1:BatchProcessID >
< inp1:BatchPriorityValue > 10 < / inp1:BatchPriorityValue >
< inp1:LanguagePreferenceCode > 39 < / inp1:LanguagePreferenceCode >
< inp1:CharacterSetPreferenceCode > 23423 < / inp1:CharacterSetPreferenceCode >
< inp1:MatchSpecification >
< inp1:ConfidenceLowerLevelThresholdValue > 8 < / inp1:ConfidenceLowerLevelThresholdValue >
< inp1:ConfidenceFallbackLowerLevelThresholdValue > 4 < / inp1:ConfidenceFallbackLowerLevelThresholdValue >
< inp1:ReturnAllFallbackMatchCandidatesIndicator > false < / inp1:ReturnAllFallbackMatchCandidatesIndicator >
< inp1:ExclusionCriteria >
< inp1:ExclusionDataDescription > small < / inp1:ExclusionDataDescription >
< / inp1:ExclusionCriteria >
< inp1:ReturnCleansedInformationIndicator > false < / inp1:ReturnCleansedInformationIndicator >
< inp1:MatchOnSeniorPrincipalNameIndicator > 0 < / inp1:MatchOnSeniorPrincipalNameIndicator >
< / inp1:MatchSpecification >
< inp1:CleanseSpecification >
< inp1:ParseOnlyIndicator > 0 < / inp1:ParseOnlyIndicator >
< inp1:ProcessAsDiscreteDataIndicator > 1 < / inp1:ProcessAsDiscreteDataIndicator >
< inp1:ReturnDatainMixedCaseIndicator > 0 < / inp1:ReturnDatainMixedCaseIndicator >
< inp1:DoNotReturnChangeOfAddressIndicator > 1 < / inp1:DoNotReturnChangeOfAddressIndicator >
< inp1:DoNotEnableDeliveryPointValidationIndicator > 1 < / inp1:DoNotEnableDeliveryPointValidationIndicator >
< inp1:DoNotReturnEnhancedLineofTravelIndicator > 1 < / inp1:DoNotReturnEnhancedLineofTravelIndicator >
< inp1:DoNotConvertRuralRouteToStreetAddressIndicator > 1 < / inp1:DoNotConvertRuralRouteToStreetAddressIndicator >
< inp1:DoNotReturnSuiteAddressDetailIndicator > 1 < / inp1:DoNotReturnSuiteAddressDetailIndicator >
< / inp1:CleanseSpecification >
< / inp1:BatchSpecification >
< inp1:InputDetail >
< inp1:InputFileDetail >
< inp1:FileURI > / mnt/auto/< / inp1:FileURI >
< inp1:FileLayoutName > Clean < / inp1:FileLayoutName >
< inp1:LanguageCode > 36 < / inp1:LanguageCode >
< inp1:CompressTypeValue > None < / inp1:CompressTypeValue >
< inp1:RecordsCount > 5 < / inp1:RecordsCount >
< / inp1:InputFileDetail >
< / inp1:InputDetail >
< inp1:OutputSpecification >
< inp1:FileLocationURI > / mnt/auto/< / inp1:FileLocationURI >
< / inp1:OutputSpecification >
< inp1:NotificationDetail >
< inp1:NotificationMethodValue > Test < / inp1:NotificationMethodValue >
< inp1:NotificationFrequencyValue > 0 < / inp1:NotificationFrequencyValue >
< / inp1:NotificationDetail >
< inp1:BatchReferenceDetail / >
< / ProcessBatchRequest >
"');

1 inserted rows.

Now I want to retrieve the current value under a given xpath. Can someone help with the query?

Tags: Database

Similar Questions

  • Retrieving XML data and make it available in a DataGrid

    I need to retrieve the xml data in the file below (mycontactdata.xml) which will be in my current folder in my project directory. I just need to get the XML for the node 2 (list of CONTACTS) which must then be displayed in a DataGrid control. DataGrid will be in a separate mxml file while retrieving the xml data will be in the main mxml Application file.

    Any ideas? Thank you

    <? XML version = "1.0" encoding = "UTF-8" standalone = 'no '? >
    -< DATATABLES >
    -< DATATABLE ID = 'SYSTEM' >
    -< ROW ID = "0" >
    < COLUMN ID = "#SCENE_ID" VALUE = "1" / >
    < / ROW >
    < / DATATABLE >
    -< DATATABLE ID = 'CONTACTS list' >
    -< ROW ID = "0" >
    < COLUMN ID = "CON_ID" VALUE = "7 q 1 ++ 149" / >
    < COLUMN ID = "First name" VALUE = "PATRICIA" / >
    < ID of COLUMN = 'Family name' VALUE = "DEROCHIE" / >
    < ID of COLUMN = "Account name" VALUE = "" BRUCE COUNTY GENERAL HOSP. "/ >"
    < ID of COLUMN = 'Contact of Type' VALUE = 'Head of pharmacy' / >
    < ID of COLUMN = "The main specialty" VALUE = "Not Applicable" / >
    < ID of COLUMN = "Primary phone" VALUE = "15198811220" / >
    < / ROW >
    -LINE ID = "1" >
    < COLUMN ID = "CON_ID" VALUE = "1 + 51 + 2249" / > "
    < COLUMN ID = "First name" VALUE = "DUNCAN C M" / >
    < ID of COLUMN = 'Family name' VALUE = "GRAHAM" / >
    < ID of COLUMN = "Account name" VALUE = "" / > "
    < COLUMN ID = 'Contact of Type' VALUE = 'Doctor' / >
    < ID of COLUMN = 'The main speciality' VALUE = 'General surgery' / >
    < ID of COLUMN = "Primary phone" VALUE = "5198812880" / >
    < / ROW >
    -LINE ID = "2" >
    < COLUMN ID = "CON_ID" VALUE = "1 + 4Z + 3962" / >
    < COLUMN ID = "First name" VALUE = "HENDRINA SUSAN" / >
    < ID of COLUMN = 'Family name' VALUE = 'MCARTHUR' / >
    < ID of COLUMN = "Account name" VALUE = "" / > "
    < COLUMN ID = 'Contact of Type' VALUE = 'Doctor' / >
    < ID of COLUMN = "The main specialty" VALUE = "Generalists" / >
    < ID of COLUMN = "Primary phone" VALUE = "5198814640" / >
    < / ROW >
    -LINE ID = "3" >
    < COLUMN ID = "CON_ID" VALUE = "1 + 51 + 3323" / > "
    < COLUMN ID = "First name" VALUE = "PAUL EDWARD" / >
    < ID of COLUMN = 'Family name' VALUE = 'MCARTHUR' / >
    < ID of COLUMN = "Account name" VALUE = "" / > "
    < COLUMN ID = 'Contact of Type' VALUE = 'Doctor' / >
    < ID of COLUMN = "The main specialty" VALUE = "Generalists" / >
    < ID of COLUMN = "Primary phone" VALUE = "5198814640" / >
    < / ROW >
    < / DATATABLE >
    -< DATATABLE ID = "ACTIVE_LAYOUTS" NAME = "ACTIVE_LAYOUTS" TYPE = "ARRAY" >
    -LINE ID = "1" NAME = "Row" >
    < COLUMN ID = 'TYPE' NAME = VALUE 'TYPE' = "HEAD OFFICE" / >
    < / ROW >
    < / DATATABLE >
    < / DATATABLES >

    This works, even if I'm extremely surprised, there is no way to do it with the e4x syntax:

  • retrieving xml data field

    Question: How to create the ability to load an XML to another area?

    For example, I create an embedded video player which plays on the field that the xml file resides and also embarked on other sites.

    I'm at the point where the video player works entirely on the area that the xml file is located and when I embed on another field, the .flv plays, but the xml data won't.

    FYI, I have full access to the domain where the xml file resides.

    Following are excerpts from the security settings I tried to go to work:

    Code of the player:

    System.security.loadPolicyFile (domain + "data / crossdomain.xml");

    Code of "data / crossdomain.xml:

    <? XML version = "1.0"? >

    < cross-domain-policy >

    < allow-access-from domain = "" * "/ >"

    < / cross-domain-policy >

    Any help would be beneficial, even a link to another site. Thanks in advance!

    There are two quick fixes:

    (1) simply host the SWF on your domain and enable version "embarked on other sites" reference just the absolute path to your SWF file. your swf file is not "live" on any other field, but it is loaded in the pages of the domain of your server.

    (2) do not put the crossdomain.xml file in a special folder. Just put the file to the root of the web server. This allows backwards compatibility with older versions of the Flash Player too, if you need build a legacy Flash SWF from a previous version of the player.

    HTH.

    -Robert

    --

    Robert Reinhardt

    Creator, videoRx.com

    Author, series Bible Flash and video for Adobe Flash CS4 Professional Studio Techniques

    Adobe Community Expert

    http://blogs.flashsupport.com/Robert

  • Retrieve XML data

    Hello

    I'm new to this forum.  I have an XMl document as below:

    < Gallery >

    < image >

    pic1 < title > < /title >

    txt1 < text >, < text >

    < / image >

    < image >

    Note2 < title > < /title >

    txt2 < text >, < text >

    < / image >

    < / Gallery >

    I want to extract the value of the 'text' node and print it. Can anyone help?

    -Akshay

    I have a very basic example to load the XML information into an application in this case:

    http://www.mattlefevre.com/viewExample.php?tut=Flex&proj=basic%20Gallery

    with a little tweaking and modification, that it could be modified to also store information in text as well, it should help you get started at least

  • Retrieve data XML stored in CLOB columns

    Hello

    I have the table below which contains the XML in a CLOB

    CREATE TABLE testxml
      (idcol NUMBER(3), xml_data CLOB
      );
      
    INSERT
    INTO testxml VALUES
      (
        201,
        '
    
    <TRADE>
       <TRADETYPE>SWAP</TRADETYPE>
       <SUBTYPE>CDS</SUBTYPE>
       <TRADEHEADER>
          <ACTION>NEW</ACTION>
          <SOURCEID>ABS-CD</SOURCEID>
          <TRADEID>20595896</TRADEID>
       </TRADEHEADER>
       <TRADELEGS>
          <TRADELEG>
             <PAY_OR_RECEIVE>P</PAY_OR_RECEIVE>
             <FIXED_FLOAT_IND>FLT</FIXED_FLOAT_IND>
             <DAY_COUNT_BASIS>A365F</DAY_COUNT_BASIS>
             <ORIG_PRIMARY_CURRENCY>ZAR</ORIG_PRIMARY_CURRENCY>
             <FIRST_VALUE_DATE>20120511</FIRST_VALUE_DATE>
          </TRADELEG>
          <TRADELEG>
             <PAY_OR_RECEIVE>R</PAY_OR_RECEIVE>
             <FIXED_FLOAT_IND>FIX</FIXED_FLOAT_IND>
             <DAY_COUNT_BASIS>A365F</DAY_COUNT_BASIS>
             <ORIG_PRIMARY_CURRENCY>ZAR</ORIG_PRIMARY_CURRENCY>
             <FIRST_VALUE_DATE>20120511</FIRST_VALUE_DATE>
          </TRADELEG>
       </TRADELEGS>
       <PVS>
          <PV_SOURCE>ABS-CD</PV_SOURCE>
          <PV>
             <NPV>0</NPV>
             <NPV_CCY>ZAR</NPV_CCY>
             <VALUATION_DATE>20130628</VALUATION_DATE>
             <LEG_NUMBER>1</LEG_NUMBER>
          </PV>
          <PV>
             <NPV>2214864.54</NPV>
             <NPV_CCY>ZAR</NPV_CCY>
             <VALUATION_DATE>20130628</VALUATION_DATE>
             <LEG_NUMBER>2</LEG_NUMBER>
          </PV>
       </PVS>
       <CREDIT_DERIVATIVES>
          <CREDIT_DERIVATIVE>
             <NOMINAL>100000000</NOMINAL>
             <MATURITY_DATE>20170620</MATURITY_DATE>
             <BUY_SELL_INDICATOR>SELL</BUY_SELL_INDICATOR>
             <CURRENCY>ZAR</CURRENCY>
          </CREDIT_DERIVATIVE>
          <CREDIT_DERIVATIVE>
             <NOMINAL>100002000</NOMINAL>
             <MATURITY_DATE>20170620</MATURITY_DATE>
             <BUY_SELL_INDICATOR>BUY</BUY_SELL_INDICATOR>
             <CURRENCY>USD</CURRENCY>
          </CREDIT_DERIVATIVE>
       </CREDIT_DERIVATIVES>
    </TRADE>
    
    '
      );
    

    I need the data must be retrieved in the form of columns. I tried the below SQL but it works for a XMLTable i.e. TRADELEGS. But if I try to use another XMLTable for PVS so it is a Cartesian join.

    SELECT id,
      xmltype(xml_data).extract('/TRADE/TRADETYPE/text()').getStringVal()          AS TRADETYPE,
      xmltype(xml_data).extract('/TRADE/SUBTYPE/text()').getStringVal()            AS SUBTYPE,
      xmltype(xml_data).extract('/TRADE/TRADEHEADER/ACTION/text()').getStringVal() AS ACTION,
      x.PAY_OR_RECEIVE,
      x.FIXED_FLOAT_IND
    FROM testxml,
      XMLTable( '/TRADE/TRADELEGS/TRADELEG' passing XMLTYPE(xml_data) 
      columns 
      PAY_OR_RECEIVE VARCHAR2(20) PATH 'PAY_OR_RECEIVE' 
      , FIXED_FLOAT_IND VARCHAR2(20) PATH 'FIXED_FLOAT_IND' ) x;
    

    The query below does not work:

    SELECT id,
      xmltype(xml_data).extract('/TRADE/TRADETYPE/text()').getStringVal()          AS TRADETYPE,
      xmltype(xml_data).extract('/TRADE/SUBTYPE/text()').getStringVal()            AS SUBTYPE,
      xmltype(xml_data).extract('/TRADE/TRADEHEADER/ACTION/text()').getStringVal() AS ACTION,
      tradeleg.PAY_OR_RECEIVE,
      tradeleg.FIXED_FLOAT_IND
      ,xmltype(xml_data).extract('/TRADE/PVS/PV_SOURCE/text()').getStringVal() AS PV_SOURCE
      ,pvs.npv,
      pvs.VALUATION_DATE
    FROM testxml,
      XMLTable( '/TRADE/TRADELEGS/TRADELEG' passing XMLTYPE(xml_data) 
      columns 
      PAY_OR_RECEIVE VARCHAR2(1) PATH 'PAY_OR_RECEIVE' 
    , FIXED_FLOAT_IND VARCHAR2(3) PATH 'FIXED_FLOAT_IND' ) tradeleg
      ,XMLTable( '/TRADE/PVS/PV' passing XMLTYPE(xml_data) 
      columns 
      NPV NUMBER PATH 'NPV' 
    , VALUATION_DATE VARCHAR2(8) PATH 'VALUATION_DATE' ) pvs
    WHERE id = 1;
    

    I need the output to TRADELEGS, PVS and CREDIT_DERIVATIVES.

    Kind regards

    Vikram

    But if I try to use another XMLTable for PVS so it is a Cartesian join.

    Of course, it does. You must use a join condition any.

    What is the correlation of TRADELEGS, PVS and CREDIT_DERIVATIVES?

    I guess you can relate a TICKET to a TRADELEG through the LEG_NUMBER, right? But what about CREDIT_DERIVATIVE PV or TRADELEG?

    I need the output to TRADELEGS, PVS and CREDIT_DERIVATIVES.

    What explains the output should look like.

  • to retrieve data from xml data type

    Hello...
    I have a doubt in the oracle database... Here's how to retrieve data from xml data type?

    Like this...

    SQL> ed
    Wrote file afiedt.buf
    
      1  with t as (select xmltype('
      2  
    3 4 toMonth5 5 ctTestPan1 6 costType2 7 toYear2012 8 fromMonth12 9 fromYear2011 10 11
    ') as xml from dual) 12 -- 13 -- end of sample XMLDATA, use below query on your own table etc. as required 14 -- 15 select x.* 16 from t 17 ,xmltable('/DETAILS/FIELDS_VALUES/FIELD' 18 passing t.xml 19 columns name varchar2(30) path './NAME' 20 ,val varchar2(10) path './VALUE' 21* ) x SQL> / NAME VAL ------------------------------ ---------- toMonth 5 ctTestPan 1 costType 2 toYear 2012 fromMonth 12 fromYear 2011 6 rows selected.
  • 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

  • Cannot retrieve the data by binary storage by default for XML 11 g

    Oracle 11.2

    All,

    As someone mentioned in another post, I got I should use binary XMLType CLOB rather than 11g because it is more efficient. When I create the XMLType column as binary I can't retrieve the value of the column, but when I use CLOB I am able to extract data on.

    -Create table with XMLTYPE column.  Since it is 11.2 storage of the column is automatically binary
    CREATE THE TABLE HR. XMLTABLESTORE (key_id VARCHAR2 (10) PRIMARY KEY, xmlloaddate date, xml_column XMLTYPE);

    -Insert the XML into the XML column
    INSERT INTO HUMAN RESOURCES. VALUES XMLTABLESTORE (HR. XMLSEQUENCE. NEXTVAL, SYSDATE, XMLType (bfilename ('XMLDIRX', 'PROD_20110725_211550427_220b.xml'),
    nls_charset_id ('AL32UTF8'))); COMMIT;

    -When I do a select I see full XML in the xml_column column
    SELECT * FROM HR. XMLTABLESTORE

    -When I run the following query I get the following:
    SELECT extract (xml_column, ' / / MapItem/@ProductNum') ProductNum OF HR. XMLTABLESTORE

    ProductNum
    -------------
    XMLType

    -When I run the following query on the @, I get the following:
    SELECT extract (xml_column, ' / / MapItem/ProductNum ') ProductNum OF HR. XMLTABLESTORE

    ProductNum
    -------------
    Null value

    When I run the same SELECT query retrieves (xml_column, ' / / MapItem/@ProductNum') ProductNum OF HR. XMLTABLESTORE and the table is created by CLOB, I get out the expected value of the XML file.

    How can I get the query to retrieve the data through a binary file?

    I appreciate any help in advance.

    Thank you
    Shawn

    Published by: 886184 on Sep 20, 2011 15:42

    Probably a problem with your client tool.

    It works for me:

    SQL*Plus: Release 11.2.0.2.0 Beta on Mer. Sept. 21 19:39:55 2011
    
    Copyright (c) 1982, 2010, Oracle.  All rights reserved.
    
    Connected to:
    Oracle Database 11g Express Edition Release 11.2.0.2.0 - Beta
    
    SQL> CREATE TABLE xmltablestore (
      2    key_id VARCHAR2(10) PRIMARY KEY
      3  , xmlloaddate DATE
      4  , xml_column XMLTYPE
      5  );
    
    Table created.
    
    SQL> INSERT INTO xmltablestore
      2  VALUES ('1', sysdate, XMLType(bfilename('TEST_DIR', 'PROD_20110725_211550427_220b.xml'),nls_charset_id('AL32UTF8')))
      3  ;
    
    1 row created.
    
    SQL> commit;
    
    Commit complete.
    
    SQL> SELECT extract(xml_column, '//MapItem/@ProductNum') ProductNum
      2  FROM xmltablestore
      3  ;
    
    PRODUCTNUM
    --------------------------------------------------------------------------------
    63481062975
    
    SQL> SELECT extractValue(xml_column, '//MapItem/@ProductNum') ProductNum
      2  FROM xmltablestore
      3  ;
    
    PRODUCTNUM
    --------------------------------------------------------------------------------
    63481062975
    
    SQL> SELECT xmlcast(
      2          xmlquery('/Entries/Category/MapItem/@ProductNum'
      3           passing t.xml_column
      4           returning content
      5          )
      6          as number
      7         ) ProductNum
      8  FROM xmltablestore t
      9  ;
    
    PRODUCTNUM
    ----------
    6,3481E+10
    
    SQL> SELECT xmlcast(
      2          xmlquery('/Entries/Category/MapItem/@ProductNum'
      3           passing t.xml_column
      4           returning content
      5          )
      6          as varchar2(30)
      7         ) ProductNum
      8  FROM xmltablestore t
      9  ;
    
    PRODUCTNUM
    ------------------------------
    63481062975
    

    BTW, extract and extractvalue functions are deprecated in version 11.2.
    Oracle now recommends using XMLCast/XMLQuery.

  • Table design for the newspaper error due to a xml data type

    Hello

    I am trying to create a table of error log, but I get the below error

    ORA-20069: unsupported column or the types found:

    Table on which I am trying to create a column with the xml data type.

    Is there a way to create the error table for tables with the XML data type.

    Thank you

    PAL

    http://docs.Oracle.com/CD/E11882_01/server.112/e41084/statements_9014.htm#SQLRF55101

    Concerning

    Etbin

    http://docs.Oracle.com/CD/E11882_01/AppDev.112/e40758/d_errlog.htm#ARPLS680

    Look at the skip_unsupported setting

  • Can I create an XSD from XML data into a CLOB?

    Environment:


    Oracle 11.2.0.3 EE on Solaris.


    Highly an XML newbie so please be nice!

    I spent the past few days pouring through the documentation and various articles, including this one, but... I need help.

    I am trying to extract XML data stored in a CLOB and produce a flat file for the user's consumption.

    They sent me what they think is the XSD for XML data, but when I look at the data in the CLOB I don't see tags in the XSD.

    I would like to produce a XSD based on real data to compare with what they sent.

    Is this possible?

    I am able to query XML data using the tags that I see in data using XMLTable and it works fine.

    Any help is greatly appreciated.

    -gary

    Welcome to the side of the world, where you're going to love it and curse, like any other piece of XML technology.

    So if I understand correctly, the scope of your operation is to extract information from an XML file and then write this information to the disk, correct?

    A few questions

    -Why did the XML stored in a CLOB instead of an XMLType column?  Without knowing the history of the system, it is a pertinent question.

    -What size are the XML?  I ask this question, it is because when the XML is stored in the columns of XMLType (relational structure object or XML BINARY SECUREFILE format), then Oracle can parse the XML much more easily when it is stored as a CLOB.  If the XML is small enough, you can see no difference in performance between the two.

    The Oracle DB itself has no built in the ability to generate a schema from an XML file.  To do this, you need to use a third-party tool that has this feature in.  For example, XML Spy can do.  Other tools as well, but that's what comes to mind first is what I use.  The only thing to remember is that the scheme he built is only an XML instance.  Other XML instances can be different and not valid against the schema you generated, but still valid against the original schema unknown.

    You can save the schema in the database and then use the XML to create an XMLType instance related to the schema and then validate the XML in this way.  An example XML DB FAQ and here's another one Re: validation of XML schema

    Hope that helps you continue.

  • DSC with XML data type

    Hello

    Can someone explain to me what the difference is between the xml data type and the type of Document data in workbench? I would use the xml datatype in my DSC thinking that it's probably the best representation of an xml string. But I heard that the Document is more widely used and it can represent an entity xml as well. Is this good?

    My ultimate goal is to write a DSC and use a type representing an xml string. I would like that the component.xml of the type for my input variables automatically be typed 'xml' or 'document' (whatever that I should use).

    I tried to create variables of both types ("xml" and "document", lowercase d) and those who have passed in my DSC for inspection. The object passed are as follows:

    XML: org.apache.xerces.dom.DocumentImpl

    Document: com.adobe.idp.Document

    But if I use one of these in my component.xml workbench is to type my variables as 'DocumentImpl' or 'Document '.

    Any ideas?

    Thanks in advance!

    NIC

    Yes. I am it would be showing the xml for the variable type, but it shows Document in both cases. But they are different. One is an org.w3c.dom.Document and the other is a com.adobe.idp.Document.

    So I guess, try to use a title for this setting that reflects the nature of the variable you are trying to use.

    Also, you can use the tag to put a little more explanation on the type of variable you want to use.

    Jasmine

  • How to extract data using the xml data type

    Hello
    I tried the following example using the xml data type, but not the desired output.
    could you please correct the query in order to obtain the necessary
    CREATE TABLE TEST.EMP_DETAIL
    (
      EMPNO       NUMBER,
      ENAME       VARCHAR2(32 BYTE),
      EMPDETAILS  SYS.XMLTYPE
    )
    Insert into EMP_DETAIL
       (EMPNO, ENAME, EMPDETAILS)
     Values
       (7, 'Martin', XMLTYPE('<Dept>
      <Emp Empid="1">
        <EmpName>Kevin</EmpName>
        <Empno>50</Empno>
        <DOJ>20092008</DOJ>
        <Grade>E3</Grade>
        <Sal>3000</Sal>
      </Emp>
      <Emp Empid="2">
        <EmpName>Coster</EmpName>
        <Empno>60</Empno>
        <DOJ>01092008</DOJ>
        <Grade>E1</Grade>
        <Sal>1000</Sal>
      </Emp>
      <Emp Empid="3">
        <EmpName>Samuel</EmpName>
        <Empno>70</Empno>
        <DOJ>10052008</DOJ>
        <Grade>E2</Grade>
        <Sal>2530</Sal>
      </Emp>
      <Emp Empid="4">
        <EmpName>Dev</EmpName>
        <Empno>80</Empno>
        <DOJ>10032007</DOJ>
        <Grade>E2</Grade>
        <Sal>1200</Sal>
      </Emp>
    </Dept>
    '));
    I need to get the record for Empid = '2'
    Then tried the following query with no expected o/p
    SELECT a.empno,a.ename,a.empdetails.extract('//Dept/Emp/EmpName/text()').getStringVal() AS "EmpNAME",
         a.empdetails.extract('//Dept/Emp/Empno/text()').getStringVal() AS "EMPNumber",
          a.empdetails.extract('//Dept/Emp/DOJ/text()').getStringVal() AS "DOJ",
          a.empdetails.extract('//Dept/Emp/Grade/text()').getStringVal() AS "Grade",
          a.empdetails.extract('//Dept/Emp/Sal/text()').getStringVal() AS "Salary",
          a.empdetails.extract('//Dept/Emp[@Empid="2"]').getStringVal() AS "ID",
          a.empdetails.extract('//Dept/Emp[EmpName="Coster"]').getStringVal() AS "CHK"
         FROM emp_detail a 
         where empno=7  
               AND a.empdetails.existsNode('//Dept/Emp[@Empid="2"]') =1
    Thank you...

    Karthick_Arp wrote:
    I'm not very good at that... But if your XML code should not be more like this

    SQL> Insert into EMP_DETAIL
    2     (EMPNO, ENAME, EMPDETAILS)
    3   Values
    4     (7, 'Martin', XMLTYPE('
    5    
    6      1
    7      Kevin
    8      50
    9      20092008
    10      E3
    11      3000
    12    
    .. cut ..
    

    Why? It is perfectly valid to data as attributes rather than elements and also quite common for key values.

  • Selection of XML in a CLOB data which a repeating XML tags - don't know how to get each individual tag

    This is an XML file that I store in a CLOB field in a table, Oracle 10

    'i' <? XML version = "1.0" encoding = "utf-8"? >

    < MERIDIANMASTERSEND xsi:noNamespaceSchemaLocation = "MeridianMasterSend.xsd" "xmlns: xsi =" " http://www.w3.org/2001/XMLSchema-instance ">

    < MASTER_SPEC_NUMBER > 10217655 < / MASTER_SPEC_NUMBER >

    < MASTER_SPEC_REVISION > 2 < / MASTER_SPEC_REVISION >

    < MASTER_SPEC_DESCRIPTION > CORNNUTS JALAPENO CHEDDAR 11.3 kg in bulk FS-40 x 1-MS < / MASTER_SPEC_DESCRIPTION >

    YES < RELEVANT_ALLERGEN_DATA_PROVIDED > < / RELEVANT_ALLERGEN_DATA_PROVIDED >

    CASHEW nuts < ALLERGEN_ATTRIBUTE > < / ALLERGEN_ATTRIBUTE >

    < ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >

    < ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >

    < ALLERGEN_SPECIFICATION_NAME > < / ALLERGEN_SPECIFICATION_NAME >

    MILK of < ALLERGEN_ATTRIBUTE > < / ALLERGEN_ATTRIBUTE >

    CONTAINS < ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >

    Health Canada and the CFIA < ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >

    < ALLERGEN_SPECIFICATION_NAME > food and drug B.01.010.1, B.01.010.2, B.01.010.3 < / ALLERGEN_SPECIFICATION_NAME >

    SOY < ALLERGEN_ATTRIBUTE > < / ALLERGEN_ATTRIBUTE >

    CONTAINS < ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >

    Health Canada and the CFIA < ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >

    < ALLERGEN_SPECIFICATION_NAME > food and drug B.01.010.1, B.01.010.2, B.01.010.3 < / ALLERGEN_SPECIFICATION_NAME >

    < ALLERGEN_ATTRIBUTE > TREE_NUTS < / ALLERGEN_ATTRIBUTE >

    < ALLERGEN_LEVEL_OF_CONTAINMENT > < / ALLERGEN_LEVEL_OF_CONTAINMENT >

    < ALLERGEN_SPECIFICATION_AGENCY > < / ALLERGEN_SPECIFICATION_AGENCY >

    < ALLERGEN_SPECIFICATION_NAME > < / ALLERGEN_SPECIFICATION_NAME >

    < / MERIDIANMASTERSEND >

    I normally query the Oracle table that stores this file XML in a CLOB column, called MDMXML by using the following query to get the different fields.

    Select a.part_no, a.revision, xmltype (a.mdmxml) .extract ("/ MERIDIANMASTERSEND/MASTER_SPEC_DESCRIPTION/text()').getstringVal () 'Master Spec Description' from interspc.atmdmdata where a.master_part_no is not null")

    How would be to extract the cashews, milk, soy, values of walnuts (attribute, containment level, agency of specification, the specification name) in my SQL statement above?

    Otherwise, I'd be OK for a list

    Glad to hear because your main requirement cannot be reached.

    You cannot have a return to SELECT an unknown number of columns.

    Separate line inscription makes more sense, for what is a relational database is.

    Select x.*

    of atmdmdata one

    xmltable)

    ' for $i in /MERIDIANMASTERSEND

    , $j in $i / ALLERGEN_ATTRIBUTE

    Returns the element r {}

    $j/next - sibling:ALLERGEN_LEVEL_OF_CONTAINMENT [1]

    , $j/next - sibling:ALLERGEN_SPECIFICATION_AGENCY [1]

    , $j/next - sibling:ALLERGEN_SPECIFICATION_NAME [1]

    , $j/.

    , $i / MASTER_SPEC_DESCRIPTION

    }'

    passage xmltype (a.mdmxml)

    columns

    Path of varchar2 (30) MASTER_SPEC_DESCRIPTION 'MASTER_SPEC_DESCRIPTION '.

    , Path of varchar2 (30) attribute 'ALLERGEN_ATTRIBUTE '.

    , Path of varchar2 (30) LEVEL_OF_CONTAINMENT 'ALLERGEN_LEVEL_OF_CONTAINMENT '.

    , Path of varchar2 (30) SPECIFICATION_AGENCY 'ALLERGEN_SPECIFICATION_AGENCY '.

    , Path of varchar2 (80) SPECIFICATION_NAME 'ALLERGEN_SPECIFICATION_NAME '.

    ) x

    ;

    MASTER_SPEC_DESCRIPTION LEVEL_OF_CONTAINMENT SPECIFICATION_AGENCY SPECIFICATION_NAME ATTRIBUTE

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

    CORNNUTS 11.3 CASHEW CHEDDAR JALAPEÑO

    CORNNUTS JALAPENO CHEDDAR 11.3 MILK CONTAINS Health Canada and CFIA food and drug B.01.010.1, B.01.010.2, B.01.010.3

    CORNNUTS JALAPENO CHEDDAR 11.3 SOY CONTAINS Health Canada and CFIA food and drug B.01.010.1, B.01.010.2, B.01.010.3

    CORNNUTS JALAPENO CHEDDAR 11.3 TREE_NUTS

  • Loading XML data in ListView of C++ after extraction of http data

    I'm sorry did searh but could not find any refrence related to my problem
    I am trying to load the xml data returned from a web service HTTP Post QNetworkRequest and QNetworkReply in c ++.

    My XML that gets donwloaded is as

    
     http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/">
      
        tu7652
        F
        Marry
        Wijaya
      
      
        23
        F
        Marry
        Wijaya
      
    
    

    In My QML, it comes to the ListView can say SearchResult.qml

    ListView {
              objectName: "resultlist"
              dataModel: feedsdatamodel
              listItemComponents: [
                ListItemComponent {
                            type: "item"
                            PeopleListItem {
                                name: ListItemData.givenName + ", " + ListItemData.sn
                                role: ListItemData.ExtFunction
                                leftPaddingText: 40
                            }
                        }
               ]
            }
     attachedObjects: [
           // The data model that contains the content of a XML file
            GroupDataModel {
                id: feedsDataModel
                sortingKeys: [
                    "givenName"
                ]
                grouping: ItemGrouping.None
            }
        ]
    

    PeopleListItem.qml

    import bb.cascades 1.0
    
    Container {
        property alias name: titleLabel.text
        property alias role: functionLabel.text
        property alias leftPaddingText: textcontainer.leftPadding
    
        layout: StackLayout {
            orientation: LayoutOrientation.TopToBottom
        }
        preferredWidth: 768
        preferredHeight: 135
        Container {
    
            id: textcontainer
            topPadding: 10
    
            layout: StackLayout {
                orientation: LayoutOrientation.TopToBottom
            }
            Label {
    
                id: titleLabel
                textStyle.base: SystemDefaults.TextStyles.TitleText
                textStyle.color: Color.Black
            }
            Label {
                id: functionLabel
                textStyle.base: SystemDefaults.TextStyles.BodyText
                textStyle.color: Color.Gray
            }
        }
        Divider {
            verticalAlignment: VerticalAlignment.Bottom
        }
    }
    

    This is the function I'm using to display the QML it is called from main.qml and works correctly.

    void PeopleFinder::onSearchClicked() {
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t" << "begin";
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\tfname:"
                << m_fname << "\tlname:" << m_lname;
    
        // Create a network access manager and connect a custom slot to its
        // finished signal
        mNetworkAccessManager = new QNetworkAccessManager(this);
    
        // create a data model with sorting keys for lastname and firstname
        Q_ASSERT(
                connect(mNetworkAccessManager, SIGNAL(finished(QNetworkReply*)), this, SLOT(requestFinished(QNetworkReply*))));
    
        //Load the bew QML file of Search from here
        QmlDocument *qml = QmlDocument::create("asset:///SearchResults.qml").parent(
                this);
        qml->setContextProperty("peoplefinder", this);
    
        Page *mypage = qml->createRootObject();
        qml->setParent(mypage);
        qDebug() << "PeopleFinder::PeopleFinder::onSearchClicked::\t s444444";
    
        // Retrieve the activity indicator from QML so that we can start
        // and stop it from C++
    //  mActivityIndicator = mypage->findChild("myIndicator");
    
        // Retrieve the list so we can set the data model on it once
        // we retrieve it
        mListView = mypage->findChild("resultlist");
    
        mNavigator->push(mypage);
    }
    

    Once the page loads in the QML it call the launch request providing c ++ file and once the
    query is completed under function is called with the data. I checked that data are downloaded properly

    void PeopleFinder::requestFinished(QNetworkReply* reply) {
        qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                << "response received";
        // Check the network reply for errors
        if (reply->error() == QNetworkReply::NoError) {
    
            // Open the file and print an error if the file cannot be opened
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "No error";
    
            // Write to the file using the reply data and close the file
            QByteArray xml = reply->readAll();
            qDebug() << "Data: \n" << xml;
    
            // load the xml data
            XmlDataAccess xda;
            QVariant list = xda.load(xml, "ArrayOfPeople");
    
            qDebug() << "List:::\n" << list;
    
            GroupDataModel *datamodel = (GroupDataModel*)mListView->dataModel();
            // add the data to the model
            datamodel->clear();
            datamodel->insertList(list.value());
            datamodel->setSortingKeys(QStringList() << "givenName" << "sn");
            qDebug() << "PeopleFinder::PeopleFinder::requestFinished::\t"
                    << "Datamodel set size:: " << datamodel->size();
    
            // Set the new data model on the list and stop the activity indicator
    
        } else {
            qDebug() << "\n Problem with the network";
            qDebug() << "\n" << reply->errorString();
        }
    }
    

    But now, the real problem begins as in how to convert QByteArray data type of QVariantList which can be loaded into the datamodel
    I don't want to write the data to the XML file and then pass that as a list his will is very slow, once I move test environment to the production environment.

    Please help me solve this problem

    I got it to work using xml parsing with QXmlStreamReader

  • Update an attribute XML in a CLOB to a table column

    Hello world

    I have a CLOB column in my table that carries a date XML. In which I need to update the attributes of the child when they repeat with the same parents several times in the data.

    For example:

    Say my XML data as follows.

    <? XML version = "1.0"? >

    " < sample xmlns =" https://www.ABC.com "> "

    < a > < b > detail first line < /b >

    second line of detail/< c >/< c >

    < /a >

    < d > < c > Paris/< c > < / d >

    < d > < c > France/< c > < / d >

    Japan < d > < c >/< c > < / d >

    < /sample >


    I want to update as

    <? XML version = "1.0"? >

    < sample xmlns = " https://www.ABC.com "> "

    < a > < b > detail first line < /b >

    second line of detail/< c >/< c >

    < /a >

    < d > < c1 > Paris < / c1 > < / d >

    < d > < c2 > France < / c2 > < / d >

    Japan < d > < c3 > < / c3 > < / d >

    < /sample >


    I have tried to identify the repetition of my parent attribute using the sub query and I tried updating their attribute by extracting the XML data for each attribute parent in a loop. But it does not work


    Select xml_load where xml_name = "sample1"; regexp_count (xml_val,' <d> ') -Giving more than 10K as County


    Identified the attributes of the parent for help,

    Select

    Count (1)

    of xml_load x

    where existsNode (extract (xmltype (xml_val),'/ * [local - name () = "sample"]'),)

    (' / d ') = 1 - he never returned me 1. I couldn't understand why as there is an attribute called < d >.

    Please provide your help in achieving my requirement. Any help would be greatly appreciated.

    I guess you want to insert an attribute in the existing xml document. So my suggestion is, instead of UPDATEXML you can just use INSERTCHILDXML. The following code works correctly. Hope this will be the final XML format

    -Code

    DECLARE

    l_col1 XMLTYPE.

    Nt_xml TYPE TABLE IS NUMBER;

    l_ntxml nt_xml: = nt_xml();

    BEGIN

    XMLTYPE (xt.xml_val) SELECT col1 INTO l_col1

    OF xml_test xt

    WHERE xt.xml_name = 'file sample.xml ";

    SOME pos

    LOOSE COLLECTION l_ntxml

    OF xml_test xt.

    XMLTABLE (xmlnamespaces (DEFAULT "http://www.abc.com'),

    "/ Report/identifier/area/CodeCategory.

    PASSAGE xmltype (xt.xml_val)

    COLUMNS pos for ORDINALITE

    )

    WHERE xt.xml_name = 'file sample.xml ";

    BECAUSE me IN 1.l_ntxml. COUNTY

    LOOP

    SELECT INSERTCHILDXML (l_col1,'/ report/identifier/area/CodeCategory ['| l_ntxml (i) |'] /Code','@id',l_ntxml (i) ','xmlns = "http://www.abc.com" ' ")

    IN l_col1

    DOUBLE;

    END LOOP;

    -DBMS_OUTPUT. Put_line (l_col1. GetClobVal());

    UPDATE xml_test SET xml_val is l_col1. GetClobVal() WHERE xml_name = "sample.xml";

    COMMIT;

    END;

    -After insertion

    http://www.ABC.com">

    CC5

    I48c2

    5

    65445

    5

    2c653

    5

    4c28

    5A

    55635

    5

    I5cc

    5

    65645

    5

    4555

    2

    I483

    5

    e558

    5

    I482

    5

    5563c

    5

    76526

    5

    64885

    2

    76524

    5

    e55c

    5

    e556c

    5

    C5cc52

    5

    45c7c

    2

    45c75

    2

    2c64c

    2

    77585

    5

    65455

    5

    e5565

    5

    2c644

    2

    667c2

    5

    2c643

    5

    7655c

    5

    O8c

    5

    V3cc5

    2

    V3ccc

    3

    73c27

    5

    3c4cc

    5

    24c7c

    5

    V275

    5

    V27c

    5

    e25

    5

    e5cc

    5

    76556

    5

    64825

    2

    2c57c

    5

    252c5

    5

    75cc

    5

    V5867

    2

    4c32c

    5

    25c8c

    5

    C5c555

    5

    V245

    5

    V242

    3

    2c75

    5

    65665

    5

    J452c

    5

    765c3

    5

    252cc

    5

    34545

    5

    555

    5

    4c4c

    5

    64855

    5

    I27c

    5

    F84c

    5

    27735

    5

    25cc3

    2

    27cc

    2

    556c

    5

    I5c32

    5

    3c4c5

    5

    25ccc

    54

    585

    5

    25cc2

    5

    25cc5

    5

    648c5

    2

    64425

    5

    3c4cc

    5

    O42c2

    5

    65c65

    5

    77c3

    5

    77c7

    5

    Pc735

    5

    27c4

    5

    c38c

    5

    J45cc8

    5

    2c68c

    5

    cc5c5

    5

    343c

    5

    2c68c

    2

    4c3c5

    5

    57c3

    5

    4c3c2

    2

    e37c

    5

    Mc57c

    5

    4c3cc

    8

    57cc

    5

    42735

    4

    42732

    2

    345c5

    5

    O6c85Xc

    5

    4283c

    5

    2c8c

    5

    25c6c

    3

    ec42

    5

    25c62

    5

    25c63

    5

    4568

    5

    345cc

    5

    2c632

    4

    65425

    3

    2c63c

    2

    5745

    5

    2c635

    5

    F3553

    5

    754c

    4

    45c85

    5

    78c3c

    3

    5748

    5

    73cc7

    5

    76c

    5

    66455

    5

    657c5

    5

    66cc5

    5

    V42c

    2

    V425

    5

    7767

    5

    66624

    5

    42822

    5

    57c8

    5

    Mc54c

    5

    2c634

    5

    e7c4

    5

    J845c

    5

    2c62c

    5

    45cc5

    2

    2c622

    5

    64765

    5

    e554c

    5

    3572

    3

    e3c2

    5

    5c6c

    5

    73c5c

    5

    7467

    5

    V426

    5

    65c

    3

    7463

    5

    F35c

    5

    64664

    5

    7464

    5

    73c57

    5

    c383

    5

    4c5c

    5

    66652

    5

    F5525

    5

    F552c

    5

    25c4c

    5

    2c626

    5

    428c

    2

    65225

    5

Maybe you are looking for

  • On the Satellite 3000 keyboard failure

    Hello. My roommate is a Toshiba Satilite 3000 - X 4 Since last night the keyboard did not work, I tried to help him solve the problem, but we are now at a loss, the message: "Cannot find \\.\DRI_KBfiltr" has popped up and I was not able to find this

  • Try to buy photo books

    Hello! I spent a lot of time to create my photo book and now it won't let me buy. I am in Europe and is trying to send to the States. It says that I need a us credit card. It sounds crazy. Help and thanks!

  • LaserJet p1102w

    Hello My problem is to define an ePrint for my printer e-mail address. After renewal network printer home stopped working, but when I've reconfigured printer on my PC and fixed it. But grateful arrested ePrint it, then I deleted the old configuralion

  • Add icons from the notification area of the taskbar

    When I installed Logitech V450 Laser Cordless Mouse and the Epson Stylus CX7400 series printer icons have been added to the my taskbar notification area tasks that alerted me to the battery low, low ink, etc..  I accidentally deleted those icons, mov

  • MS Bluetooth Notebook Mouse 5000 connects then disconnects immediately on Windows 7 Home Premium 64 - bit

    My Microsoft Bluetooth Notebook 5000 Mouse worked fine for several weeks, then I needed to change the batteries.  After putting in a new set of batteries, the mouse worked until my computer went to sleep.  Wake up, the mouse is more answered. I check