Cannot retrieve the value of the attribute by using ExtractValue

Hello
can't extract the AddressDetails accuracy value using the following syntax:

SELECT extractValue (VALUE (r), ' / answer/cue [1] / Point/coordinates ", namespace),
extractValue (VALUE (r), ' / Response/Placemark[1]/AddressDetails/@Accuracy', namespace)
IN coordinates,
precision
TABLE (xmlsequence (extract (' geocode_xml, ' / kml/response ", namespace))) r;


namespace: = 'xmlns = "http://earth.google.com/kml/2.0" ';

<? XML version = "1.0" encoding = "UTF-8"? >
< kml xmlns = "http://earth.google.com/kml/2.0" >
< response >
< name > 333 THIRD AVE, ANYTOWN, ST 99999 < / name >
< status >
< code > < code > 200
geocode < application > < / request >
< / status >
< benchmark id = "p1" >
< address > 3rd St, Anytown, St 99999, USA < / address >
< AddressDetails precision = "6" xmlns = "urn: oasis: names: tc: ciq:xsdschema:xAL:2.0" >
< country >
< CountryNameCode > U.S. < / CountryNameCode >
< CountryName > USA < / CountryName >
< AdministrativeArea >
St < AdministrativeAreaName > < / AdministrativeAreaName >
< SubAdministrativeArea >
< SubAdministrativeAreaName > some County < / SubAdministrativeAreaName >
< location >
< LocalityName > any city < / LocalityName >
< artery >
< ThoroughfareName > 3rd St < / ThoroughfareName >
< / artery >
< ZipCode >
< PostalCodeNumber > 99999 < / PostalCodeNumber >
< / code >
< / location >
< / SubAdministrativeArea >
< / AdministrativeArea >
< / country >
< / AddressDetails >
< ExtendedData >
< LatLonBox = "46.5846776" North South = "46.5783824" is = '-112.0202820"West ="-112.0366410"/ >
< / ExtendedData >
< point >
coordinates of <>- 112.0281180,46.5815400,0 < / data >
< / point >
< / mark >
< / answer >
< / kml >


Thanks in advance for the help!

You have the part of the question of the namespace which tends to travellers to the top, but you missed the fact that AddressDetails is in a different namespace (default).

Here is an SQL statement, with all hard-coded, which returns the value of the attribute you need. I had to add the namespace prefix so that the parser know which namespace of each element was.

SELECT extractValue(VALUE(r), '/Response/Placemark[1]/Point/coordinates', 'xmlns="http://earth.google.com/kml/2.0"'),
extractValue(VALUE(r), '/ge:Response/ge:Placemark[1]/oa:AddressDetails/@Accuracy', 'xmlns:ge="http://earth.google.com/kml/2.0" xmlns:oa="urn:oasis:names:tc:ciq:xsdschema:xAL:2.0"')
FROM TABLE(xmlsequence(extract(XMLTYPE('


333 THIRD AVE, ANYTOWN, ST 99999

200
geocode


3rd St, Anytown, St 99999, USA
US USA St Some County Any Town 3rd St 99999 -112.0281180,46.5815400,0
'), '/kml/Response', 'xmlns="http://earth.google.com/kml/2.0"'))) r;

Note: If you are on a version that supports XMLTable, I suggest to use. Easy to use, especially if you are using the COLUMNS option to pull data as fields then you need not to use extractValue in the SELECT part. I just made an example on {message identifier: = 3646323}

Tags: Oracle Development

Similar Questions

  • 10gr 2-Sybase15-ORA-28545: cannot retrieve the text of the message from NETWORK/NCR

    Hi all

    I am trying to establish connectivity between Oracle 10 g 2 (Win XP Pro 2002) and Sybase ASE 15.0.2 (Sun Solaris 5.9) by using the transparent gateway for Sybase (TG4SYBS), but encountered the following error. I have looked for a solution quite well in all directions, but so far have been quite unlucky. This is my last resort. I don't really know what I'm doing wrong as I followed the steps of installation and configuration correctly. Please note:
    -Oracle transparent gateway software and database are installed in different homes; and,
    -J' created and tested the ODBC DSN connectivity with the Sybase server.

    The only thing that I have real concern about is the version of the Sybase server 64-bit OS; Windows Oracle server is 32-bit. Are going to count this could be the problem?

    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of CSSTAT


    I am enclosing also any of the configuration system below:

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

    Database server
    ===============

    V Windows XP Professional 2002 SP2

    Oracle Database 10g Enterprise Edition Release 10.2.0.1.0

    Sybase Adaptive Server ODBC Driver 15.00.00.152


    C:\ > echo %path%
    C:\oracle\product\10.2.0\tg_1\bin; E:\OracleHomes\agent10g\jlib; E:\OracleHomes\ag
    ent10g\bin; E:\OracleHomes\oms10g\bin; E:\OracleHomes\oms10g\jlib; C:\Program Files
    Company \Business Objects\BusinessObjects 6\bin\orb\asp\6.0\bin. C:\Program Fi
    les\Business Objects\BusinessObjects Enterprise 6\bin\orb\bin; C:\Program Files\B
    usiness Objects\BusinessObjects Enterprise 6\bin; C:\sybase\DataAccess\OLEDB\dll;
    C:\sybase\DataAccess\ODBC\dll; C:\sybase\Shared\Sybase Central 4.3; C:\sybase\OCS-
    15_0\lib3p; C:\sybase\OCS-15_0\dll; C:\sybase\OCS-15_0\bin; C:\sybase\JS-12_5\bin; C
    : \sybase\ADO.NET\dll; C:\sybase\ODBC; C:\Program WinRAR; C:\Windows\System32;
    C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\sybase\DBISQL\bin

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

    Sybase server
    =============

    Er1min01 of SunOS 5.9 Generic_122300-11 sun4u sparc SUNW, Sun-Fire-V440

    Adaptive Server Enterprise/15.0.2/EBF 14328, P, Sun_svr4, OS 5.8/ase1502/2486/64-b
    IT/FBO/Thursday 24 May 12:18:26 2007

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

    Sybase SQL.ini
    ==============

    [MINSAT]
    Master = TCP, 192.168.1.150, 5002
    Query = TCP, 192.168.1.150, 5002

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

    C:\oracle\product\10.2.0\tg_1 > tg4sybs

    Oracle Corporation - WEDNESDAY SEP 23 2009 02:43:29.406

    Heterogeneous Agent Release 10.2.0.1.0 - Production built with
    Driver for SYBASE

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

    inittg4sybs.ora
    ===============

    # This is an example of initialization file of the agent that contains the HS settings
    # needed for the transparent gateway for Sybase

    #
    # HS init parameters
    #
    HS_FDS_CONNECT_INFO = MINSAT.csstat
    HS_FDS_TRACE_LEVEL = OFF
    HS_FDS_RECOVERY_ACCOUNT = RECOVERY
    HS_FDS_RECOVERY_PWD = RECOVERY
    #HS_FDS_TRANSACTION_MODEL = READ_ONLY

    #
    # Required for Sybase environment variables
    #
    SYBASE the value = "C:\\sybase".

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

    Listener.ora
    ============

    listener.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\listener.ora
    # Generated by Oracle configuration tools.

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oracle\product\10.2.0\db_1)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = csstat)
    (ORACLE_HOME = C:\oracle\product\10.2.0\tg_1)
    (PROGRAM = tg4sybs)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = FH)(PORT = 1521))
    )
    )

    SUBSCRIBE_FOR_NODE_DOWN_EVENT_LISTENER = OFF

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

    tnsnames.ora
    ============

    tnsnames.ora # Network Configuration file: C:\oracle\product\10.2.0\db_1\network\admin\tnsnames.ora
    # Generated by Oracle configuration tools.

    TEMP =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = FH)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = TEMP)
    )
    )

    csstat =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.123.49)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = csstat)
    )
    (HS = OK)
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    )
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

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

    C:\oracle\product\10.2.0\db_1\BIN > lsnrctl status CSSTAT

    LSNRCTL for 32-bit Windows: Version 10.2.0.1.0 - Production on 23-SEP-2009 02:47
    : 10

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

    Connection to (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP)(HOST=192.168.123.49) (PORT = 152
    ((1)) (CONNECT_DATA = (Server = Dedicated) (service_name = csstat))(HS=OK))
    STATUS of the LISTENER
    ------------------------
    Alias LISTENER
    Version TNSLSNR for 32-bit Windows: Version 10.2.0.1.0 - production
    ction
    Start date 23 - SEP - 2009 01:48:54
    Uptime 0 days 0 h 58 min 16 s
    Draw level off
    Security ON: OS Local Authentication
    SNMP OFF
    Listener parameter File C:\oracle\product\10.2.0\db_1\network\admin\listener.o
    RA
    Listener log file C:\oracle\product\10.2.0\db_1\network\log\listener.log

    Summary of endpoints listening...
    (DESCRIPTION = (ADDRESS = (PROTOCOL = tcp)(HOST=FH) (PORT = 1521)))
    Summary of services...
    Service 'OEMREP_XPT' has 1 instance (s).
    'Oemrep' instance, State LOAN, has 1 operation for this service...
    Service 'PLSExtProc' has 1 instance (s).
    Instance of 'PLSExtProc', status UNKNOWN, has 1 operation for this service...
    Service 'TEMPXDB' has 1 instance (s).
    Instance 'temp', State LOAN, has 1 operation for this service...
    Service 'TEMP_XPT' has 1 instance (s).
    Instance 'temp', State LOAN, has 1 operation for this service...
    Service 'csstat' has 1 instance (s).
    Instance of 'csstat', status UNKNOWN, has 1 operation for this service...
    Service 'oemrep' has 1 instance (s).
    'Oemrep' instance, State LOAN, has 1 operation for this service...
    'Temp' service has 1 instance (s).
    Instance 'temp', State LOAN, has 1 operation for this service...
    The command completed successfully

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

    C:\oracle\product\10.2.0\db_1\BIN > tnsping CSSTAT

    AMT Ping Utility for 32-bit Windows: Version 10.2.0.1.0 - Production 23-SEP-2
    009 02:48:12

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

    Use settings files:
    C:\oracle\product\10.2.0\db_1\network\admin\sqlnet.ora


    TNSNAMES adapter used to resolve the alias
    Try to contact (DESCRIPTION = (ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.
    123.49)(PORT = 1521)) (CONNECT_DATA = (SERVER = DEDICATED) (SERVICE_NAME = cssta
    (t)) (t)) (HS = OK))
    OK (20 ms)

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

    SQL > create database link csstat connect to the 'fw' identified by ' * ' using 'csstat ';

    Database link created.

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

    SQL > select * from sys.hs_fds_class;

    FDS_CLASS_NAME
    FDS_CLASS_COMMENTS
    FDS_CLASS_ID

    BITE
    Integrated Test environment
    1

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

    SQL > show parameter global_names;

    VALUE OF TYPE NAME
    global_names boolean FALSE

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

    SQL > select * from SIMSwap@csstat;
    Select * from SIMSwap@csstat
    *
    ERROR on line 1:
    ORA-28545: error diagnosed by Net8 when connecting to an agent
    Cannot retrieve the text of the message NETWORK/NCR 65535
    ORA-02063: preceding 2 lines of CSSTAT

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

    you use the Oracle Listener database in C:\oracle\product\10.2.0\db_1\ to spawn TG4SYBS installed in a different House: C:\oracle\product\10.2.0\tg_1. This works when you specify the full path in the listener.ora to tg4sybs executable file. The section of SID might look like:
    (SID_DESC =
    (SID_NAME = csstat)
    (ORACLE_HOME = C:\oracle\product\10.2.0\tg_1)
    (PROGRAM = C:\oracle\product\10.2.0\tg_1\tg4sybs)
    )

    Then STOP and START the listener and try again.

  • ORA-01124: cannot retrieve the data file 1 - file is in use or recovery

    I'm trying to recover the database in waiting, but it gives the error below.

    ORA-00283: cool cancelled due to errors
    ORA-01124: cannot retrieve the data file 1 - file is in use or recovery, the recovery is already said
    ORA-01110: data file 1: ' I:\ORACLE\QAS\SAPDATA1\SYSTEM_1\SYSTEM. DATA1'

    When I checked in the alert log recovery is not started. and later I hae given ' alter database recover Cancel "and the command to meet with the threshold.

    "media recovery has not started.

    It seems that the recovery was stuck between the two.
    Please advise me how to kill the recovery session that is stuck. because I don't want to bounce the database pending.

    Thanks in advance.

    Dataguard and MRP, you run a script before.

    In a standby scripted, a session to RETRIEVE the DATABASE would an UNTIL clause (SEQUENCE up to THAT most likely). At the end of the recovery at this point (SEQUENCE #), he left and stop at the database.

    In addition, the script is such that when a RECOVERY session is active, another session is not authorized to start. It can loop in pending state or go out and do it again the next scheduled interval.

    Apparently your startup script is not strong enough to prevent another session of RECOVERY to start even though the first is active (or it doesn't have a good up to THAT clause and stop, exit, closing stocks)

    What you have is a custom implementation of a database of pending. Without all the details of the script, the 'blocking' between sessions (to avoid a second RECOVER start when one is already running) etc... We can't really do much to help you.
    Your scripts must be standing with status information. It should be possible for you to discover the 'other' sqlplus session which emanates a DATABASE to RECOVER, but not yet out (p. ex... How about a simple "ps - ef |") grep sql' and ' ps - ef | combination of grep ora"?)

    Hemant K Collette

    Published by: Hemant K Collette on May 29, 2013 17:47

  • Cannot display the page XML cannot display the input XML using the stylesheet XSL, how to fix?

    How can I fix this error code:

    The XML page cannot be displayed

    Cannot view XML input using XSL style sheet. Fix the error and then click the Refresh button, or try again later.

    System error:-2146697211. Error during processing of resources "file:///C:/Documents and Settings/a/desktop/SMART.xslt.

    The operating system is Windows XP Home Edition.  I use browsers IE 8, Safari and Mozilla Firefox.
    I'd never see this error until I installed HDDScan (http://hddscan.com/), a diagnostic utility, to check my hard drive.   The test is a S.M.A.R.T. analysis and produces this error message when you use this software.
    A web site indicates that installing Microsoft. NET Framework can solve this problem.  I already have this class in Add Remove Programs: Microsoft .NET Framework 1.1, Microsoft .NET Framework 2.0 Service Pack 2, Microsoft. NET Framework 3.0 Service Pack 2, Microsoft .NET Framework 3.5 SP1, Microsoft. NET Framework 4 Client Profile.
    Is the problem, a missing software program or a corrupted file?  What is Microsoft. NET Framework?  I use selective with most of the disabled items in the services (except hide all Microsoft) and start more disabled under Startup.  Is there something that needs to be checked to activate a service or start to correct this error message?
    How to solve system 2146697211 errors: cannot display page XML cannot display the XML input using the XSL stylesheet?

    Hello

    Your Windows XP question is more complex than what is generally answered in the Microsoft Answers forums. Please post your question in the MSDN forum. You can follow the link for your question.

    http://social.msdn.Microsoft.com/forums/en-us/iewebdevelopment/threads

    Hope the helps of information.

  • Cannot retrieve the Portege R100 by using the recovery CD

    I replaced the HARD drive on my R100 not having the original. Thank you to help on the forum, I managed to solve a CDROM with a PCMCIA connector.

    I got through the recovery screen and choose option 1 - retrieve the entire disk. He got a disc of part way through 1 when he did not play a file. I then ran it again, but the selected option 2 - Toshiba Recovery utility and it started and then failed with the error - "cannot open TOSH_REC. COMMITTED AN ERROR."

    Where else?

    Thank you

    Ian

    Hello

    Have you replaced it with all new HARD drive? It's very strange question and if the HARD drive is nine something like that shouldn't happen. You have the FDD to check the HDD with FDISC? Please use the floppy drive and boot the disk to check the new HARD drive.

    Somehow, I feel that there is something wrong with this new HARD drive.

  • ACS v5.2 - cannot add the attribute enumeration to aggravate the condition

    Hello

    I created an internal user attribute and the attribute enumeration type so that only certain values can be selected. I am trying to apply this attribute to a composed State. However, when I select the value of the enumerator of the compound State none of the configured values display in the window pop up. (It is easier to explain with screenshots.). Is there a way to do this? Any advice would be appreciated.

    Thank you very much

    Dave

    I've recreated your problem both in ie and firefox. I tried to remove the spaces from the listed strings, but it did not help

    Note that the enuemrated conditions work for simple conditions. It's when customize you the table you select CAR as a condition; instead of using a compound conditon.

    I found a CDETS for this question:

    CSCtg51846: Enum values do not appear in generally compound conditions

  • Mavericks 10.9.1 with Fusion 5.0.4 cannot retrieve the kernel symbols

    I used my VM yesterday and opened my laptop today for the following errors.

    Failed to retrieve the kernel symbols

    Failed to initialize the device monitor

    Cannot find a valid peer to connect to


    Here are the steps of troubleshooting, I found other posts.

    uname - a

    Darwin private-mbp-2 13.0.0 Darwin Kernel Version 13.0.0: Sun Sep 19 22:22:27 CDT 2013; root:XNU-2422.1.72~6/RELEASE_X86_64 x86_64

    system_profiler SPSoftwareDataType

    Software:

    Presentation of the system software:

    The system version: OS X 10.9.1 (B 13, 42)

    Kernel version: 13.0.0 Darwin

    Boot volume: Macintosh HD

    Boot Mode: Normal

    Name of the computer: MacBook Pro of Rob

    Username: Rob

    Ensure the virtual memory: enabled

    Since the start time: 05:25

    ls-l /mach_kernel


    -rwxr-xr-x @ 1 root wheel 0 18 Feb 09:35 /mach_kernel


    I noticed that the mach_kernel was missing and I touch /mach_kernel.


    Any suggestions on how to get this working again?

    beyonder74 wrote: How do I replace the mach_kernel file?

    If you use Time Machine you could restore it from there, but you will first need to use the following command in a Terminal to show hidden system files.  Tip: Copy and paste the commands vs type!

    write QLEnableXRayFolders AppleShowAllFiles TRUE; Killall Finder

    Then, go to Time Machine and restore it and use later...

    write QLEnableXRayFolders AppleShowAllFiles FALSE; Killall Finder

    To hide hidden system files.

    If you do not use the Time Machine , normally we can (re) install the latest Combo update to restore it but there wasn't one, but for OS X 10.9 Mavericks so you'll need to get a copy of another OS X 10.9.0 or 10.9.1 install as it is the same in both.

    Worst case scenario, take a look on: OS X Mavericks: reinstall OS X

  • How to read the value of the attribute XML using DBMS_XMLSTORE

    the following xml data

    + < ROWSET > +.
    + < ROW > +.
    + < > 2290 EMPNO < / EMPNO > +.
    + < SAL > 2000 < / SAL > +.
    + 31 December 1992 of < HIREDATE > < / HIREDATE > +.
    + < TYPE > +.
    + < ENO > 123456 < / ENO > +.
    + attr_name < ENAME > < / ENAME > +.
    + < / TYPE > +.
    + < / ROW > +.
    + < / LINES > +.

    The above XML data stored underneath table of the object using DBMS_XMLSTORE

    CREATE or REPLACE TYPE typ_dummy AS OBJECT
    (
    ENO NUMBER,
    Ename VARCHAR2 (100)
    );

    CREATE TABLE EMP
    (
    EmpNo VARCHAR2 (25).
    SAL NUMBER,
    HireDate DATE,
    Typ typ_dummy
    );


    DECLARE
    insCtx DBMS_XMLStore.ctxType;
    lines NUMBER;
    xmlDoc CLOB: =.
    ' < ROWSET >
    < LINE number = "1" >
    < SAL > 1800 < / SAL >
    < > 7369 EMPNO < / EMPNO >
    < HIREDATE > 27 August 1996 < / HIREDATE >
    < / ROW >
    < ROW >
    < > 2290 EMPNO < / EMPNO >
    < SAL > 2000 < / SAL >
    < HIREDATE > 31 December 1992 < / HIREDATE >
    < TYPE ENO = ENAME "123456" = "attr_name" / >
    < TYPE >
    < ENO > 123456 < / ENO >
    attr_name < ENAME > < / ENAME >
    < / TYPE >
    < / ROW >
    < / LINES > ';
    BEGIN
    insCtx: = DBMS_XMLStore.newContext ('emp'); -be saved context
    lines: = DBMS_XMLStore.insertXML (insCtx, xmlDoc);
    DBMS_XMLStore.closeContext (insCtx);
    END;



    but I don't know if the XML contains the attribute values for particular node means how to insert in the table (assuming the creation of the structure of the table)


    + < ROWSET > +.
    + < ROW > +.
    + < > 2290 EMPNO < / EMPNO > +.
    + < SAL > 2000 < / SAL > +.
    + 31 December 1992 of < HIREDATE > < / HIREDATE > +.
    * + < TYP ENO = ENAME "123456" = "attr_name" / > + *.
    + < / TYPE > +.
    + < / ROW > +.
    + < / LINES > +.

    You can declare the type of object like this:

    CREATE OR REPLACE TYPE typ_dummy AS OBJECT (
      "@ENO"   NUMBER
    , "@ENAME" VARCHAR2(100)
    );
    /
    

    Oracle will know that XML attributes must be mapped to attributes of the object.

    But personally, I would not use DBMS_XMLSTORE:

    INSERT INTO emp (empno, sal, hiredate, typ, eno, ename)
    SELECT empno, sal, hiredate, eno, ename
    FROM XMLTable('/ROWSET/ROW'
           passing xmltype(xmlDoc)
           columns empno    varchar2(25)  path 'EMPNO'
                 , sal      number        path 'SAL'
                 , hiredate date          path 'HIREDATE'
                 , eno      number        path 'TYP/@ENO'
                 , ename    varchar2(100) path 'TYP/@ENAME'
         )
    ;
    
  • Cannot retrieve the data by binary storage by default for XML 11 g

    Oracle 11.2

    All,

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

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

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

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

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

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

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

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

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

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

    I appreciate any help in advance.

    Thank you
    Shawn

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

    Probably a problem with your client tool.

    It works for me:

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

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

  • Trigger cannot retrieve the user

    Hello

    I am trying to retrieve the current user to double to fill in a created_by at my new table column. Unfortunatelly the value I receive in the trigger is "ANONYMOUS". When I execute the same statement on the SQL command line, I get the correct value, which is the ADM user, I created in order to develop my application.

    TKS in advance

    Hello

    If you like having Apex application user name use below button

    v('APP_USER')
    

    BR, Jari

  • Cannot retrieve the Satellite to factory settings after installing Win XP

    I was running windows recovery then I chose 'delete all data... '. "something like that.
    Then in the Middle by mistake I turned off the system.

    After that, I tried to start windows so was in error "missing operating system". I managed to install WINDOWS XP, so I could access HDD RECOVERY but nothing happened.

    I tried pressing the "F8" key and also the '0' key when the computer starts to "toshiba" logo but it is still not send me any option to get my computer back to windows vista or you can say "out of the box.

    One important thing is, while installing windows XP its show me this HARD drive recovery exist and 973 MB is free off 5665 MB. This means that I have still all windows and the drivers on the HARD drive. Now please help to return normal system recovery or BOX STATE.

    > After I tried to start windows so was in error "missing operating system". I managed to install WINDOWS XP, so I could access HDD RECOVERY but nothing happened.

    The installation of Win XP has damage and remove the Boot Manager and options preinstalled by Toshiba and backed by Toshiba picture.

    This means that if you will be unable to retrieve the device using the drive HARD recovery option.

    You could retrieve the device back to factory settings using only the Toshiba recovery disc! But I guess that you didn't create this disk is good?

    Well, in this case, you can order this disc from here:
    https://backupmedia.Toshiba.EU/landing.aspx

    Welcome them

  • Cannot retrieve the songs to a cd error "Windows Media Player cannot find the file. If you try to read, burn or sync an item that is in your library, the element can point to a file that has been moved, renamed, or deleted. »

    Oriiginal title: can not extract the songs from a cd

    I have problems ripping the songs from a cd in my windows media player library. Whenever I click "Rip CD" this message "Windows Media Player cannot find the file. If you try to read, burn or sync an item that is in your library, the element can point to a file that has been moved, renamed, or deleted. "How can I fix it?

    Hi littleprincess54,

    (1) have you checked with diffΘrents CDs?

    (2) since when are you facing this problem?

    Method 1: Run the troubleshooter in Windows Media Player settings and check if that makes a difference

    Open the troubleshooting Windows Media Player settings Troubleshooter

    http://Windows.Microsoft.com/en-us/Windows7/open-the-Windows-Media-Player-settings-Troubleshooter

    Method 2: Change the location of Rip. see the steps mentioned in the link

    To change rip settings in the Options dialog box

    Method 3: You can follow the steps mentioned in the link below that relates to a similar question

    Windows Media Player error C00D1197

    http://Windows.Microsoft.com/en-us/Windows7/C00D1197

    Thanks and greetings
    Ajay K
    Microsoft Answers Support Engineer
    ***************************************************************************
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Dell v715w - cannot retrieve the application list from your computer

    I have a new desktop WIN7 64 bit Voastro (replaced a dimension on XP) I can't use the printer control panel to scan.  I get is unable to retrieve the list of applications on your computer on the screen of the printer.

    Have reinstalled the printer at least 3 times now with different downloaded drivers from the original printer disk

    I've seen a lot of posts on here for similar problems, but none seems to have a definitive solutiuon for this problem.

    Any help much appreciated!

    Thank you - sdgconc

    Hello

    Thanks for the reply.

    Please disable the firewall on the computer and check if the printer works fine.

    If parsing is successful after you turn off the firewall, please add printer Dell as an exception to the firewall.

    If the search was unsuccessful, please follow the steps below:

    Click Start > Control Panel > devices and printer > printer right click and select Properties.

    Select the Ports tab in the printer properties window, and then configure the Port.

    Printer IP appears in the Port configuration window.

    Enter the printer's IP address in the browser to log on to the website of the printer.
     
    Click on Configuration and management of home network analysis.

    Then click on start > all programs > Dell printers > the home printer settings tab > network computer name.

    Remove the scan to PC host.

    Please let me know if you use printer wireless or USB cable.

    In case you use wireless printer, try it please I scan a document with the printer connected via USB cable.

    Thank you & best regards
    Mustapha S
    #iworkfordell

  • Cannot sort the results table using datetime attribute

    I use short 3.1. My result table disappears when I try to sort by using a date/time attribute. I also saw him sometimes throw me an error: in ORDER BY clause: ORDER BY clauses may refer only to the attributes set in the same statement. I don't have any problem sorting the same point of view on a list of result of the datetime attribute. What could be wrong?

    I installed the provided patch support of oracle and it works. My studio version was 3.1.14220. After connection, the version is 3.1.18915.

  • Split 13 x 2 PCs 13-m110dx: cannot perform the system recovery using a USB flash drive

    I just bought a Split 13 x 2 13-m110dx PC that came with Windows 8. I have upgraded the OS to 8.1 and made a copy of the recovery Partition using a USB flash drive, and deleted the recovery of the PC disk that I learned that I could do. However, when I tried to retrieve OEM provided using the USB flash drive by following the directions at creation and use of a recovery of Microsoft USB drive (Windows 8) "System Recovery" was not available to the title of "troubleshooting." I tried to tell it to boot from the USB, but it askes me to insert the support of windows or other media, but rejects the flash player. What do I do now because I have not all discs?

    To use the Flash created to restore the system to the factory settings, see "Recovering from a USB flash drive" appearing in the following link:

    HP computers - running a HP System Recovery (Windows 8)
    HP System Recovery allows to reinstall or restore a HP with Windows 8 computer to the way it was at a previous time.

Maybe you are looking for