create / relational view received the error

Hi expert,

I'm in Oracle Enterprise Manager 11 g 11.2.0.1.0.
SQL * more: Production of release 11.2.0.1.0 killed him Feb 22 11:40:23 2011

I have an .xml file in a table of xmltype: DOCUMENT

<? XML version = "1.0" encoding = "UTF-8"? > <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
"< document xmlns =" "urn: hl7 - org:v3" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" & gt;
< root id = "5ca4e3cb-7298-4948-8cc2-58e71ad32694" / >
< code = '51725-0' codeSystem = "2.16.840.1.113883.6.1" displayName = "REGISTRATION OF ESTABLISHMENTS" / >
< effectiveTime value = "20100730" / >

........................................................
< / contactParty >
< / assignedOrganization >
< performance >
< actDefinition >
< code = "C43360" codeSystem = "2.16.840.1.113883.3.26.1.1" displayName = "manufacturing" / >
< / actDefinition >
< / performance >
< / assignedEntity >
< / assignedOrganization >
< / assignedEntity >
< / representedOrganization >
< / assignedEntity >
< / author >
< item >
< structuredBody / >
< / component >
< / document >

I tried to create a relational view using the code below.
I got following error:
ERROR on line 1:
ORA-19276: XPST0005 - XPath step specifies an invalid element/attribute name:
(author ='urn: hl7 - org:v3')

y does it can someone help me.
Thank you!

Published by: cow on March 18, 2011 14:14

Hello

You have the wrong Xpath by passing the XML fragment to the 2nd XMLTable.

SELECT master.registrationID, master.code, detail.*
FROM DOCUMENT doc,
     XMLTable(
      XMLNamespaces(default 'urn:hl7-org:v3'),
      '/document'
      PASSING doc.OBJECT_VALUE
      COLUMNS
        registrationID VARCHAR2(50) PATH 'id/@root',
        code           VARCHAR2(10) PATH 'code/@code',
        orgID          NUMBER(10)   PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/id/@extension',
        orgROOT        VARCHAR2(15) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/id/@root',
        orgNAME        VARCHAR2(50) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/name',
        orgADDRstreet  VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/streetAddressLine',
        orgADDRcity    VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/city',
        orgADDRstate   VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/state',
        orgADDRzip     VARCHAR2(15) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/postalCode',
        orgADDRcountry VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/addr/country',
        orgPHONE       VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/telecom[1]/@value',
        orgEMAIL       VARCHAR2(40) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/telecom[2]/@value',
        contactPerson  VARCHAR2(20) PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/contactParty/contactPerson/name',
        assignedEntity XMLTYPE      PATH 'author/assignedEntity/representedOrganization/assignedEntity/assignedOrganization/assignedEntity'
     ) master
   , XMLTable(
      XMLNamespaces(default 'urn:hl7-org:v3'),
      '/assignedEntity'
      PASSING master.assignedEntity
      COLUMNS
        RSN_XML_POS     FOR ORDINALITY,
        orgID2          NUMBER(10)   PATH 'assignedOrganization/id[1]/@extension',
        orgROOT2        VARCHAR2(15) PATH 'assignedOrganization/id[1]/@root',
        orgID2_d        NUMBER(10)   PATH 'assignedOrganization/id[2]/@extension',
        orgROOT2_d      VARCHAR2(20) PATH 'assignedOrganization/id[2]/@root',
        orgNAME2        VARCHAR2(50) PATH 'assignedOrganization/name',
        orgADDRstreet2  VARCHAR2(20) PATH 'assignedOrganization/addr/streetAddressLine',
        orgADDRcity2    VARCHAR2(20) PATH 'assignedOrganization/addr/city',
        orgADDRstate2   VARCHAR2(20) PATH 'assignedOrganization/addr/state',
        orgADDRzip2     VARCHAR2(15) PATH 'assignedOrganization/addr/postalCode',
        orgADDRcountry2 VARCHAR2(20) PATH 'assignedOrganization/addr/country',
        orgADDRstreet3  VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/streetAddressLine',
        orgADDRcity3    VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/city',
        orgADDRstate3   VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/state',
        orgADDRzip3     VARCHAR2(15) PATH 'assignedOrganization/contactParty/addr/postalCode',
        orgADDRcountry3 VARCHAR2(20) PATH 'assignedOrganization/contactParty/addr/country',
        orgPHONE3       VARCHAR2(20) PATH 'assignedOrganization/contactParty/telecom[1]/@value',
        orgEMAIL3       VARCHAR2(40) PATH 'assignedOrganization/contactParty/telecom[2]/@value',
        contactPerson3  VARCHAR2(20) PATH 'assignedOrganization/contactParty/contactPerson/name'
     ) detail
;

Tags: Database

Similar Questions

  • create a relational view received the error: ORA-19276: XPST0005 - XPath step Brown

    Hi expert,
    I'm using Oracle XML DB 11.2.0.1.0.
    I'm schema successfully registered and generated a DOCUMENT table.
    I have succfully inserted 12 at this table .xml files.

    SQL > SELECT OBJECT_VALUE FROM document;

    OBJECT_VALUE
    ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
    <? XML version = "1.0" encoding = "UTF-8"? > <? XML-stylesheet href = "http://www.accessdata.fda.gov/spl/stylesheet/spl.xsl" type = "text/xsl"? >
    "< document xmlns =" "urn: hl7 - org:v3" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" xsi: schemaLocation = "urn: hl7 - org:v3 http://localhost:8080/home/DEV/xsd/spl.xsd" & gt;
    < root id = "03d6a2cd-fdda-4fe1-865d-da0db9212f34" / >
    < code = '51725-0' codeSystem = "2.16.840.1.113883.6.1" displayName = "REGISTRATION OF ESTABLISHMENTS" / >
    < / component >
    < / document >

    then I tried to create a relational view of create base on inserted one .xml file I got the error:

    ERROR at line 3:
    ORA-19276: XPST0005 - step XPath specifies an invalid element/attribute name: (text)

    someone he knows what wrong?

    Thank you very much!

    Cow

    Published by: cow on February 15, 2011 20:58

    Published by: cow on February 21, 2011 06:59

    Hello

    You declare the default namespace of the document:

    ...
    XMLTable(
      XMLNamespaces(default 'urn:hl7-org:v3'),
      '$p/document'
      PASSING doc.OBJECT_VALUE as "p"
      COLUMNS
    ...
    
  • We try to update the software on a computer and continue to receive the error 1719:

    We try to update the software on a computer and continue to receive the Error Message 1719: "Installer cannot access the Windows service". We tried to repair Windows install several times by the cancellation of registration registration without success. Windows Installer continues to block the update of the program

    We tried to install a new version of Kaspersky and have met the above problems.

    Hi Jug,

    Thanks for posting the question on the Microsoft Community Forums. I understand that while trying to update the software, you get an error 1719: "could access the Windows service install.

    This question is can be caused due to:

    You install or remove a program that uses Microsoft Installer Service to install a program on your computer. The Windows Installer Service is not running. The Windows Installer registry settings may be damaged or wrong.

    I suggest you check out the link to the troubleshooting steps.

    Error "The Windows Installer could access the Service" when you install or update programs on Windows 7 or Windows Vista.

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

    WARNING:

    To do: Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems can occur if you modify the registry incorrectly. Therefore, make sure that you proceed with caution. For added protection, back up the registry before you edit it. Then you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click on the number below to view the article in the Microsoft Knowledge Base:

    322756 http://windows.microsoft.com/en-us/windows-vista/Back-up-the-registry

    How to back up and restore the registry in Windows.

    If still the problem persists after you perform the steps of troubleshooting from the link and if you have questions related to Windows, please do not hesitate to answer us, we will be happy to help you.

    Thank you.

  • Receive the error message "the instruction at"0 x 00424590"referenced memory at"0 x 00000004", the memory could not be"written"." Error is received before the Windows logon prompt

    Receive the error referenced memory before you receive the logon prompt Windows session during the boot process.  Have replaced the RAM on the computer.  Windows Xp SP3.

    If anyone can identify the update that they think that may be the cause of the problem, you can navigate to the uninstall folder and determine what files have been updated.  If they can not start (except in the Recovery Console), you can also sort updates the date by using the dir command in the folder c:\windows (all $NtUninstall records).

    Problem is who writes all updates with Patch Tuesday comes around (say... it's today!-be prepared for positions "broken Windows my computer updates" start coming!).

    For example:

    When you install an update, first installation makes a copy of the files he wants to replace in the $ $NtUninstallKBnnnnnn... folder.

    That's why you can uninstall the update later.  Running uninstall the update will sometimes remove the updated files, then copy the original return files.  Sometimes uninstalling copy just the original preupdate on top of the most recent files.  It can also remove some registry keys, so Windows Update do not think you have more (look at the spuninst.inf file).

    Look at this update of security for example (KB950762) that updates c:\windows\system32\drivers\rmcast.sys:

    If you have installed, it will create this folder:

    c:\windows\$NtUninstallKB950762$

    You will have the front update file c:\windows\system32\dllcache\rmcast.sys in this folder since the installation of the update makes a copy of the original file for you.

    Then look at the file spuninst.txt spuninst folder and you will see what will happen if you need to uninstall the update:

    DEL "c:\windows\$hf_mig$\kb950762\sp3qfe\rmcast.sys".
    COPY 'C:\WINDOWS\$NtUninstallKB950762$\rmcast.sys' 'c:\windows\system32\dllcache\rmcast.sys '.
    COPY 'C:\WINDOWS\$NtUninstallKB950762$\rmcast.sys' 'c:\windows\system32\drivers\rmcast.sys '.
    COPY 'C:\WINDOWS\$NtUninstallKB950762$\spuninst\spuninst.txt' 'C:\WINDOWS\$NtUninstallKB950762$\spuninst\spuninst.tag '.

    In this case, uninstalling just copy the original file on top of the files that have been applied in the update, the spunint.inf updates registry tips and that's all.

    Notice that it also replaces the file in the dllcache folder too - c:\windows\system32\drivers\rmcast.sys is one of the 3498 drop that PAM cares everything (it's number 2500 in the list).  In dllcache files are backup files.

    If you were to access your drivers folder and rename c:\windows\system32\drivers\rmcast.sys to rmcast.lem, almost before you can Flash the 'missing' file will be replaced with the copy in the dllcache folder and you will see this in the event log:

    Event type: Information
    Event source: Windows File Protection
    Event category: no
    Event ID: 64002
    Description:
    File replacement was attempted on the protected system file c:\windows\system32\drivers\rmcast.sys. This file was restored to the original version to maintain system stability. The file version of the system file is 5.1.2600.5598.

    It is WFP in action and this means that WFP is working!

  • Adobe Player/Flash receives the error notice that he not use 32-bit 64-bit

    problems when you try to view things through Adobe Player/Flash receives the error notice that it uses 32-bit 64-bit not, I try to follow the instructions how to fix problem with on any what success iohow to use

    Help please, problem with the Windows Vista, 64-bit computer.

    Whenever I want to display items through opinion of get Adobe Player/Flash that he not use 32 bits 64 bits, I try to follow the instructions.

    I'd appreciate it, step by step instructions how to solve the problem, cannot view images, videos, etc. via internet.

    Thank you

    Marty 720

    http://social.answers.Microsoft.com/forums/en-us/InternetExplorer/thread/babaa5f8-FF06-4EA2-aef6-a9416d65f981

    Read all the foregoing by PA bear MVP.

    See you soon.

    Mick Murphy - Microsoft partner

  • Unable to save the Page as that received the error "ga.js could not be saved, because the source file could not be read." Try again later or contact the server administrator.

    Unable to save the Page as that received the error "... ga.js could not be saved, because the impossible source file read try again later, or contact the server administrator.

    You have installed the Ghostery add-on or something similar?
    It can block Google analytic and .js file could not be read.

  • reformatted my mac pro. copied from iPhoto from the external backup drive. received the error message saying lack of theme fonts. removed the app to be able to reinstall. but my app store it shows as installed. How I install it again.

    reformatted my mac pro. copied from iPhoto from the external backup drive. received the error message saying lack of theme fonts. removed the app to be able to reinstall. but my app store it shows as installed. How I install it again. the deleted copy is missing in the trash folder too.

    Unplug your backup disk, restart, and try again.

  • Receive the error without link, download of Civ III with steam.

    Original title: problems to download civ iii with steam

    haven't bought civ 3 steam started to download then received the error no support for windows connection saying steam is not compatible

    Hi Duncanostridge,

    1 Windows operating system you are using?

    2. What is the full error message that you receive?

    3. what version of Civ 3 do you use?

    4. are you facing issues to download the installation for the game files or you use a disk?

    5. If download you the installation files and receive the error, then when you download the files/game of?

    You can check with the technical support of Steam on the issue.

    Steam support

    Troubleshooting connection problems

    Troubleshooting: Specific error Messages

    If you have problems with compatibility, you try to install the game in compatibility mode and check if that helps.

    To run any application in compatibility mode, see the article:

    Make older programs in this version of Windows

  • I can't send or receive emails using Windows Live Mail. Receive the error code 4402. I can send and receive email on my hotmail account.

    I can't send or receive emails from Windows Live Mail. Receive the error code 4402. I can send and receive emails from my Windows Live hotmail account. In Windows Live Mail, it also says my server is an http / imap server. Can it be replaced by a pop3 server, so, how? Thank you

    Well, took me a few hours and without the help of a person (TIP!), I've fixed it. Remove the live mail client account and re-apply / restore the account. Solves what seems to be a sync error. -19 October 2011

  • I am trying to cancel my hotmail account, but continue to receive the error one message or several paid services on my account must be cancelled everything first.

    I am trying to cancel my hotmail account, but continue to receive the error one message or several paid services on my account must be cancelled everything first.  I am not and have never been subscribed to all the services, I have a free account.  No one knows what to do to cancel the account?

    original title: I can't cancel my hotmail account

    Here is an article explaining how to avoid the trap of "paid services" during the closing of a Hotmail account: How to close a Hotmail account

    Noel

  • When you install an automatic update. I received the error code 652. try three times. Always code error 652. She strives to update of Miscrosoft Silverlight (KB2164913) need help.

    When you install an automatic update. I received the error code 652. Have tried three times, always the error code 652. She tries to Miscrosoft Silverlight Update. need help

    Hello

    ·        Remember to make changes to the system?

    Follow the steps mentioned below.

    Step 1:

    There may be some third-party software that runs in the background, I suggest you do a clean boot and check. To perform a clean boot follow the steps mentioned in the link given below.

    How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7

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

    Note: Once you have finished installing, follow step 7 to start the computer in normal startup.

    Step 2:

    Reset windows update components and check. Follow the steps mentioned in the article below.

    How to reset the Windows Update components?

    http://support.Microsoft.com/kb/971058/en-us

    Step 3:

    See the article mentioned below.

    Description of the update for Silverlight: September 1, 2010

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

    To get help after your query in the Microsoft Silverlight Forums. Click on the link below.

    http://forums.Silverlight.NET/forums/

    Thanks and regards.

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

  • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    Ideas:

    • When you install the 2007 Microsoft Office Suite Service Pack 2 (SP2), I still received the error code 646... I tried to download the RegCure as advised, but the problem still exists... Please help me with this problem... Thank you

    I tried to download the RegCure as advised, but the problem still exists...

    Who advised you to 'download... '. RegCure? Doing so could only worse issues! If you ever think that your registry database must be cleaned, repaired, boosted or optimized (it isn't), read http://aumha.net/viewtopic.php?t=28099 and draw your own conclusions.

    See http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/6e716883-7af4-4a9f-8665-2f4dd57eee8d ~ Robear Dyer (PA Bear) ~ MS MVP (that is to say, mail, security, Windows & Update Services) since 2002 ~ WARNING: MS MVPs represent or work for Microsoft

  • I can't install Service Pak 2 for Windows Vista. I received the error code 0 x 80070490, which has a link on the home page, but it is not working properly and it took me nowhere. Help!?

    Install Windows Vista Service Pak 2 upgrade

    I received the error code 0 x 80070490, which has a link on the home page, but it is not working properly and it took me nowhere.

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

    You receive an error code "0 x 80070490" when you use Microsoft Update or Windows Update Web sites to install updates

    https://support.Microsoft.com/OAS/default.aspx?PRID=13014&Gprid=582034&St=1

    Free unlimited installation and compatibility support is available for Windows Vista, but only for Service Pack 2 (SP2). This support for SP2 is valid until February 26, 2010.

    It comes with Vista, upgrade install and activate Forum.

    You will get the best help for any problem of Update/Service Pack update Vista Forum; the link below:

    http://social.answers.Microsoft.com/forums/en-us/vistawu/threads

    When you repost here, kindly include the Error Codes, and exactly what is happening when you try to update.

    In this way, you will receive the best help.

    See you soon.

    Mick Murphy - Microsoft partner

  • Receive the error code 646__in installation KB973709, KB972581 KB 974234

    Receive the error code 646

    in the installation of KB973709
    KB972581
    KB974234

    OK... I had the same problem with the download of the 2007 Microsoft security updates. When I tried to install updates, I receive error 646. I finally solved my problem by going to the Download Center on Microsoft and I install manually.

    Here are the steps that I took... which I think should work:

    (1) go to the Microsoft Download Center: http://www.microsoft.com/downloads/en/default.aspx
    (2) look for each update code that begins with the letters "KB" and followed by a set of numbers (i.e. KB974234)
    3) click on the link for the download and then click on download and run. I think you have to accept an agreement, then click on continue or OK
    4) repeat for all downloads that you can not install
    (5) run Microsoft Update new and click search the updates and if updates have been installed successfully, they should no longer appear in the updates that must be installed.

    I don't know if it is not relevant or if it helped me succeed to install updates manually, but before I manually installed my updates I followed the instructions David_O posted under this thread http://social.answers.microsoft.com/Forums/en-US/vistawu/thread/f3390e74-9961-4aae-8a05-554c1a9cf1a2?prof=required&lc=1033 . I suggest that first of all try to download manually by following my directions. If it does not, then it's a possibility instructions of David resolved an issue that allowed me to download them manually disable Microsoft downloads site.

    I can't believe all the research and the suggestions of the technicians did not work... sometimes your own research is the best!

    I hope this helps! Good luck!

  • Receive the error code 0 x 643 trying to update. Not sure why they don't is not loading?

    Receive the error code 0 x 643 trying to update. Not sure why they don't is not loading? Tried to look at the code but nothing helped. Any suggestions?

    You can watch the following article to see if this will help with the error 80070643.

    http://Windows.Microsoft.com/en-us/Windows-Vista/Windows-Update-error-80070643>

    UTC/GMT is 15:50 on Sunday, August 19, 2012

Maybe you are looking for