CS3: XML tables cause crashes?

Hi everyone,
We've been using XML with InDesign CS3 for a while now, generally with success. However, we have added InDesign XML tables to our work and have encountered an odd problem. We can import XML containing tables and they appear with the correct layout, and text inside the tables is correctly formatted by Map Tags to Styles (on paragraph-level tags inside the table cells, not the Table and Cell tags themselves). However, when we try to cut a selection that includes an XML table, InDesign frequently crashes.
If we de-tag the tables, the problem goes away, but this is not really an option for us as we want to be able to Export XML once layout is complete.
Has anyone else ever encountered this crash? What am I doing wrong?
Many thanks!
Lester

Certainly, sorry, I should have done that first! It's in situations like this:
<text paragraphSequence='200'>Some content text here</text>
<Table xmlns:aid='http://ns.adobe.com/AdobeInDesign/4.0/' aid:table='table' aid:trows = '2' aid:tcols = '2'>
<Cell aid:table='cell' aid:crows='1' aid:ccols='1'><text paragraphSequence='201'>Condition</text>
<text paragraphSequence='202'><textCHRItalic>if</textCHRItalic> + present simple</text>
</Cell>
<Cell aid:table='cell' aid:crows='1' aid:ccols='1'><text paragraphSequence='203'>Result </text>
<text paragraphSequence='204'><textCHRItalic>will/won&#x2019;t</textCHRItalic> + infinitive without <textCHRItalic>to</textCHRItalic></text>
</Cell>
<Cell aid:table='cell' aid:crows='1' aid:ccols='1'><text paragraphSequence='205'><textCHRBoldItalic>If </textCHRBoldItalic><textCHRItalic>you</textCHRItalic><textCHRBoldItalic> come</textCHRBoldItalic><textCHRItalic> fifteen minutes before the class starts,</textCHRItalic></text>
<text paragraphSequence='206'><textCHRBoldItalic>If </textCHRBoldItalic><textCHRItalic>the weather</textCHRItalic><textCHRBoldItalic> is</textCHRBoldItalic><textCHRItalic> fine,</textCHRItalic></text>
<text paragraphSequence='207'><textCHRBoldItalic>If </textCHRBoldItalic><textCHRItalic>Sam</textCHRItalic><textCHRBoldItalic> passes</textCHRBoldItalic><textCHRItalic> his exams,</textCHRItalic></text>
<text paragraphSequence='208'><textCHRBoldItalic>If </textCHRBoldItalic><textCHRItalic>Alice</textCHRItalic><textCHRBoldItalic> doesn&#x2019;t eat</textCHRBoldItalic><textCHRItalic> her vegetables,</textCHRItalic></text>
</Cell>
<Cell aid:table='cell' aid:crows='1' aid:ccols='1'><text paragraphSequence='209'><textCHRItalic>I</textCHRItalic><textCHRBoldItalic>&#x2019;ll help</textCHRBoldItalic><textCHRItalic> you with your homework.</textCHRItalic></text>
<text paragraphSequence='210'><textCHRItalic>we</textCHRItalic><textCHRBoldItalic>&#x2019;ll go </textCHRBoldItalic><textCHRItalic>swimming.</textCHRItalic></text>
<text paragraphSequence='211'><textCHRItalic>his parents </textCHRItalic><textCHRBoldItalic>will buy</textCHRBoldItalic><textCHRItalic> him a car.</textCHRItalic></text>
<text paragraphSequence='212'><textCHRItalic>she </textCHRItalic><textCHRBoldItalic>won&#x2019;t get</textCHRBoldItalic><textCHRItalic> any sweets.</textCHRItalic></text>
</Cell>
</Table>
<text paragraphSequence='213'>More content text</text>
Thanks,
Lester.

