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

Tags: Database

Similar Questions

  • 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.

  • 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

  • Newbie interrogating an XML field in Clob

    I tried without success to the query of XML in a CLOB field today without much success.

    The clob field stores (modification, revision, edited) approvals for each version.
    I'm trying to get the most recent version (in this case 13) and State (name), it is (in this case "reviewed")

    Here is an example of the table and the field of a single XML column.
    desc WIKI.OS_PROPERTYENTRY
    
     Name                                              Null?       Type
     ----------------------------------------------------------------------- -------- ------------------------------------------------
     ENTITY_NAME                                         NOT NULL VARCHAR2(125)
     ENTITY_ID                                         NOT NULL NUMBER(19)
     ENTITY_KEY                                         NOT NULL VARCHAR2(200)
     KEY_TYPE                                               NUMBER(10)
     BOOLEAN_VAL                                               NUMBER(1)
     DOUBLE_VAL                                               FLOAT(126)
     STRING_VAL                                               VARCHAR2(255)
     TEXT_VAL                                               CLOB
     LONG_VAL                                               NUMBER(19)
     INT_VAL                                               NUMBER(10)
     DATE_VAL                                               DATE
    
    SQL> select xmltype(text_val) from wiki.os_propertyentry where entity_id = 7274716 and entity_key = 'com.comalatech.workflow.approvals';
    
    XMLTYPE(TEXT_VAL)
    ----------------------------------------------------------------------------------------------------------------------------------
    <ApprovalChecks>
      <ApprovalCheck>
        <name>Edited</name>
        <version>7</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-10-31 13:47:25.638 NZDT</date>
         <comment>Initial import from Word document without change</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>1</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>7</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-10-31 13:47:30.532 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>20</weight>
        <id>2</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Signoff</name>
        <version>7</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-10-31 13:47:32.532 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>30</weight>
        <id>3</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>8</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-11-02 10:54:07.903 NZDT</date>
         <comment>Updated references re Wiki, removed unwanted sections</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>4</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>8</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-11-02 10:54:10.552 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>20</weight>
        <id>5</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Signoff</name>
        <version>8</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2008-11-02 10:54:13.161 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>30</weight>
        <id>6</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>9</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-13 08:53:00.649 NZDT</date>
         <comment>Testing approval information</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>7</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>9</version>
        <approvers>
          <Approver>
         <approved>false</approved>
         <user>bgra030</user>
         <date>2009-11-13 08:53:13.830 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>8</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>12</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-23 11:08:14.666 NZDT</date>
         <comment>Changes due to self auditing, using Study Audit Checklist and DM Study Checklist</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>9</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>12</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-23 11:08:20.345 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>20</weight>
        <id>10</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Signoff</name>
        <version>12</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2009-11-23 11:08:23.997 NZDT</date>
         <comment/>
          </Approver>
        </approvers>
        <weight>30</weight>
        <id>11</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Edited</name>
        <version>13</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2011-10-31 10:42:37.703 NZDT</date>
         <comment>No change, just change of name of a linked page</comment>
          </Approver>
        </approvers>
        <weight>10</weight>
        <id>12</id>
        <stateId>0</stateId>
        <attachments/>
      </ApprovalCheck>
      <ApprovalCheck>
        <name>Reviewed</name>
        <version>13</version>
        <approvers>
          <Approver>
         <approved>true</approved>
         <user>bgra030</user>
         <date>2011-10-31 10:42:40.596 NZDT</date>
         <comm
    
    
    1 row selected.
    My request is far... I can't even run, let alone get the record I want to without some hard coding...

    Can anyone help?

    Thanks in advance.
    select y.y_name, y.y_version, z.z_approved, z.z_user, z.z_date, z.z_comment
    from WIKI.os_propertyentry t,
         XMLTABLE('$p/ApprovalChecks/ApprovalCheck'
                  PASSING t.text_val as "p"
                  COLUMNS y_name       VARCHAR2(30) PATH 'ApprovalCheck/name',
                          y_version    NUMBER       PATH 'ApprovalCheck/version',
                          Approver     XMLTYPE      PATH 'ApprovalCheck/approvers/Approver/*') y,
         XMLTABLE('$a/Approver'
                  PASSING y.Approver as "a"
                  COLUMNS z_approved  VARCHAR2(8)   PATH 'Approver/approved',
                          z_user      VARCHAR2(30)  PATH 'Approver/user',
                          z_date      DATE          PATH 'Approver/date',
                          z_comment   VARCHAR2(100) PATH 'Approver/comment') z
    where entity_id = 7274716 and entity_key = 'com.comalatech.workflow.approvals'
    and   t.name = 'Reviewed'
    and   t.version = 13;
    
    
               PASSING t.text_val as "p"
                          *
    ERROR at line 4:
    ORA-00932: inconsistent datatypes: expected - got CLOB

    Try

    select y.y_name, y.y_version, z.z_approved, z.z_user, z.z_date, z.z_comment
    from WIKI.os_propertyentry t,
         XMLTABLE('$p/ApprovalChecks/ApprovalCheck'
                  PASSING xmltype(t.text_val) as "p"                    --this
                  COLUMNS y_name       VARCHAR2(30) PATH 'name',  --this
                          y_version    NUMBER       PATH 'version', --this
                          Approver     XMLTYPE      PATH 'approvers/Approver/*') y, --this
         XMLTABLE('$a' --this
                  PASSING y.Approver as "a"
                  COLUMNS z_approved  VARCHAR2(8)   PATH '/approved', --this
                          z_user      VARCHAR2(30)  PATH '/user', --this
                          z_date      /*DATE*/ VARCHAR2(30)          PATH '/date', --this
                          z_comment   VARCHAR2(100) PATH '/comment') z --this
    where entity_id = 7274716 and entity_key = 'com.comalatech.workflow.approvals'
    and   t.name = 'Reviewed'
    and   t.version = 13;
    

    z_date is not the date. It is similar to timestamp with timezonew

  • Problem in creating several attributes XML with the same name of the attribute

    I am trying without success trying to create several attributes XML with the same name, as shown here in a Microsoft example configuration file:



      
         
         
         
      

    I'm calling the NewDocument GetRootElement functions and then "newelement" (appSetting), "newelement" (add)

    Then I call AddAttribute with add, key & Key0, then with add, value & 0.  This seems to work fine but when I try to add the second pair of key & Key1 and value attributes & 1 for item "Add" replaces ""and I find myself with"" only.

    I do something wrong or CVI is not able to create an XML of this type?

    Thank you

    Here's how you do it. I show not to keep things simple error checking.

    #include

    public static void CreateAddElement (mother of CVIXMLElement, const char * key, const char * value)
    {
    Add the CVIXMLElement;
    CVIXMLNewElement (parent, -1, 'Add', &add);)
    CVIXMLAddAttribute (add, "touch", key);
    CVIXMLAddAttribute (add, "value", value);
    CVIXMLDiscardElement (add);
    }

    void main (void)
    {
    CVIXMLElement root, and appSetting;
    Doc CVIXMLDocument.
     
    CVIXMLNewDocument ("configuration", &doc);)
    CVIXMLGetRootElement(doc, &root);)
    CVIXMLNewElement (root,-1, "appSetting", and appSetting);
    CreateAddElement (appSetting, "Key0", "0");
    CreateAddElement (appSetting, "Key1", "1");
    CreateAddElement (appSetting, "Key2", "2");
    CVIXMLDiscardElement (appSetting);
    CVIXMLDiscardElement (root);
    CVIXMLSaveDocument (doc, 1, "c:\\temp\\temp.xml");
    CVIXMLDiscardDocument (doc);
    }

  • A security update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64 systems (KB954430)

    A security update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64 systems (KB954430)

    Download size: 5.4 MB

    Whenever I start my laptop he wants to re-enstall service pack 2. How can I fix it?

    Glen Yoder

    Hi Gyoder,

    Thank you for visiting the forums!

    To resolve this issue, follow these steps:

    1. Click Start , click run , type cmd and press ENTER.
    2. At the command prompt, type ren %windir%\System32\msxml4.dll msxml4.old, and then press ENTER.

    Note When you press ENTER, you may receive the following error message.

    Cannot find the specified file.

    Ignore this message and proceed to step 3.

    3. At the command prompt, type exit and press ENTER.
    4. Visit the Microsoft Web site at the following address:

    5. Download and install the latest MSXML security update.

    For more information about this problem, go to

    http://VisualKB/VKBWebService/viewContent.aspx?scid=KB; EN-US; 941729 & PortalId = 1

    I hope this helps. Let us know.

    Dave D

    Dave D
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • A security update for Microsoft XML Core Services 4.0 Service Pack 2 for systems x 64 (KB954430) is not installed!

    A security update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64-based systems (KB954430) is not installed. Windows Update fails to install this update and error reports: 64 C code. The off button displays an alert and when you place the mouse over it it shows "installs the updates and then shuts your computer." When I press it it says is to install the update and my computer shuts down and when I restart it it shows it is update and configuration of the update but when loading Windows Vista, in windows update, it shows that updated security for Microsoft XML Core Services 4.0 Service Pack 2 for systems x 64 (KB954430) becomes available again. I tried to manually install the update by downloading, but when trying to install windows install indicates: "the feature you are trying to use is on a network that is not available. Click OK to try again or enter a different path to the folder containing the installation package ' msxml.msi in the box below. »

    MSXML 4.0 SP2 (KB954430) and MSXML 4.0 SP2 appear in Control Panel programs and features. When I click on them the only option is 'an install. When I try to UN install these the same message appears when you try to install this update manually: "the feature you are trying to use is on a network that is not available. Click OK to try again or enter a different path to the folder containing the installation package ' msxml.msi in the box below. »

    To try to solve this problem, I emptied historical Windows Update. I tried Windows Installer Cleanup to remove MSXML 4.0 SP2 (KB954430) and MSXML 4.0 SP2 so I can reinstall it but Windows Installer Cleanup crashes and displays a command prompt with a lot of text.

    If Windows Update has found that you don't need, you don't have to worry about this. They probably have fixed an error in the update system.

    Messages rating helps other users

    Mark L. Ferguson MS - MVP

  • A security update for Microsoft XML Core Services 4.0 Service Pack 2 (KB954430)

    HELP! Whenever I turn my laptop HP Windows Update keeps saying that I have an "update important' to be installed. For the first two times I installed it, and the Windows Update thing always tells me that it was "installed successfully" but everytime I turn on my CPU it keeps saying I need to install the a security update for Microsoft XML Core Services 4.0 Service Pack 2 (KB954430)!

    Why he does this. It automatically installed this 75 times UPDATE... What is going on! Help, please!

    http://support.Microsoft.com/kb/954430
    08-069: description of the update of security for XML Core Services 4.0: November 11, 2008

    See the known issues section and if it is of any help, see "where to find the section of assistance" for this update.

    K TaurArian [MVP] 2005-2010 - Update Services

  • Update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688) __Is anyone having trouble installing this download 'important '? Mine keeps failing and I think it's to make my computer. __

    Update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688)

    Hello

    Check if the update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688) is already installed on your Windows from the Windows Update history. If it is installed go to programs and features, see installed updates and uninstall the update.

    Once it is removed, restart the computer and try to install the update even manually http://support.microsoft.com/kb/973688.

    Kind regards.

  • Update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64 systems (KB973688) won't install on Windows 7, error code 643

    I guess the first problem I have is that I came across this forum to get an answer to a question from windows 7, and all I can see are XP and Vista of questions and answers.  It's great, but I have the update above installed on Vista (Ultimate x 64).  I can't seem to get installed it on Windows 7 Professional.  When I stopped, he told me do not turn off the computer, because it is to install an update.  But then the update is back.

    Here's the updatelog of windows for the last screen full of lines:

    2009-12-06 17:05:11:783 376 4 c 0 Agent * UpdateId = {9BD35FB2-8618-4F00-B75D-DFD8D7E93278}.100
    2009-12-06 17:05:11:783 376 4 c 0 Agent * bundles 1 updates:
    2009-12-06 17:05:11:783 376 4 c 0 Agent * {6FB0B1F5-03BA-45A2-91F9-2EEE620770D5}.100
    2009-12-06 17:05:11:783 376 4 c 0 DnldMgr * DnldMgr: updating of the regulation [Svc: {7971F918-A847-4430-9279-4A52D1EFE18D}] *.
    2009-12-06 17:05:11:783 4 376 c DnldMgr 0 contacting server 1 regulation updates.
    2009-12-06 17:05:11:783 376 4 c 0 Misc validation signature for C:\Windows\SoftwareDistribution\WuRedir\7971F918-A847-4430-9279-4A52D1EFE18D\wuredir.cab:
    2009-12-06 17:05:11:799 376 to THE f00 successfully wrote event to THE health state: 0
    2009-12-06 17:05:11:799 376 to THE f00 # pending download calls = 1
    2009-12-06 17:05:11:799 376 f00 in THE<## submitted="" ##="" au:="" download="">
    2009-12-06 17:05:11:799 376 to THE f00 successfully wrote event to THE health state: 0
    2009-12-06 17:05:11:799 376 aa4 putting featured update notifications.  fIncludeDismissed = true
    2009-12-06 17:05:11:799 376 aa4 No. feature updates available.
    2009-12-06 17:05:11:799 376 4 c 0 Misc Microsoft signed: Yes
    2009-12-06 17:05:11:799 376 aa4 putting featured update notifications.  fIncludeDismissed = true
    2009-12-06 17:05:11:799 376 aa4 No. feature updates available.
    2009-12-06 17:05:11:799 376 4 c 0 PT WARNING: caching of cookie has expired or new PID is available
    2009-12-06 17:05:15:418 376 4 c 0 PT URL for the server of regulation found in the server config.
    2009-12-06 17:05:15:418 376 0 DnldMgr regulation 4 c server path: https://www.update.microsoft.com/v6/UpdateRegulationService/UpdateRegulation.asmx.
    2009-12-06 17:05:17:399 376 4 c 0 DnldMgr * call for full rules. 0x00000000
    2009-12-06 17:05:17:399 376 4 c 0 DnldMgr * DnldMgr: downloading new job [UpdateId = {6FB0B1F5-03BA-45A2-91F9-2EEE620770D5}.100] *.
    2009-12-06 17:05:17:430 376 4 c 0 DnldMgr * all update files have already been downloaded and are valid.
    2009-12-06 17:05:17:430 376 4 c 0 Agent *.
    2009-12-06 17:05:17:430 376 4 c 0 Agent * END * Agent: downloading updates [CallerId = AutomaticUpdates]
    2009-12-06 17:05:17:430 376 4 c 0 Agent *.
    2009-12-06 17:05:17:430 376 4 c 0 report REPORT EVENT: {1B2F2AC2-AFAA-4693-A256-E59B96A868CA}-2009-12-06 17:05:10:067 - 0500 1 182 101 {9BD35FB2-8618-4F00-B75D-DFD8D7E93278} 100 80070643 AutomaticUpdates error content install Installation error: Windows failed to install the following update with error 0 x 80070643: update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64 systems (KB973688).
    2009-12-06 17:05:17:430 376 f00 to THE > # RETURN # to THE: download the update [UpdateId = {9BD35FB2-8618-4F00-B75D-DFD8D7E93278}, successful]
    2009-12-06 17:05:17:446 376 f00 in THE #.
    2009-12-06 17:05:17:446 376 f00 to # END # in THE: download updates
    2009-12-06 17:05:17:446 376 f00 in THE #.
    2009-12-06 17:05:17:446 376 f00 phase of installation to THE adjustment to THE planned at 2009-12-07 08:00
    2009-12-06 17:05:17:446 376 to THE f00 successfully wrote event to THE health state: 0
    2009-12-06 17:05:17:446 376 f00 setting of to THE pending client directive to 'install approval. "
    2009-12-06 17:05:17:446 376 to THE f00 successfully wrote event to THE health state: 0
    2009-12-06 17:05:17:461 376 aa4 putting featured update notifications.  fIncludeDismissed = true
    2009-12-06 17:05:17:461 376 aa4 No. feature updates available.
    2009-12-06 17:05:17:477 376 4 c 0 CWERReporter::HandleEvents - WER report upload report completed with status 0 x 8
    2009-12-06 17:05:17:477 376 4 c 0 WER sent report: 7.3.7600.16385 9BD35FB2-8618-4F00-B75D-DFD8D7E93278 0 80070643 101 x install not managed
    2009-12-06 17:05:17:477 376 4 c 0 CWERReporter finish event management report. (00000000)

    Thank you

    Stan

    TIP: Read the Symptoms section of http://support.microsoft.com/kb/973688.

    Note that KB973688 is NOT a security update.

    (1) do you have an installed application that "uses Microsoft XML Core Services (MSXML) to process XHTML files" and (2) that "generates a lot of requests when it tries to retrieve well known from the definition of the Type of Document (DTD) from a World Wide Web Consortium (W3C) Web server files" and (3) to "these redundant retrieval requests cause the W3C Server block requests DTD?

    If you can't answer YES to all three of these conditions, you do not need to install KB973688 and you can "hide"

    1. stop the automatic updates service:

    Start > Right click on run , and then select run as administrator > services.msc (type) > [OK]
    Double-click automatic updates > click stop
    (Stopping the service will take a moment)

    2 remove the contents of the download folder:

    Start > Right click on run , and then select run as administrator >
    (type or copy/paste) %windir%\SoftwareDistribution > [OK]
    Open the download folder and delete its content
    Close the window.

    3 start | Control Panel | System maintenance and (if you use Classic view, skip this step). Windows Update: Select the installed updates: right click on the Update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688) | Click hide update | Confirm the prompt UAC (User Account Control), if any, & OK your way out.

    4. start the automatic updates service:

    Start > Right click on run , and then select run as administrator > services.msc (type) > [OK]
    Double-click automatic updates > click Start
    (Stopping the service will take a moment)

    =====================================
    To restore/show updates in Win7: Start | Control Panel | System maintenance and (if you use Classic view, skip this step) | Windows Update | Restore hidden updates: Find and select the update you want to install. Click restore. You can now select once again it and install through the normal process.

    ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • How can I work around 643 error during the installation of update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688)?

    If I use automatically via Windows Update or installation manual, installation of update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688) always fails with error code 643. Windows Update Troubleshooter can't find anything wrong.

    Error code 643 take a look at this thread as it relates to this issue.

    Mike - Engineer Support Microsoft Answers
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • This security update is constantly appearing: a security update for Microsoft XML Core Services 4.0 Service Pack 2 (KB954430) I successfully download the update and then it reappears to be downloaded again. ___

    Automatic updates of Windows

    This security update is constantly appearing: a security update for Microsoft XML Core Services 4.0 Service Pack 2 (KB954430) I successfully download the update and then it reappears to be downloaded again.

    See the sections «How to get help...» "and 'known issues' here:
    http://support.Microsoft.com/kb/954430

    Visit the Microsoft Solution Center and antivirus security for resources and tools to keep your PC safe and healthy. If you have problems with the installation of the update itself, visit the Microsoft Update Support for resources and tools to keep your PC updated with the latest updates.

    For enterprise customers, support for security updates is available through your usual support contacts.
    Read also: http://support.microsoft.com/kb/941729/

    Hope this helps, Vincenzo Di Russo
    Microsoft® MVP Windows Internet Explorer, Windows Desktop Experience & security - since 2003.
    My MVP profile: https://mvp.support.microsoft.com/profile/Vincenzo

  • The following update; A security update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64 systems (KB954430).

    The following update; A security update for Microsoft XML Core Services 4.0 Service Pack 2 for x 64 systems (KB954430).  How to fix this?

    Hi qaqcno1,

    Please take a look at the following Microsoft KB article:

    KB 910339: How to troubleshoot Windows Update or Microsoft Update when you are repeatedly offered an update

     

    We can't wait to hear back from you on your results.

    Brian
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Please, help me to install the a security update for Microsoft XML Core Services 6.0 Service Pack 2 (KB954459)

    I am running Windows XP Professional SP2 (32 bit).  My Windows Update is configured to inform me of updates that are available and to wonder what to do each time.

    For the last two months I have problems with these two updates:

    1. Update for Microsoft XML Core Services 6.0 Service Pack 2 (KB973686)
    2. a security update for Microsoft XML Core Services 6.0 Service Pack 2 (KB954459)

    Two of them are available for me to download and install every time I connect to the Internet. I always choose download and then install. The first update is always installed successfully, but continues to offered to me AGAIN and AGAIN. I have reviewed my story to update on the Microsoft Update site, where I can see that this update has been installed successfully for more than 10 times. But the continuous automatic updates offering him.

    Problem with the second update (a security update for Microsoft XML Core Services 6.0 Service Pack 2 (KB954459)) is worse still - IT STILL FAILS.  During the installation process, I get no error message, but in the end, I always get:
    «Updates could not be installed...» The following updates were not installed:
    A security update for Microsoft XML Core Services 6.0 Service Pack 2 (KB954459)
    ".»
    Of course, in my history of editing, he still has the red icon, and the error Code is 0 x 643.

    I tried to install it manually, so I downloaded the Service Pack msxml6-KB954459-enu - x 86 .exe (981 KB) from: http://www.microsoft.com/downloads/en/details.aspx?FamilyId=59914795-60c7-4ebe-828d-f28cb457e6e3&displaylang=en
    But when I ran it, I got this message:
    "Installation of MSXML 6 Service Pack 2 (KB954459) failed because a newer version already exists on the machine. "To continue, uninstall the higher version and re-run the installation of MSXML 6 Service Pack 2 (KB954459) program."

    I don't understand.  I thought this msxml6-KB954459-enu - x 86 .exe installation file for the update of safety only, but it has proved to be the Setup for the entire application.  And that means this "version more?  How did get on my computer?  And what do I need to uninstall?  In my Add/Remove Programs list that I don't have that:
    -MSXML 4.0 SP2 (KB954430)
    -MSXML 4.0 SP2 (KB973688)
    -MSXML 6 Service Pack 2 (KB973686)

    In my System32 folder, I have a file called msxml6.dll (created: 19 08.2009).  On the Properties dialog Version tab, I see that its version is 6.20.1076.0;  If that matters.

    My security programs are:
    -BitDefender Total Security 2010
    -Malwarebytes AntiMalware
    -Online Armor ++ Firewall
    (They are all up to date and none of them has ever interfered with the installation of any update of Windows or Microsoft).

    Can someone tell me please:
    1. What can I do to make the installation of this update for Microsoft XML Core Services 6.0 Service Pack 2 security
    (KB954459) succeed?
    2. what to do with an another update (update for Microsoft XML Core Services 6.0 Service Pack 2 (KB973686)) which
    constantly is available once again, although my editing history shows that it is installed successfully?

    And another question:

    These two updates prevent the automatic updates to offer upgrade to SP3 of XP?  I am currently on SP2, but I really need to upgrade to SP3; not only because support for SP2 has stopped, but more because there are more programs that require SP3 must be installed.  A month ago, automatic updates offered the update to SP3, but the installation failed for an unknown reason ("... the system could not find the specified file.").  I'm wrong if I think it will be offered me again only after I install these two updates correctly?

    First of all, you have 2 firewalls; ® Of BitDefender Total Security 2011 (block intruder (implement a two-way firewall)) and Online Armor

    "Do not use more of a firewall, 2 or more is a way sure to hit trouble, as with AV"

    Download & save the installer for WinXP SP3 on your desktop:

    http://www.Microsoft.com/downloads/en/details.aspx?FamilyId=5b33b5a8-5e76-401F-BE08-1e1555d4f3d4&displaylang=en

    Windows XP SP3 - read all the prerequisites for a successful installation

    http://msmvps.com/blogs/harrywaldron/archive/2008/05/08/Windows-XP-SP3-read-all-prerequisites-for-a-successful-installation.aspx

    Logged in as administrator, if necessary, double-click the saved file to install WinXP SP3. Follow the prompts. must be patient and reboot twice when the installation is complete.

    Do the resolution method 2 here:

    http://support.Microsoft.com/kb/943144

    Go to http://windowsupdate.microsoft.com . Install all required software, and then click CONTINUE. Select CUSTOM and scan | Install the critical updates of security offered. Still, follow all the instructions.

    04/13 / 1110:01: 33 am

  • Error code: 64 c (cannot install the update for Microsoft XML Core Services 4.0 Service Pack 2 KB973688)

    All Windows XP necessary and required updates are installed successfully except update for Microsoft XML Core Services 4.0 Service Pack 2 (KB973688). Installation is unsuccessful. Do I uninstall and reinstall to get pass this?

    Installation failure

    Error code: 0x64C

    Try to install the update again, or seek help from one of the following resources.

    Thank you

    Sam Elam

    See this response archived from a previous thread:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/thread/eec3e3df-D5C6-4021-951e-17f8e7d21c37>

    03/26 / 1111:49: 18 pm

Maybe you are looking for

  • Problems with profile after the loss of power.

    During the recent snow storm, the power in the House flickered market several times and once it was over my wife has had some problems connecting on his profile. After a reboot, could she do to her profile without any problem. My profile was gone, no

  • How create Audio books-WMP12-like an Album

    Is this possible? Using WMP12/Win 7 / Sansa Fuze... I currently have rip audio books (for example, a book with 9 discs). Do drag each disc "torn" to create a playlist... then sync on the ROCKET. Result: 9 different albums (1 for each disk). Problem i

  • Configuration Windows to compress files or folders

    According to windows help, to compress a file or folder, I just need to make a right click on it and point to sent to and it will come with an option to compress the file or folder.  When I point to Envoy, I do not get an option to compress.  How can

  • Move the windows Freecell game scores 7 to windows 8

    Is it possible to move the files to microsoft windows solitaire 7, so I can transfer it to windows 8 when I update my computer?

  • Disable/turn off the auto arrange files and folders?

    does anyone know how to disable auto arrange? I love being organsised and organize my files in the folders for my taste. I could do it with vista and other windows before Windows 7. can anyone help? is microsoft aware of this problem and they do anyt