XML nodes that contain dashes

So, I try to remove the content of an xml document that looks like this:

< xts:sports - content - value >
< sports-content >
< sporting event - >
team <>
< / team >
< / event >
</sport/content >
< / xts:sports - content - value >

and the problem I have is that when I try to refer to xmlroot.sports - happy coldfusion throws an error that says sport is not a child xmlroot element.
I think that it is reading as LESS content xmlroot.sports.

How can I get around this so that he sees the child node as sports content?

I tried xmlroot.xmlchildren ['sports content"]

but who made a mistake by saying:
The "sport-content" value cannot be converted to a number

How can I reference this child node by its name?

works like a charm thanks!

Tags: ColdFusion

Similar Questions

  • How to limit the maximum children to a node that contains different types of node

    Hello

    I have the following XML:

    <categories>
        <category id="hsp">
            <cardUsage id="hsp.approvals">
                <tabUsage id="hsp.approvals.puListing"/>
                <tabUsage id="hsp.approvals.puDashboard"/>
            </cardUsage>
            <cardClusterUsage id="hsp.someCluster">
                <cardUsage id="hsp.someCluster.approvals"/>
            </cardClusterUsage>
        </category>
        <category  id="psb">
        </category>
        <category  id="pfp">
        </category>
        <category  id="cx">
        </category>
    </categories>
    
    
    

    I need to put a restriction on this category of node cannot have more than 16 children (nodes of cardUsage + cardClusterUsage nodes).

    The way I thought to achieve this, use a new use as a child of the category node. I could put on its use maxOccurs at 16. And then in use use the XS: Choice to choose between cardUsage and cardClusterUsage. And the maxOccurs 1.

    Please let me know if there is a better way to do it. Or if you see the flaws in my proposal.

    Thank you for your time in advance.

    Matt.

    The order of the child category matter?

    If this isn't the case, you can directly set maxOccurs on 16 in the xs: Choice:

  • E4X: Select the nodes that match a criterion, and whose children match to another

    Hi guys,.

    I'm writing a query of E4X to select the nodes that match a criterion, and whose children match to another. My actual dataset is a little more complex than this example, but this one is easy to follow.

    Say that you are modeling a hierarchy of nodes, where each node can have zero or more parents and children. The XML file is a simple index of nodes, and each node contains their immediate parent and child relationships. In this way, you can start with a given node and build a tree in a direction any to any depth. As an extra flavor and selection criteria, each node has one or more colors that are associated with.

    Here's a sample:

    nodes <>

    < node id = ' a' >

    < name color = "red" / >

    < child id = 'b' / >

    < / node >

    < node id = "b" >

    < name color = "red" / >

    < name of color = "green" / >

    < parent = 'a' / >

    < child id = "d" / >

    < / node >

    < = 'c' node id >

    < name color = "blue" / >

    < name of color = "green" / >

    < child id = "d" / >

    < / node >

    < node id = "d" >

    < name of color = "green" / >

    < id parent = 'b' / >

    < id parent = 'c' / >

    < / node >

    ...

    < / node >

    Now, say I want to select all nodes root (those who have no parent relationships) that are red. This is the best I could come up with:

    var nodeChildren:XMLList = nodeData.node. (! hasOwnProperty ('parent'))... Color. (@name == "red");
    for each {(var childData:XML in nodeChildren)
    var childID:String = nodeData.parent () .@id;

    }

    }

    The first line gets us 90% of the way by selecting all of the nodes of color matching, but we have all these entries to get the id of the node that contains.

    It is possible to select the nodes in one of the E4X without needing the loop?

    Thank you!

    Scott

    So how about this?

    nodeData.node. (! hasOwnProperty ('parent') & color.) (@name=="red").length () > 0)

  • A string that contains the prefix XML forcing

    Is there any way to create an XML node from a string that contains a prefix?

    example:

    var str:String = ' content < w: Body > < / w: Body > ";

    var newXML:XML = new XML (str);

    The result: the prefix 'w' to the 'body' element is not bound.

    Is there a way to force this?

    I tried to add a namespace w but without success.

    Use a cdata node:

    var str: String = "[ contents]] > ';"

    var newXML:XML = new XML (str);

  • E4X: How to get the items that contain a string pattern in the name of the node?

    Is there a way to retrieve the children of an XMLList where the name of the node of a child contains a template string?

    For example:

    account <>

    < XblahX / >

    < cow / >

    < YblahY / >

    < / recording >

    How to get items in folder which has a node name that contains the string "blah"?

    var rec: XML =

    ;

    var r: RegExp = / blah /;
    var elems:XMLList = rec.children (). (localName () *.search (r) >-1);
    trace (elems. ToXmlString())

  • Extract data from complex XML of XMLType with nodes parents containing several internal nodes

    Hello

    I use Google geocoding XML Web Service to try to enrich some geo data in the database. I've kept all the Google result in an XMLType column, the result is something like this:

    <? XML version = "1.0" encoding = "UTF-8"? >

    < GeocodeResponse >

    < status > OK < / status >

    < result >

    Zip_code < type > < / type >

    < formatted_address > 76279, Saudi Arabia < / formatted_address >

    < address_component >

    < > 76279 long_name < / long_name >

    < > 76279 short_name < / short_name >

    Zip_code < type > < / type >

    < / address_component >

    < address_component >

    < long_name > Northern Frontier Province < / long_name >

    < short_name > Northern Frontier Province < / short_name >

    administrative_area_level_1 < type > < / type >

    < Type > policy < / type >

    < / address_component >

    < address_component >

    < long_name > Saudi Arabia < / long_name >

    < short_name > SA < / short_name >

    country of < type > < / type >

    < Type > policy < / type >

    < / address_component >

    < geometry >

    < location >

    < lat > 29.1214197 < / lat >

    < LNG > 44.3945656 < / LNG >

    < / location >

    < location_type > APPROX. < / location_type >

    < window >

    < Southwest >

    < lat > 29.1016132 < / lat >

    < LNG > 44.3654665 < / LNG >

    < / Southwest >

    < Northeast >

    < lat > 29.1400926 < / lat >

    < LNG > 44.4116001 < / LNG >

    < / Northeast >

    < / window >

    < limits >

    < Southwest >

    < lat > 29.1016132 < / lat >

    < LNG > 44.3654665 < / LNG >

    < / Southwest >

    < Northeast >

    < lat > 29.1400926 < / lat >

    < LNG > 44.4116001 < / LNG >

    < / Northeast >

    < / delimits >

    < / geometry >

    < place_id > ChIJcy767DIAYxURohAm-DLSunw < / place_id >

    < / result >

    < result >

    locality < type > < / type >

    < Type > policy < / type >

    Foucart, France < formatted_address > < / formatted_address >

    < address_component >

    < long_name > Foucart < / long_name >

    < short_name > Foucart < / short_name >

    locality < type > < / type >

    < Type > policy < / type >

    < / address_component >

    < address_component >

    < long_name > Seine-Maritime < / long_name >

    < > 76 short_name < / short_name >

    administrative_area_level_2 < type > < / type >

    < Type > policy < / type >

    < / address_component >

    < address_component >

    < long_name > upper Normandy < / long_name >

    < short_name > upper Normandy < / short_name >

    administrative_area_level_1 < type > < / type >

    < Type > policy < / type >

    < / address_component >

    < address_component >

    < long_name > France < / long_name >

    < short_name > EN < / short_name >

    country of < type > < / type >

    < Type > policy < / type >

    < / address_component >

    < geometry >

    < location >

    < lat > 49.6131170 < / lat >

    < LNG > 0.5951040 < / LNG >

    < / location >

    < location_type > APPROX. < / location_type >

    < window >

    < Southwest >

    < lat > 49.6019770 < / lat >

    < LNG > 0.5731880 < / LNG >

    < / Southwest >

    < Northeast >

    < lat > 49.6329760 < / lat >

    < LNG > 0.6081609 < / LNG >

    < / Northeast >

    < / window >

    < limits >

    < Southwest >

    < lat > 49.6019770 < / lat >

    < LNG > 0.5731880 < / LNG >

    < / Southwest >

    < Northeast >

    < lat > 49.6329760 < / lat >

    < LNG > 0.6081609 < / LNG >

    < / Northeast >

    < / delimits >

    < / geometry >

    < place_id > ChIJQdTiHHJc4EcRUIO2T0gUDAQ < / place_id >

    < / result >

    < / GeocodeResponse >


    Here are practically two entries from geo (the /result of xml nodes), and each entry has multiple secondary entries of type address_component and a secondary entrance to the geometry of type.


    I can get the entries in the result of this query:


    SELECT xt.*

    OF zip_tree_sort_xml x,.

    XMLTABLE ("' / GeocodeResponse/result")

    PASSAGE x.google_geodata_xml

    COLUMNS

    Path of 'FORMATTED_ADDRESS' VARCHAR2 (200) "formatted_address".

    ) xt;


    The subnodes XML type address_component and type geometry of teas and those below:


    SELECT xt.*

    OF zip_tree_sort_xml x,.

    XMLTABLE ('/ GeocodeResponse/result/address_component ')

    PASSAGE x.google_geodata_xml

    COLUMNS

    Path of "LONG_NAME' VARCHAR2 (200)"long_name. "

    'SHORT_NAME' VARCHAR2 (500) PATH 'short_name ',.

    Path ACCESS VARCHAR2 (200) from 'TYPE_1' 'type [1]. "

    Path ACCESS VARCHAR2 (200) to 'TYPE_2' 'type [2].

    ) xt;


    SELECT xt.*

    OF zip_tree_sort_xml x,.

    XMLTABLE ("/ GeocodeResponse/result/geometry/location")

    PASSAGE x.google_geodata_xml

    COLUMNS

    "latitude" NUMBER PATH 'lat ',.

    "longitude" NUMBER PATH 'LNG '.

    ) xt;


    But y at - it anyway to join the two subnodes XML below with the parent that above? So I can only get correct result attributes?

    Best regards

    Rodriguez

    But y at - it anyway to join the two subnodes XML below with the parent that above? So I can only get correct result attributes?

    You can do chaining XMLTABLE another that will handle the address_component expandable nodes.

    Data from the geometry node can be extracted at the same level as a result.

    SQL> select x1.formatted_address
      2       , x2.long_name
      3       , x2.short_name
      4       , x2.type_1
      5       , x2.type_2
      6       , x1.latitude
      7       , x1.longitude
      8  from zip_tree_sort_xml t
      9     , xmltable('/GeocodeResponse/result'
     10         passing t.google_geodata_xml
     11         columns
     12           formatted_address   varchar2(200) path 'formatted_address'
     13         , address_components  xmltype       path 'address_component'
     14         , latitude            number        path 'geometry/location/lat'
     15         , longitude           number        path 'geometry/location/lng'
     16       ) x1
     17     , xmltable('/address_component'
     18         passing x1.address_components
     19         columns
     20           long_name   varchar2(200) path 'long_name'
     21         , short_name  varchar2(500) path 'short_name'
     22         , type_1      varchar2(200) path 'type[1]'
     23         , type_2      varchar2(200) path 'type[2]'
     24       ) x2 ;
    
    FORMATTED_ADDRESS       LONG_NAME                   SHORT_NAME                   TYPE_1                         TYPE_2       LATITUDE  LONGITUDE
    ----------------------- --------------------------- ---------------------------- ------------------------------ ---------- ---------- ----------
    76279, Saudi Arabia     76279                       76279                        postal_code                               29,1214197 44,3945656
    76279, Saudi Arabia     Northern Borders Province   Northern Borders Province    administrative_area_level_1    political  29,1214197 44,3945656
    76279, Saudi Arabia     Saudi Arabia                SA                           country                        political  29,1214197 44,3945656
    Foucart, France         Foucart                     Foucart                      locality                       political   49,613117   0,595104
    Foucart, France         Seine-Maritime              76                           administrative_area_level_2    political   49,613117   0,595104
    Foucart, France         Upper Normandy              Upper Normandy               administrative_area_level_1    political   49,613117   0,595104
    Foucart, France         France                      FR                           country                        political   49,613117   0,595104
    
    7 rows selected.
    
  • Charger xml with sql loader in an xmltype table and show that contain it this XML table

    Hello

    I have a xml document and I want to load in an xmltype table.

    create table foo as xmltype;


    the control file is:


    LOAD DATA
    INFILE
    *
    INTO TABLE foo
    TRUNCATE
    XMLType(XMLDATA)(
    lobfn FILLER CHAR TERMINATED BY
    ',',
    XMLDATA LOBFILE
    (lobfn) TERMINATED BY EOF
    )
    BEGINDATA
    C
    :\Users\xxx\Desktop\file.xml


    now, I want to show the content of the xml file that is loaded at the time of table. How do you?


    select * from foo;   ??


    but this does not show the content of this xml file, but only total, this xml code.



    Thank you

    Hello

    Try to take a look at the Oracle XML SQL functions:

    http://docs.Oracle.com/CD/B28359_01/AppDev.111/b28369/xdb04cre.htm

  • Windows Explorer is restarted when you browse the folder that contains the file huge (more than 4 GB for example HIDEF mkv files)

    I use Windows 7 Ultimate x 64. I found that when I review the folder that contains large files (more than 5 GB each, for example the HIDEF mkv files), Explorere.exe stopped working and restart.

    However, I can open these files when I open them directly from the program (i.e. KMPlayer). Here are 2 events after restart and Explorer.exe crash. I got them from event viewer

    I am facing this problem in Mode safe too!

    PLEASE HELP T___T

    ++++++++++++++++++++++++++++++++++++++++++++++++++++

    Log name: Application
    Source: Application error
    Date: 3/2/2553 06:46:01
    Event ID: 1000
    Task category: (100)
    Level: error
    Keywords: Classic
    User: n/a
    Computer: beersonic-PC
    Description:
    The failing application name: Explorer.EXE, version: 6.1.7600.16450, time stamp: 0x4aebab8d
    Name of the failed module: qedit.dll, version: 6.6.7600.16385, time stamp: 0x4a5be02b
    Exception code: 0xc0000005
    Offset: 0x000000000006bb73
    ID of the process failed: 0x133c
    Start time of application vulnerabilities: 0x01caa461b0159e53
    The failing application path: C:\Windows\Explorer.EXE
    Path of the failing module: C:\Windows\System32\qedit.dll
    Report ID: 1dd76da9-1055-11df-a980-00195bd2573a
    The event XML:

     
       
        1000
        2
        100
        0 x 80000000000000
       
        12147
        Application
        beersonic-PC
       
     

     
        Explorer.EXE
        6.1.7600.16450
        4aebab8d
        Qedit.dll
        6.6.7600.16385
        4a5be02b
        c0000005
        000000000006bb73
        133C
        01caa461b0159e53
        C:\Windows\Explorer.exe
        C:\Windows\System32\qedit.dll
        1dd76da9-1055-11df-A980-00195bd2573a
     

    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

    Log name: Application
    Source: Windows Error Reporting
    Date: 3/2/2553 06:46:12
    Event ID: 1001
    Task category: no
    Level: Information
    Keywords: Classic
    User: n/a
    Computer: beersonic-PC
    Description:
    10675835, 4 the fault type bucket
    Event name: APPCRASH
    Answer: No available
    Cabin ID: 0

    Signature of the problem:
    P1: Explorer.EXE
    P2: 6.1.7600.16450
    P3: 4aebab8d
    P4: qedit.dll
    P5: 6.6.7600.16385
    P6: 4a5be02b
    P7: c0000005
    P8: 000000000006bb73
    P9:
    P10:

    Attached files:
    C:\Users\beersonic\AppData\Local\Temp\WER168C.tmp.WERInternalMetadata.XML

    These files are available here:
    C:\Users\beersonic\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Explorer.EXE_f03929de6e484ca527e71d77fa7726e518545eb_117b41d0

    Symbol of the analysis:
    Recheck for solution: 0
    Report ID: 1dd76da9-1055-11df-a980-00195bd2573a
    State: 0
    The event XML:

     
       
        1001
        4
        0
        0 x 80000000000000
       
        12148
        Application
        beersonic-PC
       
     

     
        10675835
        4
        APPCRASH
        Not available
        0
        Explorer.EXE
        6.1.7600.16450
        4aebab8d
        Qedit.dll
        6.6.7600.16385
        4a5be02b

        c0000005
        000000000006bb73
       
       
       
       

       
    C:\Users\beersonic\AppData\Local\Temp\WER168C.tmp.WERInternalMetadata.XML

        C:\Users\beersonic\AppData\Local\Microsoft\Windows\WER\ReportArchive\AppCrash_Explorer.EXE_f03929de6e484ca527e71d77fa7726e518545eb_117b41d0
       
       

        0
        1dd76da9-1055-11df-A980-00195bd2573a
        0
     

    +++ RESOLVED +++

    I found the problem...

    "Haali splitter" program has a function to display MKV and MP4 as a thumbnail in Windows Explorer. What Windows Explorer crash when I open the folder with MKV huge.

    Thank you all,

  • Replace the current XML node with another node in XML fragments

    Hello

    Please help, trying to replace an XML node with other fragments XML using XML DB, updateXML/deleteXML functions don't receive the desired result, on the front of the image below, this is what I have, and the transom is the replacement with new values XML fragment, I expect to see, there is a list of records from the XML that I need to open and do the replacement of the < broker-retail > according to the number of records to be inserted.

    Before the photo:

    < Broker-benefits-link >

    < hpp-rule > 0 < / hpp-rule >

    LISP < in.-CVCA-benefits-type > < / po-CVCA-benefits-type >

    < commit / >

    <broker-retail >

    < broker-entity-not > 1000947836 < / broker-entity-not >

    < broker-pct > 100 < / broker-pct >

    Y < principal > < / main >

    < / broker-retail >

    < / Broker-benefits-link >


    After photo (expected result):

    < Broker-benefits-link >

    < hpp-rule > 0 < / hpp-rule >

    LISP < in.-CVCA-benefits-type > < / po-CVCA-benefits-type >

    < commit / >

    <broker-retail >

    < broker-entity-not > 65656524 < / broker-entity-not >

    < broker-pct > 25 < / broker-pct >

    N < principal > < / main >

    < / broker-retail >

    <broker-retail >

    < broker-entity-not > 122224444 < / broker-entity-not >

    < > 75 broker-pct < / broker-pct >

    Y < principal > < / main >

    < / broker-retail >

    < / Broker-benefits-link >

    Kind regards

    Qwestion

    You can use DELETEXML and INSERTCHILDXML

    SQL> set long 10000
    SQL> column xmldata_new format a100
    SQL> set linesize 150
    SQL>
    SQL> with t
      2  as
      3  (
      4  select
      5  xmltype('
      6    0
      7    LISP
      8    
      9    
     10      1000947836
     11      100
     12      Y
     13    
     14  ') xmldata from dual
     15  )
     16  select xmlserialize
     17         (
     18             document
     19             insertchildxml
     20             (
     21                deletexml
     22                (
     23                    xmldata
     24                  , '/broker-benefit-link/broker-detail'
     25                )
     26              , '/broker-benefit-link'
     27              , 'broker-detail'
     28              , xmltype
     29                (
     30                '
     31                    
     32                        65656524
     33                        25
     34                        N
     35                    
     36                    
     37                        122224444
     38                        75
     39                        Y
     40                    
     41                 ').extract('/broker-master/broker-detail')
     42             )
     43             as clob indent size = 2
     44         ) xmldata_new
     45    from t;
    
    XMLDATA_NEW
    ----------------------------------------------------------------------------------------
    
      0
      LISP
      
      
        65656524
        25
        N
      
      
        122224444
        75
        Y
      
    
    
    SQL>
    
  • Find the empty XML node on a table with 15 M lines

    I have a query that runs to always seek to empty xml node.

    CREATE TABLE TEST_TAB (ID number, doc XMLTYPE);

    SELECT COUNT (1)

    OF test_tab

    WHERE ((XMLEXISTS (declare default element namespace "http://oracle.com/»;)))  * / EmployeeNode / text () [not (empty (.))]'

    PASSAGE DOC)));

    Are there specific oracle or operator XML text that is more effective to check null values or a specific type of text/xml index that is best suited looking for nulls in the whole of nodes?

    Thank you

    Kevin

    In the meantime, here's a test on a similar scenario.

    It seems that the structured XMLIndex gives the best response time. The obvious drawback is that she is very specific and cannot be used to solve other queries.

    SQL > drop table test_tab is serving;

    Deleted table.

    SQL > create table test_tab like

    2. select id, cast (level as number)

    3, xmlparse (document

    4'http://xmlns.example.org ">"

    5         || -case when mod (level 5) = 0 then end level

    6         || '' correct

    (7) doc

    8 double

    9 connect by level<= 100000="">

    Table created.

    SQL > set timing on

    SQL > define pages 100

    SQL > set lines 200

    SQL > set autotrace on explain

    SQL >

    SQL > exec dbms_stats.gather_table_stats (user, 'TEST_TAB');

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:00.92

    SQL > select count (*)

    2 of test_tab

    3 where (xmlexists)

    4 ' declare default element namespace "http://xmlns.example.org"; / root/item/Text () '

    5 passage doc

    6  ) ;

    COUNT (*)

    ----------

    20000

    Elapsed time: 00:00:09.09

    Execution plan

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

    Hash value of plan: 2371188561

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

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |          |     1.   125.   271 (1) | 00:00:04 |

    |   1.  GLOBAL TRI |          |     1.   125.            |          |

    |*  2 |   FILTER |          |       |       |            |          |

    |   3.    TABLE ACCESS FULL | TEST_TAB |   100K |    11 M |   269 (1) | 00:00:04 |

    |   4.    XPATH EVALUATION.          |       |       |            |          |

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

    Information of predicates (identified by the operation identity card):

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

    2 filter (EXISTS (SELECT 0 FROM))

    XPATHTABLE ('/ oraxq_defpfx:root / oraxq_defpfx:Item / Text () ' PASSING: B1)

    PATH OF XMLTYPE COLUMNS ' C_00$ ' '.')  "P"))

    SQL >

    With the index structured:

    SQL >

    SQL > create index test_tab_sxi on test_tab (doc)

    2 indextype is xdb.xmlindex

    () 3 parameters

    4Q ' {XMLTABLE test_tab_xt

    5 XMLNAMESPACES (default 'http://xmlns.example.org'),

    6 ' / root/item / text () '

    {7 item_value PATH VARCHAR2 COLUMNS (30) '.'} "

    8  ) ;

    The index is created.

    Elapsed time: 00:00:10.13

    SQL >

    SQL > exec dbms_stats.gather_table_stats (user, 'TEST_TAB');

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:01.69

    SQL >

    SQL > select count (*)

    2 of test_tab

    3 where (xmlexists)

    4 ' declare default element namespace "http://xmlns.example.org"; / root/item/Text () '

    5 passage doc

    6  ) ;

    COUNT (*)

    ----------

    20000

    Elapsed time: 00:00:00.18

    Execution plan

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

    Hash value of plan: 3461631238

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

    | ID | Operation | Name | Lines | Bytes | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |             |     1.    28.   290 (1) | 00:00:04 |

    |   1.  GLOBAL TRI |             |     1.    28.            |          |

    |*  2 |   HASH JOIN RIGHT SEMI |             | 22015 |   601K |   290 (1) | 00:00:04 |

    |*  3 |    TABLE ACCESS FULL | TEST_TAB_XT | 22015 |   343K |    20 (0) | 00:00:01 |

    |   4.    TABLE ACCESS FULL | TEST_TAB |   100K |  1171K |   269 (1) | 00:00:04 |

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

    Information of predicates (identified by the operation identity card):

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

    2 - access ("TEST_TAB". ROWID = "SYS_SXI_0." ("' RID ')

    3 - filter("SYS_SXI_0".") ITEM_VALUE' IS NOT NULL)

    With an index not structured:

    SQL > drop index test_tab_sxi;

    The index is deleted.

    Elapsed time: 00:00:00.11

    SQL >

    SQL >

    SQL > create index test_tab_uxi on test_tab (doc)

    2 indextype is xdb.xmlindex

    3 parameters ("PATH of TABLE test_tab_pt

    4 PATHS (INCLUDE (/ root/point))

    (5 MAPPING of namespace (xmlns = "http://xmlns.example.org"))');

    The index is created.

    Elapsed time: 00:01:20.99

    SQL >

    SQL > exec dbms_stats.gather_table_stats (user, 'TEST_TAB');

    PL/SQL procedure successfully completed.

    Elapsed time: 00:00:06.56

    SQL >

    SQL > select count (*)

    2 of test_tab

    3 where (xmlexists)

    4 ' declare default element namespace "http://xmlns.example.org"; / root/item/Text () '

    5 passage doc

    6  ) ;

    COUNT (*)

    ----------

    20000

    Elapsed time: 00:00:00.45

    Execution plan

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

    Hash value of plan: 2464052102

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

    | ID | Operation | Name | Lines | Bytes | TempSpc | Cost (% CPU). Time |

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

    |   0 | SELECT STATEMENT |             |     1.    42.       |   773 (1) | 00:00:10 |

    |   1.  GLOBAL TRI |             |     1.    42.       |            |          |

    |*  2 |   HASH JOIN RIGHT SEMI |             |  6547 |   268K |  2176K |   773 (1) | 00:00:10 |

    |*  3 |    TABLE ACCESS FULL | TEST_TAB_PT | 53020 |  1553K |       |   283 (2) | 00:00:04 |

    |   4.    TABLE ACCESS FULL | TEST_TAB |   100K |  1171K |       |   269 (1) | 00:00:04 |

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

    Information of predicates (identified by the operation identity card):

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

    2 - access ("TEST_TAB". ROWID = "SYS_P0." ("' RID ')

    3 - filter("SYS_P0".") PATHID "= HEXTORAW ('061D') AND"

    SYS_XMLI_LOC_ISTEXT ("SYS_P0". "LOCATOR", "SYS_P0" "." " PATHID') = 1)

    (tested on 11.2.0.2)

  • How to treat an XML file that uses html characters?

    I need to shoot a userlist to my web application, and which means to invoke a web service on the authentication server.  I managed to do exactly that, but the XML file, that I give myself to face looks like this:

    <?xml version="1.0" encoding="UTF-8"?>
    <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <soapenv:Body><ns1:getAllUserInfoResponse soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://web.ws">
    <getAllUserInfoReturn xsi:type="soapenc:string" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
    &lt;?xml version = '1.0'?&gt;
    &lt;USER&gt;
    &lt;ROW num=&quot;1&quot;&gt;
    &lt;USER_ID&gt;25214&lt;/USER_ID&gt;
    &lt;LOGIN_ID&gt;JDOE&lt;/LOGIN_ID&gt;
    &lt;NAME_LAST&gt;JOHN&lt;/NAME_LAST&gt;
    &lt;NAME_FIRST&gt;DOE&lt;/NAME_FIRST&gt;
    &lt;NAME_MI&gt;Q&lt;/NAME_MI&gt;
    &lt;NAME_FI&gt;A&lt;/NAME_FI&gt;
    &lt;EMAIL&gt;[email protected]&lt;/EMAIL&gt;
    &lt;OFFICE_PHONE&gt;5551212&lt;/OFFICE_PHONE&gt;
    &lt;OFFICE_STREET1&gt;123 Main Street&lt;/OFFICE_STREET1&gt;
    &lt;/ROW&gt; &lt;/USER&gt; 
    ( etc )
    </getAllUserInfoReturn>
    </ns1:getAllUserInfoResponse>
    </soapenv:Body>
    </soapenv:Envelope> 
    

    I need to loop over that and get usernames, ID, rights, etc., but with her looking like that, I have my work cut out for me (I think).  I don't know if there is an easy way to replace the entities in an XML file (the docs seem to be down), and if there is, I don't know about it.

    Any ideas?

    BreakawayPaul wrote:

    I need to loop over that and get usernames, ID, rights, etc., but with her looking like that, I have my work cut out for me (I think).  I don't know if there is an easy way to replace the entities in an XML file

    Assuming that you already have the XML file using something like , then the following single line of code is sufficient:

    <,>"') (, false) >.

    Note, however, that your XML file will then contain an error. The processing instruction.", occurs twice.

  • AS3 returns a string of XML nodes as null...

    I am working on a project that calls and search in an XML spreadsheet that looks like this:

        <Searchtext Wordlookup="john smith">
            <location>$1</location>
            <Name>john smith</Name>
        </Searchtext>

    and he keeps going for about 100 people.

    Now, my flash takes these data and allows the user to click on a TextBox filled beforehand with a name (whose e.target.data.text is combined with the XML using @Wordlookup) or type the name of the person (new corresponding content of the text box to @Wordlookup) which translates the location of this person to light upward (MC is named the same as the location for each node). This effect works perfectly well by using this code:

      var result:String = xmldata.Searchtext.(@Wordlookup == inputTxt.text.toLowerCase()).location.toString();  

    Now I want to do the opposite; Click on a location, and the code will be able to match the name of the movieclip to node my xm - light to the top of this location, location and name of the person in the output text box. Only problem with this Flash apparently thinks a knot in my xml is now a variable which is not set (it should return the name associated with the location in my xml). I looked up and down for a solution, but I can't seem to solve it (this is probably simple, and I go facepalm myself) inducing code error is the following:

      var resultz:String = xmldata.Searchtext.(location.text() == e.target.name).Name.toString();

    And the error produced is as follows: ReferenceError: Error #1065: location Variable is not defined.

    You don't know exactly why this is the case, thank you in advance for any help!

    All your nodes have a node location? If this isn't the case, you might be better off using child ('location').

  • Automatic row height resize on text that contains a floating field

    Hi all

    Hope someone can help out me

    I'll explain my scenario with an example simplified to keep things to-the-point:

    I have a Table with 2 rows and 1 columns. The Row1 cell is text (NOT a text field) that contains a floating field. I have a button on my form that populates the field floating with a string. If the string value that is inserted into the floating field is very long, the text overflows outside of the cell.

    Screenie.png

    It seems that the height of the table row adjusted not dynamically to changes in the length of the text in the cell.

    Any ideas?

    Thank you

    Another way is to click on the cell and then click View > Source XML. You will see something like has highlighted. Remove the attribute of height h = "10mm" completely.

    Kyle

  • No idea how to loop and add the value to the attribute of the xml node?

    I work on a lot of flattening of project using a watched folder.

    I have a process parent to locate the directory and call a sub-process to flatten PDF files.

    I want to write the directory failed to XML.

    If there are several directory failed locations and if I want to add it to the node, he doesn't let me do.

    If I set the Xpath location like/process_data/outputXML/flattenDirectoryRequestMessage/failureFileLocation[x]/@path it gives me invalid character exception. I use 'x' for looping and incrementing.

    If I do not use the [x]. The directory is overwritten.

    No idea how loop and add all the directories failed to attribute of the xml node?

    I understand that you can not browse the xml code to assign the value at each node. Rather you can assign only one time to the node.

    I realized that it is not possible to do it this way. Then concatenate it as strings, and then attach to the xml once.

  • How to set the value of the xml node.

    Hello

    I have the PDF application can be entered by the user using the key. When sending

    I use following code to set the value of the xml node.

    XFA. Data.assignnode ("Employee.ID", "123", 0):

    If its generators of xml as below.

    < employee >.

    < id > 123 / < ID >.

    < / name >

    < / employee >

    Now, I need to generate xml as below.

    < employee id = '123' >

    < / name >

    < / employee >

    So, how together create the id of node as above?

    Thanks in advance.

    Kind regards

    Dhiyane

    Hi Dhiyane,

    You must set contains the property if the node id to "metadata", i.e.;

    xfa.data.assignNode ("employee.id", "123", 0);
    XFA. Data.Employee.ID.Contains = 'metadata ';

    Very awkward, if you have a number of them, in which case you might want to look at using E4X.

    Good luck

    Bruce

Maybe you are looking for

  • Pavilion a6623uk: Incorrect graphics card info. regarding the upgrade from win 10

    Hi try to enter to win 10 update, m/c has the card radeon hd 3400, which shows in the Device Manager and the plug for HP support assistant. The app to win 10, continues to tell me I'm inconsistent because it is not supported by the Nvidia Geforce 615

  • New Apple TV always distorts sound.

    New Apple TV has always distorted sound after 45 to 60 minutes. Cable audio optical is the problem? If so, why Apple does not provide a solution? With more audio systems providing users in this regard, Apple TV will be frustrated.

  • You want to add hard drive XP on my Vista computer.

    I have Vista on my computer and you want to add XP to use an old program. The XP is on a computer sooner I could add the drive to the computer later? Someone said I need to partition the HD on the Vista machine and install XP on it. That doesn't seem

  • Downgraded victory 10-Win 7 - authentication were issues

    I was running widows 7 for many years without any problems. Upgrade to windows 10, some of my applications do not work so I reinstalled windows 7. Now he tells me my windows 7 is an illegal copy. Help!

  • Microsoft Security Essentials - turn

    How do I temporarily stop Microsoft Security Essentials and then turn back on when I choose to do? I am running Win 7 Ultimate 64-bit.