Similar Messages

  • Errors creating indexes on Binary XML Tables

    Hi,
    Oracle details are as follows:
    Oracle Database 11g Enterprise Edition Release 11.2.0.2.0 - 64bit Production
    PL/SQL Release 11.2.0.2.0 - Production
    "CORE 11.2.0.2.0 Production"
    TNS for IBM/AIX RISC System/6000: Version 11.2.0.2.0 - Production
    NLSRTL Version 11.2.0.2.0 - Production
    I'm currently having an issue when attempting to create a suitable index on a binary xml table. I have a Binary xml table that stores a number of xml documents. I have created an index on this table as follows:
    create index TEST_WQI_idx_1 on TEST_WEB_QUOTE_INDX1(OBJECT_VALUE)
    INDEXTYPE IS XDB.XMLINDEX
    PARAMETERS ('PATHS (INCLUDE
    (/webPolicy/QuoteId))');
    Querying the table with the following:
    SQL> l
    1 select xmlcast(xmlquery('/webPolicy/Sections/interopSection[1]/PolicyItems/item/Version/text()' PASSING OBJECT_VALUE RETURNING CONTENT)
    2 as number) "VERSION",
    3 xmlcast(xmlquery('/webPolicy/QuoteId/text()' PASSING OBJECT_VALUE RETURNING CONTENT)
    4 as number) "QUOTEID"
    5 FROM TEST_WEB_QUOTE_INDX1
    6 where xmlcast(xmlquery('/webPolicy/QuoteId/text()' PASSING OBJECT_VALUE RETURNING CONTENT)
    7* as number) = 22824
    SQL> /
    VERSION QUOTEID
    1 22824
    Execution Plan
    Plan hash value: 3559428808
    | Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
    | 0 | SELECT STATEMENT | | 545 | 1071K| 1030 (1)| 00:00:19 |
    | 1 | SORT AGGREGATE | | 1 | 3022 | | |
    |* 2 | TABLE ACCESS BY INDEX ROWID | SYS895336_TEST_WQI__PATH_TABLE | 1 | 3022 | 2 (0)| 00:00:01 |
    |* 3 | INDEX RANGE SCAN | SYS895336_TEST_WQI__PIKEY_IX | 1 | | 1 (0)| 00:00:01 |
    |* 4 | FILTER | | | | | |
    | 5 | TABLE ACCESS FULL | TEST_WEB_QUOTE_INDX1 | 545 | 1071K| 4 (0)| 00:00:01 |
    | 6 | SORT AGGREGATE | | 1 | 3022 | | |
    |* 7 | TABLE ACCESS BY INDEX ROWID| SYS895336_TEST_WQI__PATH_TABLE | 1 | 3022 | 2 (0)| 00:00:01 |
    |* 8 | INDEX RANGE SCAN | SYS895336_TEST_WQI__PIKEY_IX | 1 | | 1 (0)| 00:00:01 |
    Predicate Information (identified by operation id):
    2 - filter(SYS_XMLI_LOC_ISTEXT("SYS_P0"."LOCATOR","SYS_P0"."PATHID")=1)
    3 - access("SYS_P0"."RID"=:B1 AND "SYS_P0"."PATHID"=HEXTORAW('5E6C') )
    4 - filter(CAST( (SELECT "SYS"."STRAGG"("SYS_P2"."VALUE") FROM
    "WEB_STAGING"."SYS895336_TEST_WQI__PATH_TABLE" "SYS_P2" WHERE "SYS_P2"."PATHID"=HEXTORAW('5E6C') AND
    "SYS_P2"."RID"=:B1 AND SYS_XMLI_LOC_ISTEXT("SYS_P2"."LOCATOR","SYS_P2"."PATHID")=1) AS number)=22824)
    7 - filter(SYS_XMLI_LOC_ISTEXT("SYS_P2"."LOCATOR","SYS_P2"."PATHID")=1)
    8 - access("SYS_P2"."RID"=:B1 AND "SYS_P2"."PATHID"=HEXTORAW('5E6C') )
    Note
    - dynamic sampling used for this statement (level=2)
    - Unoptimized XML construct detected (enable XMLOptimizationCheck for more information)
    However, I also need to add an additional field to this index to allow appropriate queries against the data in the table, version number. This field can be seen from the statement above (VERSION) which runs OK and returns the data I’d expect. However, when I attempt to add this index using the following statement I get an error returned and the index becomes corrupted:
    alter index TEST_WQI_idx_1 rebuild
    parameters ('PATHS (INCLUDE ADD
    (/webPolicy/Sections/interopSection[1]/PolicyItems/item/Version))');
    After some investigation, the issue seems to revolve around the use of the [1] condition in the statement /interopSection[1]. I can create the index by removing the [1] condition, but this does not return the expected result. In actual fact, as there are 2 interopSection elements in the xml file, both with a version number of 1, the statement returns 11, which would appear to be the two version numbers concatenated together. I need to be able to reference the version number from the first interopSection in the queries against the table, and I need to be able to index this column correctly for performance issues.
    I'm unsure why this xpath statement is not working correctly in the alter index statement, but returns ok when used within the query against the table and was wondering if you would be able to help me to have a working index against this element.
    Thanks in advance for any help you can provide in relation to this.

    Sorry, here is the error:
    Error starting at line 20 in command:
    alter index TEST_WQI_idx_1 rebuild
    parameters ('PATHS (INCLUDE ADD
    (/webPolicy/Sections/interopSection[1]/PolicyItems/item/Version))')
    Error report:
    SQL Error: ORA-29858: error occurred in the execution of ODCIINDEXALTER routine
    ORA-64131: XMLIndex Metadata: failure during the looking up of the dictionary
    ORA-30968: invalid XPATH or NAMESPACE option for XML Index
    29858. 00000 - "error occurred in the execution of ODCIINDEXALTER routine"
    *Cause:    Failed to successfully execute the ODCIIndexAlter routine.
    *Action:   Check to see if the routine has been coded correctly.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • [11g] adding a virtual col to a binary XML table?

    Hi
    Is it possible to add a virtual col to an existing binay XML table ?
    CREATE TABLE compagnie_binaryXML OF XMLType
    XMLTYPE STORE AS BINARY XML
    VIRTUAL COLUMNS
    (vircolcomp AS (EXTRACTVALUE(OBJECT_VALUE,'/compagnie/comp')),
    vircolnomcomp AS (EXTRACTVALUE(OBJECT_VALUE,'/compagnie/nomComp')),
    vircolnompil AS (EXTRACTVALUE(OBJECT_VALUE,'/compagnie/pilotes/pilote/nom')),
    vircolbrevpil AS (EXTRACTVALUE(OBJECT_VALUE,'/compagnie/pilotes/pilote/@brevet')));
    OK, but
    ALTER TABLE compagnie_binaryXML ADD vircolsalpil AS (EXTRACTVALUE(OBJECT_VALUE,'/compagnie/pilotes/pilote/s
    alaire'));
    ORA-22856: impossible d'ajouter des colonnes à des tables objet

    Hi
    IMHO this has nothing to do with XMLType... They simply forget to change the checks performed before adding a column... In fact, this is a "known problem" with object tables.
    SQL> create type ttt as object (n number);
      2  /
    SQL> create table t of ttt;
    SQL> alter table t add v as (to_char(n));
    alter table t add v as (to_char(n))
    ERROR at line 1:
    ORA-22856: cannot add columns to object tables
    oracle@helicon:~/ [DBA11106] oerr ora 22856
    22856, 00000, "cannot add columns to object tables"
    // *Cause:   An attempt was made to add columns to an object table. Object
    //           tables cannot be altered to add columns since its
    //           definition is based on an object type.
    // *Action:  Create a new type with additional attributes, and use the new
    //           type to create an object table. The new object table will have
    //           the desired columns.In summary, I would open an SR and let fix the problem.
    HTH
    Chris

  • Rendering xml-table into logical filename in SAP R/3

    Hi,
    I am trying to translate an xml-table with bytes into a logical filepath in SAP R3.
    Do I have to use the method gui-download or shall I loop the internal xml-table?
    When I tried to loop the xml-table into a structure, and then transfering the structure into the logical filename, I get problems with the line breaks in my xml-file. How do I get the lines to break exactly the same as I wrote them in my ABAP-code?
    Edited by: Kristina Hellberg on Jan 10, 2008 4:24 PM

    I believe you posted in the wrong forum.
    This forum is dedicated to development and deployment of .Net applications that connect and interact with BusinessObjects Enterprise, BusinessObjects Edge, or Crystal Reports Server. This includes the development of applications using the BusinessObjects Enterprise, Report Application Server, Report Engine, and Web Services SDKs.
    Ludek

  • Migrate B-Tree Indexes of XML O-R Table to XMLIndex on Binary XML Table

    We need slight help on how to migrate existing B-TREE Indexes from XML Obj-Rel Tables to XMLIndex on new XML Binary Tables
    We use searches on Nested Collection Elements (defined unbounded in XSD)
    and related DDL for XML Obj-Rel Tables is shown below:
    CREATE TABLE TNMAB_AGREEMENT_XML
    AGREEMENT_XML xmltype,
    CREATE_BY     VARCHAR2(15) NULL ,
    CREATE_DT_GMT     TIMESTAMP NULL ,
    CREATE_CLIENT_ID VARCHAR2(65) NULL ,
    UPDATE_BY     VARCHAR2(15) NULL ,
    UPDATE_DT_GMT     TIMESTAMP NULL ,
    UPDATE_CLIENT_ID VARCHAR2(65) NULL ,
    PIC_VERSION_NUM     NUMBER(20) NULL
    XMLTYPE COLUMN AGREEMENT_XML XMLSCHEMA "AB_Agreement_V1_XMLDB.xsd" ELEMENT "Agreement"
    VARRAY AGREEMENT_XML.XMLDATA."SHIPPING_PARTY_GROUPS"
    STORE AS TABLE SHIPPING_PARTY_GROUPS_NT
    (PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX) ENABLE)
    VARRAY SHIPPING_PARTIES
    STORE AS TABLE SHIPPING_PARTIES_NT
    (PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX) ENABLE)
    VARRAY AGREEMENT_XML.XMLDATA."SALES_OFFICE_CODES"."STRING_WRAPPERS"
    STORE AS TABLE SALES_OFFICE_CODES_NT
    (PRIMARY KEY (NESTED_TABLE_ID, ARRAY_INDEX) ENABLE)
    TABLESPACE TNMAB_XMLDB_ME_DATA;
    Table has PK and Unique Index which for the Binary XML Table, it will be setup on Virtual Columns (to enforce
    Unique Constraints)
    We have 6 more Normal Indexes on this Table, some created on Nested Elements as shown below:
    -- 4 Normal B-TREE Indexes on Leaf level Elements
    create index TNMAB_AGREEMENT_XML_IDX1 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."AGREEMENT_VERSION")
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_IDX2 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."LAST_UPDATED_BY")
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_IDX3 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."LAST_UPDATED")
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_IDX4 on TNMAB_AGREEMENT_XML (AGREEMENT_XML.XMLDATA."CREATION_DATE")
    tablespace TNMAB_XMLDB_ME_INDX;
    --2 Indexes created on Nested Table (Collection)
    create index TNMAB_AGREEMENT_XML_NT_IDX1 on SALES_OFFICE_CODES_NT NT(NT.STR_VAL, NT.NESTED_TABLE_ID)
    tablespace TNMAB_XMLDB_ME_INDX;
    create index TNMAB_AGREEMENT_XML_NT_IDX2 on SHIPPING_PARTIES_NT NT(NT.CUSTOMER_HOLDER.SAP_ID, NT.NESTED_TABLE_ID)
    tablespace TNMAB_XMLDB_ME_INDX;
    Could you please let us know how we should migrate above Indexes to XMLIndex format.
    Specifically, not sure how the last 2 Indexes on Nested Tables is to be defined.
    Any help or resources pointing to this would be greatly appreciated.
    Thanks for the help,
    Auro

    Can't tell due to using XMLDATA pseudocolumn. Would need a sample XML document structure that can be used to define the XPATH structure and ALSO need the database version you are using (ALL digits) to see if you would need / can use STRUCTURED or UNSTRUCTURED XMLINDEX indexes.
    See the XML Index section (http://www.liberidu.com/blog/?page_id=441) on for guidance and/or of course the XMLDB Developers Guide for your database version
    http://www.liberidu.com/blog/?page_id=441
    XMLIndex (part 1) – The Concepts
    XMLIndex (Part 2) – XMLIndex Path Subsetting
    XMLIndex (Part 3) – XMLIndex Syntax Dissected
    XMLIndex Performance and Fuzzy XPath Searches
    Structured XMLIndex (Part 1) – Rules of Numb
    Structured XMLIndex (Part 2) – Howto build a structured XMLIndex
    Structured XMLIndex (Part 3) – Building Multiple XMLIndex Structures

  • Why Isn't xmlindex being used in slow query on binary xml table eval?

    I am running a slow simple query on Oracle database server 11.2.0.1 that is not using an xmlindex. Instead, a full table scan against the eval binary xml table occurs. Here is the query:
    select -- /*+ NO_XMLINDEX_REWRITE no_parallel(eval)*/
          defid from eval,
          XMLTable(XMLNAMESPACES(DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03',
          'http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7"),
          '$doc/eval/derivedFacts/ns7:derivedFact' passing eval.object_value as "doc" columns defid varchar2(100) path 'ns7:defId'
           ) eval_xml
    where eval_xml.defid in ('59543','55208'); The predicate is not selective at all - the returned row count is the same as the table row count (325,550 xml documents in the eval table). When different values are used bringing the row count down to ~ 33%, the xmlindex still isn't used - as would be expected in a purely relational nonXML environment.
    My question is why would'nt the xmlindex be used in a fast full scan manner versus a full table scan traversing the xml in each eval table document record?
    Would a FFS hint be applicable to an xmlindex domain-type index?
    Here is the xmlindex definition:
    CREATE INDEX "EVAL_XMLINDEX_IX" ON "EVAL" (OBJECT_VALUE)
      INDEXTYPE IS "XDB"."XMLINDEX" PARAMETERS
      ('XMLTable eval_idx_tab XMLNamespaces(DEFAULT ''http://www.cigna.com/acme/domains/eval/2010/03'',
      ''http://www.cigna.com/acme/domains/derived/fact/2010/03'' AS "ns7"),''/eval''
           COLUMNS defId VARCHAR2(100) path ''/derivedFacts/ns7:derivedFact/ns7:defId''');Here is the eval table definition:
    CREATE
      TABLE "N98991"."EVAL" OF XMLTYPE
        CONSTRAINT "EVAL_ID_PK" PRIMARY KEY ("EVAL_ID") USING INDEX PCTFREE 10
        INITRANS 4 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT
        1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1
        FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT CELL_FLASH_CACHE
        DEFAULT) TABLESPACE "ACME_DATA" ENABLE
      XMLTYPE STORE AS SECUREFILE BINARY XML
        TABLESPACE "ACME_DATA" ENABLE STORAGE IN ROW CHUNK 8192 CACHE NOCOMPRESS
        KEEP_DUPLICATES STORAGE(INITIAL 106496 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS
        2147483645 PCTINCREASE 0 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT)
      ALLOW NONSCHEMA ALLOW ANYSCHEMA VIRTUAL COLUMNS
        "EVAL_DT" AS (SYS_EXTRACT_UTC(CAST(TO_TIMESTAMP_TZ(SYS_XQ_UPKXML2SQL(
        SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03"; (::)
    /eval/@eval_dt'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2),'SYYYY-MM-DD"T"HH24:MI:SS.FFTZH:TZM') AS TIMESTAMP
    WITH
      TIME ZONE))),
        "EVAL_CAT" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@category'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        "ACME_MBR_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@acmeMemberId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50))),
        "EVAL_ID" AS (CAST(SYS_XQ_UPKXML2SQL(SYS_XQEXVAL(XMLQUERY(
        'declare default element namespace "http://www.cigna.com/acme/domains/eval/2010/03";/eval/@evalId'
        PASSING BY VALUE SYS_MAKEXML(128,"XMLDATA") RETURNING CONTENT ),0,0,
        16777216,0),50,1,2) AS VARCHAR2(50)))
      PCTFREE 0 PCTUSED 80 INITRANS 4 MAXTRANS 255 NOCOMPRESS LOGGING STORAGE
        INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0
        FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT FLASH_CACHE DEFAULT
        CELL_FLASH_CACHE DEFAULT
      TABLESPACE "ACME_DATA" ; Sample cleansed xml snippet:
    <?xml version = '1.0' encoding = 'UTF-8' standalone = 'yes'?><eval createdById="xxxx" hhhhMemberId="37e6f05a-88dc-41e9-a8df-2a2ac6d822c9" category="eeeeeeee" eval_dt="2012-02-11T23:47:02.645Z" evalId="12e007f5-b7c3-4da2-b8b8-4bf066675d1a" xmlns="http://www.xxxxx.com/vvvv/domains/eval/2010/03" xmlns:ns2="http://www.cigna.com/nnnn/domains/derived/fact/2010/03" xmlns:ns3="http://www.xxxxx.com/vvvv/domains/common/2010/03">
       <derivedFacts>
          <ns2:derivedFact>
             <ns2:defId>12345</ns2:defId>
             <ns2:defUrn>urn:mmmmrunner:Medical:Definition:DerivedFact:52657:1</ns2:defUrn>
             <ns2:factSource>tttt Member</ns2:factSource>
             <ns2:origInferred_dt>2012-02-11T23:47:02.645Z</ns2:origInferred_dt>
             <ns2:factValue>
                <ns2:type>boolean</ns2:type>
                <ns2:value>true</ns2:value>
             </ns2:factValue>
          </ns2:derivedFact>
          <ns2:derivedFact>
             <ns2:defId>52600</ns2:defId>
             <ns2:defUrn>urn:ddddrunner:Medical:Definition:DerivedFact:52600:2</ns2:defUrn>
             <ns2:factSource>cccc Member</ns2:factSource>
             <ns2:origInferred_dt>2012-02-11T23:47:02.645Z</ns2:origInferred_dt>
             <ns2:factValue>
                <ns2:type>string</ns2:type>
                <ns2:value>null</ns2:value>
             </ns2:factValue>
          </ns2:derivedFact>
          <ns2:derivedFact>
             <ns2:defId>59543</ns2:defId>
             <ns2:defUrn>urn:ddddunner:Medical:Definition:DerivedFact:52599:1</ns2:defUrn>
             <ns2:factSource>dddd Member</ns2:factSource>
             <ns2:origInferred_dt>2012-02-11T23:47:02.645Z</ns2:origInferred_dt>
             <ns2:factValue>
                <ns2:type>string</ns2:type>
                <ns2:value>INT</ns2:value>
             </ns2:factValue>
          </ns2:derivedFact>
                With the repeating <ns2:derivedFact> element continuing under the <derivedFacts>The Oracle XML DB Developer's Guide 11g Release 2 isn't helping much...
    Any assitance much appreciated.
    Regards,
    Rick Blanchard

    odie 63, et. al.;
    Attached is the reworked select query, xmlindex, and 2ndary indexes. Note: though namespaces are used; we're not registering any schema defns.
    SELECT /*+ NO_USE_HASH(eval) +/ --/*+ NO_QUERY_REWRITE no_parallel(eval)*/
    eval_xml.eval_catt, df.defid FROM eval,
    --df.defid FROM eval,
    XMLTable(XMLNamespaces( DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03',
                            'http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7" ),
            '/eval' passing eval.object_value
             COLUMNS
               eval_catt VARCHAR2(50) path '@category',
               derivedFact XMLTYPE path '/derivedFacts/ns7:derivedFact')eval_xml,
    XMLTable(XMLNamespaces('http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7",
                              DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03'),
            '/ns7:derivedFact' passing eval_xml.derivedFact
             COLUMNS
               defid VARCHAR2(100) path 'ns7:defId') df
    WHERE df.defid IN ('52657','52599') AND eval_xml.eval_catt LIKE 'external';
    --where df.defid = '52657';
    SELECT /*+ NO_USE_HASH(eval +/ --/*+ NO_QUERY_REWRITE no_parallel(eval)*/
    eval_xml.eval_catt, df.defid FROM eval,
    --df.defid FROM eval,
    XMLTable(XMLNamespaces( DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03',
                            'http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7" ),
            '/eval' passing eval.object_value
             COLUMNS
               eval_catt VARCHAR2(50) path '@category',
               derivedFact XMLTYPE path '/derivedFacts/ns7:derivedFact')eval_xml,
    XMLTable(XMLNamespaces('http://www.cigna.com/acme/domains/derived/fact/2010/03' AS "ns7",
                              DEFAULT 'http://www.cigna.com/acme/domains/eval/2010/03'),
            '/ns7:derivedFact' passing eval_xml.derivedFact
             COLUMNS
               defid VARCHAR2(100) path 'ns7:defId') df
    WHERE df.defid IN ('52657','52599') AND eval_xml.eval_catt LIKE 'external';
    --where df.defid = '52657'; create index defid_2ndary_ix on eval_idx_tab_II (defID);
         eval_catt VARCHAR2(50) path ''@CATEGORY''');
    create index eval_catt_2ndary_ix on eval_idx_tab_I (eval_catt);The xmlindex is getting picked up but a couple of problesm:
    1. In the developemnt environment, no xml source records for defid '52657' or '52599' are being displayed - just an empty output set occurs; in spite of these values being present and stored in the source xml.
    This really has me stumped, as can query the eval table to see the actual xml defid vaues '52657' and '52599' exist. Something appears off with the query - which didn't return records even before the corrresponding xml index was created.
    2. The query still performs slowly, in spite of using the xmlindex. The execution plan shows a full table scan of eval occurring whether or not a HASH JOIN or MERGE JOIN (gets used in place of the HASH JOIN when the NO_USE_HASH(eval) int is used.
    3. Single column 2ndary indexes created respectively for eval_catt and defid are not used in the execution plan - which may be expected upon further consideration.
    In the process of running stats at this moment, to see if performance improves....
    At this point, really after why item '1.' is occurring?
    Edited by: RickBlanchardSRSCigna on Apr 16, 2012 1:33 PM

  • Photoshop CS4 and graphic cards. Can cause crashing?

    Since upgrading to CS4 I seem to have increased crashing.
    Here are my system specs.
    Mac 2 x 2.66 GHz Dual-Core Intel Xeon
    9 GB of Ram
    250 GB internal dedicated scratch disc
    NVDIA GeForce 7300 GT with 256 VRAM
    After having endless techs look at my machine and upgrading everything. I am beginning to suspect the graphics card.
    With OpenGL can a underperforming video card cause crashing in photoshop especially with massive file sizes ( multilayered CMYK poster sized files the can exceed 7 GB)?

    Did you install the 11.0.1 update?
    Is your OS up to date with patches?
    Have you tried disabling OpenGL in preferences to avoid using the GPU/Graphics card?

  • ID CS3 (5.0.4) Crash on Snow Leopard (10.6.2)

    Hi Community,
    I try to debug a InDesign CS3 (5.0.4) crash on Snow Leopard (10.6.2; Mac Mini) when the system come back from the sleep mode. InDesign terminate with some error messages:
    1) "The network connection for the file XY is interrupted or the file was changed by another process"
    2) "Abobe InDesign become closed. A serios problem was detected. Start InDesign again...
    (corresponding translation into english)
    The system.log contains referring to this crash:
    -----------------------------------------------snip--------------------------------------- -----
    30 ProntoMac [0x0-0x112112].com.adobe.InDesign[0]: reproStepsString:
    Dec  9 14:51:30 ProntoMac Adobe Crash Reporter[18133]: (null)
    Dec  9 14:51:30 ProntoMac [0x0-0x112112].com.adobe.InDesign[0]: 2009-12-09 14:51:30.562 Adobe Crash Reporter[18133:903] (null)
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicJSWindowExternalHandler is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_personalization.framework/adobe_personalization. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicWizardController is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_personalization.framework/adobe_personalization. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicPanel is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_personalization.framework/adobe_personalization. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicController is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_personalization.framework/adobe_personalization. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac /Library/Application Support/FLEXnet Publisher/Service/11.03.005/FNPLicensingService[18147]: Started
    Dec  9 14:52:19 ProntoMac /Library/Application Support/FLEXnet Publisher/Service/11.03.005/FNPLicensingService[18147]: This service performs licensing functions on behalf of FLEXnet enabled products.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicController is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_registration.framework/adobe_registration. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicJSWindowExternalHandler is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_registration.framework/adobe_registration. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicWizardController is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_registration.framework/adobe_registration. One of the two will be used. Which one is undefined.
    Dec  9 14:52:19 ProntoMac [0x0-0x121121].com.adobe.InDesign[18143]: objc[18143]: Class EpicPanel is implemented in both /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_eula.framework/adobe_eula and /Applications/Adobe InDesign CS3/Adobe InDesign CS3.app/Contents/Frameworks/adobe_registration.framework/adobe_registration. One of the two will be used. Which one is undefined.
    -----------------------------------------------snap--------------------------------------- ----
    Can anyone help to fix this?
    Thx & Bye Tom

    Yes.
    I had CS3 and CS4 on my MBP with Snow Leopard.

  • Mapping to XML TABLE

    HI Everybody,
    Could you help me a bit? I've got an XML schema (.xsd) and a corresponding XML document (.xml) file. I've registered the schema with Oracle XDB and loaded the XML document into XDB Repository using the object-relational storage technique. Fine--I can access it from SQL and PL/SQL using XPath. However, this is to be an integral part of a Java EE application, where I must be able to read specific fragments and nodes from my XML table and use the values in my Java classes for computations and to display them in different views. How to preceed? Which technology should I choose to map the table to classes?
    In Toplink, I can unmarshal the document but since it is very big, this is no good practice to keep all data in memory. It should behave like an ordinary lookup table (as it is indeed).
    Please state if you have an idea.
    Thanks in advance, regards
    Miklos HERBOLY

    I have designed a simple relational table sturcture that can handle XML, in 4 brief tables. Email me [email protected] if interested.
    null

  • How to insert single colon xml text in the xml table

    Dear Sir,
    how to insert special characters like single colon text example (don't) xml text in to the xml table
    please see the following example its giving me error quoted string is not ended properly
    SQL> insert into ftr_ctl values (1,
    2 xmltype('<po:root xmlns:po="http://www.oracle.com/FC.xsd"
    3 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    4 xsi:schemaLocation="http://www.oracle.com/FC.xsd
    5 http://www.oracle.com/FC.xsd">
    6 <row>
    7 <UniqueIdentifier>urn:x-gcs:def:featureType:GFDD::FT_DFDD_100565</UniqueIdentifier>
    8 <AlphaCode>ZB032</AlphaCode>
    9 <Name>Baseline Point</Name>
    10 <Status>Submitted</Status>
    11 <Definition>A location that serves as a point on, and which partially defines a segment
    of, a national boundary baseline.</Definition>
    12 <Description>May be monumented or unmonumented. A national boundary baseline is used fo
    r defining the landward edge or margin of a nation's various contiguous zones such as the 3 and 12 n
    autical mile limits and the Exclusive Economic Zone (EEZ).</Description>
    13 </row>
    14 </po:root>'));
    ERROR:
    ORA-01756: quoted string not properly terminated
    how to solve single quotation like (nation's) in xml data insertion
    please give me reply as soon as possible
    Thanks
    Kabeer

    Hi,
    Use &#x7B;code} tags to post formatted code on the forum.
    That way, your code will be more readable for everyone, and more importantly here, everyone will be able to clearly see what's bothering you :
    &apos;sThe single quote was encoded with the character entity reference "&amp;apos;".
    The conversion is not mandatory but it happens Oracle is doing it in this case.
    It shouldn't be a problem though.
    If you want to extract the value afterwards, it'll come as expected :
    SQL> create table ftr_ctl (id number, doc xmltype);
    Table created
    SQL> insert into ftr_ctl values (1,
      2  xmltype('<po:root xmlns:po="http://www.oracle.com/FC.xsd"
      3  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      4  xsi:schemaLocation="http://www.oracle.com/FC.xsd
      5  http://www.oracle.com/FC.xsd">
      6  <row>
      7  <UniqueIdentifier>urn:x-gcs:def:featureType:GFDD::FT_DFDD_100565</UniqueIdentifier>
      8  <AlphaCode>ZB032</AlphaCode>
      9  <Name>Baseline Point</Name>
    10  <Status>Submitted</Status>
    11  <Definition>A location that serves as a point on, and which partially defines a segment of, a national boundary baseline.</Definition>
    12  <Description>May be monumented or unmonumented. A national boundary baseline is used for defining the landward edge or margin of a nation''s various contiguous zones such as the 3 and 12 nautical mile limits and the Exclusive Economic Zone (EEZ).</Description>
    13  <Alias xsi:nil="true"></Alias>
    14  <SourceItemIdentifier>100565</SourceItemIdentifier>
    15  <SourceReference>DGIWG DFDD BL 2011-1.00</SourceReference>
    16  <SourceURL>https://www.dgiwg.org/FAD/fdd/view?i=100565</SourceURL>
    17  </row>
    18  </po:root>'));
    1 row inserted
    SQL> select extractvalue(doc, '/po:root/row/Description','xmlns:po="http://www.oracle.com/FC.xsd"')
      2  from ftr_ctl
      3  where id = 1
      4  ;
    EXTRACTVALUE(DOC,'/PO:ROOT/ROW/DESCRIPTION','XMLNS:PO="HTTP://WWW.ORACLE.COM/FC.
    May be monumented or unmonumented. A national boundary baseline is used for defi
    ning the landward edge or margin of a nation's various contiguous zones such as
    the 3 and 12 nautical mile limits and the Exclusive Economic Zone (EEZ).
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • How to query from the xml table a single, specified element.

    I'm quite new in Xml Db. Pleas, can anybody tell me how to query from the xml table below a single element (i.e. the element 'rapportoparentela = NIPOTE' related to the element 'codicefiscale = CRRVNC76R52G337R', or the element 'rapportoparentela = FIGLIO' related to the element 'codicefiscale = CRRRNT51L23G337Q')?
    - <dati xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <codiceinterno />
    <codicefiscaleassistito>CRRMNL81R31G337H</codicefiscaleassistito>
    - <famigliare>
    <codicefiscale>CRRVNC76R52G337R</codicefiscale>
    <rapportoparentela>NIPOTE</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CRRRNT51L23G337Q</codicefiscale>
    <rapportoparentela>FIGLIO</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CBRPRN15S65E080W</codicefiscale>
    <rapportoparentela>I.S.</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>CRRMNL81R31G337H</codicefiscale>
    <rapportoparentela>NIPOTE</rapportoparentela>
    </famigliare>
    - <famigliare>
    <codicefiscale>BCCCML54C50I845G</codicefiscale>
    <rapportoparentela>NUORA</rapportoparentela>
    </famigliare>
    </dati>
    Using SELECT extractValue(value(t),'/rapportoparentela') into result FROM NF_XMLT X,
    TABLE ( xmlsequence (extract(value(X),'/dati/famigliare/rapportoparentela'))) t
    I get all the elements 'rapportoparentela' and I want to get only one specified.
    Regards.
    Piero

    Piero,
    you can add the condition "CRRVNC76R52G337R" to your xpath-expression like:
    SELECT extractValue(value(t),'/rapportoparentela')
    FROM NF_XMLT x
    ,TABLE ( xmlsequence (extract(value(X),'/dati/famigliare[rapportoparentela="CRRVNC76R52G337R"]'))) tto select only those famigliare-elements that have a child-element rapportoparentela with value "CRRVNC76R52G337R".
    When you stored your XML in an XMLType column in the table, i think the following queries are better:
    SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
    FROM NF_XMLT x
    WHERE extractValue(x.your_XMLType_column,'/dati/famigliare/codicefiscale')
    = 'CRRVNC76R52G337R'or
    SELECT extractValue(x.your_XMLType_column,'/dati/famigliare/rapportoparentela')
    FROM NF_XMLT x
    WHERE existsNode(x.your_XMLType_column,'/dati/famigliare[codicefiscale="CRRVNC76R52G337R"]')
    != 0

  • ORA-00932 Using Structured XML Table

    Hello,
    I'm having a problem in trying to create and use a Structured XML Table.
    I have created very small sample that illustrates my problem:
    I have registered the following schema:
    <schema
    targetNamespace="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd"
    xmlns:jjm="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd" xmlns="http://www.w3.org/2001/XMLSchema"
    elementFormDefault="qualified">
    <complexType name="JjmType">
    <choice maxOccurs="unbounded">
    <element name = "Key" type = "string"></element>
    <element name = "Type" type = "string"></element>
    <element name = "AccessID" type = "string"></element>
    </choice>
    </complexType>
    <element name ="Jjm" type="jjm:JjmType"/>
    </schema>'
    Then I created the following table:
    CREATE TABLE JJM_SCHEMA of XMLType
    XMLSCHEMA "http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd"
    ELEMENT "Jjm";
    Then I inserted the following row:
    insert into JJM_SCHEMA values(xmltype('<Jjm
                             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
                             xsi:noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
                   <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>'));
    Then I do the following query:
    SELECT
    extract(value(x),
    '/Jjm[Type="User"]') AS jjmXML FROM JJM_SCHEMA x
    WHERE existsNode(value(x),'/Jjm[Type="User"]') = 1;
    I get this error:
    ERROR at line 1:
    ORA-00932: inconsistent datatypes: expected UDT got CHAR
    However, if I remove the Xpath predicate [Type="User"] from the "extract()" function and WHERE clause...
    SELECT
    extract(value(x),
    '/Jjm') AS jjmXML FROM JJM_SCHEMA x
    WHERE existsNode(value(x),'/Jjm') = 1;
    The query works.
    Also, If I change the schema from <choice maxOccurs="unbounded"> to <sequence>... either query works.
    I need the "choice" type element to work with the Xpath predicate. Am I missing something?
    Thanks in advance.
    Jim McDowall

    Jim
    Which version of the database are you using...
    Testing with 9.2.0.4.0 I had to add an xmlns declaration to the instance document before I could insert it into the table
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd" xsi:noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
         <Key>anp</Key>
         <Type>User</Type>
         <AccessID>TSL2</AccessID>
    </Jjm>
    However once that was done I get the following.
    SQL*Plus: Release 9.2.0.4.0 - Production on Wed Aug 20 15:40:32 2003
    Copyright (c) 1982, 2002, Oracle Corporation. All rights reserved.
    SQL> spool testcase.log
    SQL> set trimspool on
    SQL> connect &1/&2
    Connected.
    SQL> --
    SQL> set timing on
    SQL> set long 10000
    SQL> set pages 10000
    SQL> set feedback on
    SQL> set lines 132
    SQL> --
    SQL> SELECT extract(value(x),'/Jjm[Type="User"]') AS jjmXML
    2 FROM JJM_SCHEMA x
    3 WHERE existsNode(value(x),'/Jjm[Type="User"]') = 1
    4 /
    JJMXML
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/S
    noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
    <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>
    1 row selected.
    Elapsed: 00:00:02.07
    SQL> SELECT extract(value(x),'/Jjm') AS jjmXML
    2 FROM JJM_SCHEMA x
    3 WHERE existsNode(value(x),'/Jjm') = 1;
    JJMXML
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/S
    noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
    <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>
    1 row selected.
    Elapsed: 00:00:00.00
    SQL> /
    JJMXML
    <Jjm xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tsldev01.thesoftlife.com:7887/SoftTop/S
    noNamespaceSchemaLocation="http://tsldev01.thesoftlife.com:7887/SoftTop/Schemas/Jjm.xsd">
    <Key>anp</Key>
    <Type>User</Type>
    <AccessID>TSL2</AccessID>
    </Jjm>
    1 row selected.
    Elapsed: 00:00:00.00
    SQL> quit

  • Loading XML tables.

    Hi,
    I have managed to successfully register xml schema and create the xml tables. I now need to load the data into these tables. I am now working on different scenarios of loading the XML data into these tables.
    I successfully experimented with the SQL/PLSQL options as well as SQL*Loader. I am reluctant to try the C and JAVA based interfaces because, frankly that is a completely new field for me and will present a huge learning curve that I won’t be able to pull off in short time I need to put this application in production.
    My scenario, I have about 250 XML tables which I’m going to populate from XML data files containing thousands of records. I need the lode process to be automatic such that I can do scheduled runs.
    The problem I have is SQL*Loader, and I am strictly going by the example given in the Oracle documentation, is that it requires for me to put ‘0’ for every record in the file. Here’s what my sample control file looks like,
    LOAD DATA
    INFILE *
    INTO TABLE "MCF_Custom_Form_Date_Rg" APPEND
    xmltype(xmldata)
    FIELDS
    xmldata LOBFILE (CONSTANT sampleload1.xml) TERMINATED BY '[XML]'
    BEGINDATA
    0
    0
    0
    This method works if I have finite number of records which I’ll need to count before hand and add a ‘0’ for each record. That’s not an optimal solution because I will not know the number of records before hand. Is there any way of changing this behavior?
    I am kind of stumped. What are my other alternatives? I read some where about SAX load utility. Where can I find more documentation about it? Can I run automated loading programs using it?
    Any help on this would be greatly appreciated.
    Regards,
    AVJ.

    Anand, you might want to try something using xmldb repository since it allows you to do the FTP operations for the xml files and FTP operations can be scheduled.
    First check of your database already accepts FTP operations.
    From the command prompt type
    FTP
    FTP> OPEN <DATABASE SERVER NAME> 2100
    Next it asks for a user which you can give database user and password.
    Now the lets consider this example schema.
    <!-- edited with XML Spy v4.0 U (http://www.xmlspy.com) by Mark (Drake) -->
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:xdb="http://xmlns.oracle.com/xdb" version="1.0">
         <xs:element name="PurchaseOrder" type="PurchaseOrderType" xdb:defaultTable="PURCHASEORDER"/>
         <xs:complexType name="PurchaseOrderType" xdb:SQLType="XDBPO_TYPE">
              <xs:sequence>
                   <xs:element ref="Reference"/>
                   <xs:element name="Actions" type="ActionsType" xdb:SQLName="ACTIONS"/>
                   <xs:element name="Reject" type="RejectType" minOccurs="0" xdb:SQLName="REJECTION"/>
                   <xs:element ref="Requestor"/>
                   <xs:element ref="User"/>
                   <xs:element ref="CostCenter"/>
                   <xs:element name="ShippingInstructions" type="ShippingInstructionsType" xdb:SQLName="SHIPPINGINSTRUCTIONS"/>
                   <xs:element ref="SpecialInstructions"/>
                   <xs:element name="LineItems" type="LineItemsType" xdb:SQLName="LINEITEMS"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LineItemsType" xdb:SQLType="XDBPO_LINEITEMS_TYPE">
              <xs:sequence>
                   <xs:element name="LineItem" type="LineItemType" maxOccurs="unbounded" xdb:SQLName="LINEITEM" xdb:SQLCollType="XDBPO_LINEITEM_COLLECTION"/>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="LineItemType" xdb:SQLType="XDBPO_LINEITEM_TYPE">
              <xs:sequence>
                   <xs:element ref="Description"/>
                   <xs:element ref="Part"/>
              </xs:sequence>
              <xs:attribute name="ItemNumber" type="xs:integer" xdb:SQLName="ITEMNUMBER" xdb:SQLType="NUMBER"/>
         </xs:complexType>
         <xs:element name="Reference" xdb:SQLName="REFERENCE" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="18"/>
                        <xs:maxLength value="30"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Part" xdb:SQLType="XDBPO_PART_TYPE" xdb:defaultTable="">
              <xs:complexType>
                   <xs:attribute name="Id" xdb:SQLName="PARTNO" xdb:SQLType="VARCHAR2">
                        <xs:simpleType>
                             <xs:restriction base="xs:string">
                                  <xs:minLength value="12"/>
                                  <xs:maxLength value="14"/>
                             </xs:restriction>
                        </xs:simpleType>
                   </xs:attribute>
                   <xs:attribute name="Quantity" type="money" xdb:SQLName="Quantity" xdb:SQLType="NUMBER"/>
                   <xs:attribute name="UnitPrice" type="quantity" xdb:SQLName="UNITPRICE" xdb:SQLType="NUMBER"/>
              </xs:complexType>
         </xs:element>
         <xs:complexType name="ActionsType" xdb:SQLType="XDBPO_ACTIONS_TYPE">
              <xs:sequence>
                   <xs:element name="Action" maxOccurs="4" xdb:SQLName="ACTION" xdb:SQLCollType="XDBPO_ACTION_COLLECTION">
                        <xs:complexType xdb:SQLType="XDBPO_ACTION_TYPE">
                             <xs:sequence>
                                  <xs:element ref="User"/>
                                  <xs:element ref="Date" minOccurs="0"/>
                             </xs:sequence>
                        </xs:complexType>
                   </xs:element>
              </xs:sequence>
         </xs:complexType>
         <xs:complexType name="RejectType" xdb:SQLType="XDBPO_REJECTION_TYPE">
              <xs:all>
                   <xs:element ref="User" minOccurs="0"/>
                   <xs:element ref="Date" minOccurs="0"/>
                   <xs:element ref="Comments" minOccurs="0"/>
              </xs:all>
         </xs:complexType>
         <xs:complexType name="ShippingInstructionsType" xdb:SQLType="XDBPO_SHIPINSTRUCTIONS_TYPE">
              <xs:sequence>
                   <xs:element ref="name"/>
                   <xs:element ref="address"/>
                   <xs:element ref="telephone"/>
              </xs:sequence>
         </xs:complexType>
         <xs:simpleType name="money">
              <xs:restriction base="xs:decimal">
                   <xs:fractionDigits value="2"/>
                   <xs:totalDigits value="12"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:simpleType name="quantity">
              <xs:restriction base="xs:decimal">
                   <xs:fractionDigits value="4"/>
                   <xs:totalDigits value="8"/>
              </xs:restriction>
         </xs:simpleType>
         <xs:element name="User" xdb:SQLName="USERID" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="10"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Requestor" xdb:SQLName="REQUESTOR" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="0"/>
                        <xs:maxLength value="128"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="CostCenter" xdb:SQLName="COSTCENTER" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="4"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Vendor" xdb:SQLName="VENDOR" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="0"/>
                        <xs:maxLength value="20"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="PONumber" xdb:SQLName="PONUMBER" xdb:SQLType="NUMBER" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:integer"/>
              </xs:simpleType>
         </xs:element>
         <xs:element name="SpecialInstructions" xdb:SQLName="SPECIALINSTRUCTIONS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="0"/>
                        <xs:maxLength value="2048"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="name" xdb:SQLName="SHIPTONAME" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="20"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="address" xdb:SQLName="ADDRESS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="256"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="telephone" xdb:SQLName="PHONE" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="24"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Date" type="xs:date" xdb:SQLName="DATEACTIONED" xdb:SQLType="DATE" xdb:defaultTable=""/>
         <xs:element name="Comments" xdb:SQLName="COMMENTS" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="2048"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
         <xs:element name="Description" xdb:SQLName="DESCRIPTION" xdb:SQLType="VARCHAR2" xdb:defaultTable="">
              <xs:simpleType>
                   <xs:restriction base="xs:string">
                        <xs:minLength value="1"/>
                        <xs:maxLength value="256"/>
                   </xs:restriction>
              </xs:simpleType>
         </xs:element>
    </xs:schema>
    Here you can check at the top there is defaultTable="PURCHASEORDER". So after the registration of this schema you will find a table PURCHASEORDER in your database. This table is created only if the GENTABLE parameter value was set to TRUE during schema registration.
    Now you can FTP the xml-instance file. Note during the registration of the xml schema, you would have given a URL to identify this schema uniquely in the database.
    This URL should be present in the xml-instance file as part of noNamespaceSchemaLocation tag.
    Now for FTP operations you need couple of things like a folder path on the reposity. see the documentation on how create the folder on the XMLDB repository.
    Now FTP the xml instance file to the folder. Automatically using the value specified in the noNamespaceSchemaLocation tag, Oracle recognizes that this instance file belongs to a particular XML schema which has a defaultTable PURCHASEORDER. It will push this xml file automatically into this table.
    you can check that using select count(*) from purchaseorder after the FTP operation.
    You can automate this process of FTP operations.
    refer documentation XMLDB Developers Guide, it has detail information about repository and how to query your files in the repository.
    good luck.

  • Need XML table data out of Oracle Tables

    I have an application running using Java/XML technology. My database source is completely HOST and I communicate with HOST to get the data or to save/update the data through XML only. Here I have a situaion, I have my information in metadata (xml tables fromat) and I need to get some of the information from other application which is in Oralce. So I need to get the daily based updated information from Oracle database and that inturn should update my xml tables ( When I say update xml tables, whenver there is change in the Oracle database data my xml tables should also have that changed data).
    Can any one help me how to get this done.
    Regards,
    Sriram Peri
    Work: 919-382-5672
    Home: 919-402-0207
    [email protected]

    Which version of the database...

  • BP Cockpit. Standard sap icon (e.g. ICON_OKAY) within a cell of XML table?

    Hello all,
    I have programmed a custom bp cockpit.
    I am able to build up the xml to show the data, but only with texts.
    Does anybody know how could I be able to insert an image (an standard SAP icon like "ICON_OKAY") in any of the table cells?
    Thank you very much in advance.
    Gonzalo Milla Millá

    Hello all again,
    finally, I found the way...
    The problem was that the standard XSLT conversion program 'CRM_CCKPT_CFS_SERVICE_DEFAULT' ignores the tag 'img' so... there's no way to insert images (at least within a table cell).
    I try to explain the solution:
    FIRST: Create own XSLT conversion program
    a. Go to transaction XSLT_TOOL
    b. Copy the standard conversion program 'CRM_CCKPT_CFS_SERVICE_DEFAULT' to a customer one... let's call it 'Z_CCKPT_CFS_SERVICE'.
    c. Modify this Z_CCKPT_CFS_SERVICE adding following lines:
    <xsl:when test="child::img=true()">
      <td class="table7" width="{@width}" nowrap="x">
        <img src="{child::img/@src}"/>
      </td>
    </xsl:when>
    insert this lines just before, and at the same level that
    <xsl:when test="@colspan=true()">
    Here we are telling to the conversion program how to translate XML code for images to HTML code (only when they are found between "td" tags)
    SECOND: Find icon path and insert it within XML code
    a. Go to your Z class for your infoblock (let's say Z_CL_INFOBLOCK) that inherits from CL_CRM_CCKPT_IOS and modify the GET_REPORT method
    b. Get the icon path:
    DATA:
      lc_icono TYPE string.
      lc_icono = cl_bsp_mimes=>sap_icon( 'ICON_OKAY' ).
    This way, we get the physical path to the icon.
    c. insert icon in xml code:
    DATA:
      lv_string TYPE string.
    CONCATENATE '<img src="' lc_icono '"/>'
      INTO lv_string.
    CALL METHOD crmcl_cckpt_templatesplitter=>fill_template
      EXPORTING
        iv_tagname  = 'S1'
        iv_string   = lv_string
      CHANGING
        cv_template = ls_template.
    Here, we are filling contents of tab 'S1' in the XML template LS_TEMPLATE with the line
    <img src="physical/path/of/your/icon.gif"/>
    , that will be "translated" with your Z XSLT conversion program Z_CCKPT_CFS_SERVICE
    THIRD: link Z conversion program ('Z_CCKPT_CFS_SERVICE') to your XML.
    a. Also within the GET_REPORT method, after the creation of the XML code, insert following line as the first one in the XML table (export parameter of the method):
    DATA:
      lw_meta TYPE string.
      lw_meta = '<meta:metadata xmlns:meta="urn:sap-com:document:sap:crm_cckpt:metadata" STYLESHEET="Z_CCKPT_CFS_SERVICE"/>'.
      INSERT lw_meta INTO lt_xml_temp INDEX 1.
      _et_xml_out[] = lt_xml_temp[].
      CLEAR et_xml_out.
      LOOP AT _et_xml_out INTO _ls_xml_out.
        CONCATENATE et_xml_out lv_newline _ls_xml_out INTO
                    et_xml_out.
      ENDLOOP.
    FOURTH: Finally, it works!!!
    You have your icon included as the content of a table cell...
    Hope this helps
    Best Regards
    Gonzalo Milla Millá

Maybe you are looking for

  • FTP'ing the BI Publisher report

    if i ftp'ing the report from BI Publisher will that report save in the Database? if i do the normal scheduling(to email's) of that report from publisher will that report first save in database then deliver to scheduling emails? Edited by: user1225547

  • Windows Apps Not Working in Windows 8

    Every single one of Windows 8 apps don't open when I click on their tile. When I click on the app, the opening screen pops up and then it goes straight back to the Start menu without starting the app. I can't get into the Windows Store, therefore I c

  • I was using elements 12 fine yesterday on my 64 bit Win 8 machine yesterday, now it won't even launch.

    Yesterday I was fully functional and working fine.  Now this AM I can not open the application or any of the projects.  I have not changed any settings or installed anything else.  All other programs appear to function perfectly.    

  • Transfering Shared Music to Library

    I have 64 songs in my Shared Music folder and I am trying to transfer these files to the IPod Nano Library, only anything I try does not work.. I am trying to transfer these because no songs will download to my Ipod. I'm assuming that they need to be

  • Can't stop music in loaded swf

    I have used Loader to load an swf which has looping music. When I call unload - the music keeps playing. Could someone please help me? Code below: