XML request error

Hi all

If executed under request it returns the lines.

with xml_test

as

(

Select xmltype (')

< ROOT >

NASA < NAME_OF_THE_COMPANY > < / NAME_OF_THE_COMPANY >

< DETAILED_DATA_ENTERED VALUE = 'test' >

< TYPES_OF_FINANCIALS VALUE = "Checked" >

< FY_ENDED_DD_MM_YY VALUE = 'Saturday, March 31, 2012' >

< OPERATING_MONTHS VALUE = "12" >

< PROFIT_AND_LOSS_STATEMENT VALUE = "" >

< TOTAL_REVENUE VALUE = "6.00" >

< REVENUE_FROM_OPERATIONS VALUE = "5.00" >

< GROSS_DOMESTIC_REVENUE VALUE = "3.00" >

< GROSS_REVENUE_MANUFACTURING > 1,00 < / GROSS_REVENUE_MANUFACTURING >

< GROSS_REVENUE_SERVICES > 1,00 < / GROSS_REVENUE_SERVICES >

< GROSS_REVENUE_TRADING > 1,00 < / GROSS_REVENUE_TRADING >

< / GROSS_DOMESTIC_REVENUE >

< GROSS_EXPORT_REVENUE VALUE = "3.00" >

< GROSS_REVENUE_MANUFACTURING > 1,00 < / GROSS_REVENUE_MANUFACTURING >

< GROSS_REVENUE_SERVICES > 1,00 < / GROSS_REVENUE_SERVICES >

< GROSS_REVENUE_TRADING > 1,00 < / GROSS_REVENUE_TRADING >

< / GROSS_EXPORT_REVENUE >

< EXCISE_DUTY > 1,00 < / EXCISE_DUTY >

< / REVENUE_FROM_OPERATIONS >

< OTHER_OPERATING_INCOME > 1,00 < / OTHER_OPERATING_INCOME >

< / TOTAL_REVENUE >

< TOTAL_EXPENSES VALUE = "15.00" / >

< COST_OF_RAW_MATERIALS VALUE = "2.00" >

< ANY > 1,00 < / IMPORTED >

< Aboriginal PEOPLE > 1,00 < / Aboriginal PEOPLES >

< / COST_OF_RAW_MATERIALS >

< / PROFIT_AND_LOSS_STATEMENT >

< / OPERATING_MONTHS >

< / FY_ENDED_DD_MM_YY >

< / TYPES_OF_FINANCIALS >

< / DETAILED_DATA_ENTERED >

(< / ROOT > ') double col1

)

SELECT OUTPUT.*

OF xml_test t

, XMLTABLE ('. / ROOT')

PASSAGE t.col1

COLUMNS

PATH OF VARCHAR2 (75) OF NAME_OF_THE_COMPANY '. / NAME_OF_THE_COMPANY',

PATH OF VARCHAR2 (75) OF DETAILED_DATA_ENTERED '. / DETAILED_DATA_ENTERED/@VALUE',

PATH OF VARCHAR2 (75) OF TYPES_OF_FINANCIALS '. / DETAILED_DATA_ENTERED/TYPES_OF_FINANCIALS/@VALUE',

PATH OF VARCHAR2 (75) OF FY_ENDED_DD_MM_YY '. (/ DETAILED_DATA_ENTERED/TYPES_OF_FINANCIALS/FY_ENDED_DD_MM_YY/@VALUE') EXIT;

Output:

NAME_OF_THE_COMPANY DETAILED_DATA_ENTERED TYPES_OF_FINANCIALS FY_ENDED_DD_MM_YY

=========================================================================================

Test of NASA checked Saturday 31 March 2012

If you run the same query with additional XML data, it throws error.

with xml_test

as

(

Select xmltype (')

< ROOT >

NASA < NAME_OF_THE_COMPANY > < / NAME_OF_THE_COMPANY >

< DETAILED_DATA_ENTERED VALUE = 'test' >

< TYPES_OF_FINANCIALS VALUE = "Checked" >

< FY_ENDED_DD_MM_YY VALUE = 'Saturday, March 31, 2012' >

< OPERATING_MONTHS VALUE = "12" >

< PROFIT_AND_LOSS_STATEMENT VALUE = "" >

< TOTAL_REVENUE VALUE = "6.00" >

< REVENUE_FROM_OPERATIONS VALUE = "5.00" >

< GROSS_DOMESTIC_REVENUE VALUE = "3.00" >

< GROSS_REVENUE_MANUFACTURING > 1,00 < / GROSS_REVENUE_MANUFACTURING >

< GROSS_REVENUE_SERVICES > 1,00 < / GROSS_REVENUE_SERVICES >

< GROSS_REVENUE_TRADING > 1,00 < / GROSS_REVENUE_TRADING >

< / GROSS_DOMESTIC_REVENUE >

< GROSS_EXPORT_REVENUE VALUE = "3.00" >

< GROSS_REVENUE_MANUFACTURING > 1,00 < / GROSS_REVENUE_MANUFACTURING >

< GROSS_REVENUE_SERVICES > 1,00 < / GROSS_REVENUE_SERVICES >

< GROSS_REVENUE_TRADING > 1,00 < / GROSS_REVENUE_TRADING >

< / GROSS_EXPORT_REVENUE >

< EXCISE_DUTY > 1,00 < / EXCISE_DUTY >

< / REVENUE_FROM_OPERATIONS >

< OTHER_OPERATING_INCOME > 1,00 < / OTHER_OPERATING_INCOME >

< / TOTAL_REVENUE >

< TOTAL_EXPENSES VALUE = "15.00" / >

< COST_OF_RAW_MATERIALS VALUE = "2.00" >

< ANY > 1,00 < / IMPORTED >

< Aboriginal PEOPLE > 1,00 < / Aboriginal PEOPLES >

< / COST_OF_RAW_MATERIALS >

< / PROFIT_AND_LOSS_STATEMENT >

< / OPERATING_MONTHS >

< / FY_ENDED_DD_MM_YY >

< / TYPES_OF_FINANCIALS >

< / DETAILED_DATA_ENTERED >

BHEL < NAME_OF_THE_COMPANY > < / NAME_OF_THE_COMPANY >

< DETAILED_DATA_ENTERED VALUE = 'test' >

< TYPES_OF_FINANCIALS VALUE = "Checked" >

< FY_ENDED_DD_MM_YY VALUE = 'Saturday, March 31, 2012' >

< OPERATING_MONTHS VALUE = "12" >

< PROFIT_AND_LOSS_STATEMENT VALUE = "" >

< TOTAL_REVENUE VALUE = "6.00" >

< REVENUE_FROM_OPERATIONS VALUE = "5.00" >

< GROSS_DOMESTIC_REVENUE VALUE = "3.00" >

< GROSS_REVENUE_MANUFACTURING > 1,00 < / GROSS_REVENUE_MANUFACTURING >

< GROSS_REVENUE_SERVICES > 1,00 < / GROSS_REVENUE_SERVICES >

< GROSS_REVENUE_TRADING > 1,00 < / GROSS_REVENUE_TRADING >

< / GROSS_DOMESTIC_REVENUE >

< GROSS_EXPORT_REVENUE VALUE = "3.00" >

< GROSS_REVENUE_MANUFACTURING > 1,00 < / GROSS_REVENUE_MANUFACTURING >

< GROSS_REVENUE_SERVICES > 1,00 < / GROSS_REVENUE_SERVICES >

< GROSS_REVENUE_TRADING > 1,00 < / GROSS_REVENUE_TRADING >

< / GROSS_EXPORT_REVENUE >

< EXCISE_DUTY > 1,00 < / EXCISE_DUTY >

< / REVENUE_FROM_OPERATIONS >

< OTHER_OPERATING_INCOME > 1,00 < / OTHER_OPERATING_INCOME >

< / TOTAL_REVENUE >

< TOTAL_EXPENSES VALUE = "15.00" / >

< COST_OF_RAW_MATERIALS VALUE = "2.00" >

< ANY > 1,00 < / IMPORTED >

< Aboriginal PEOPLE > 1,00 < / Aboriginal PEOPLES >

< / COST_OF_RAW_MATERIALS >

< / PROFIT_AND_LOSS_STATEMENT >

< / OPERATING_MONTHS >

< / FY_ENDED_DD_MM_YY >

< / TYPES_OF_FINANCIALS >

< / DETAILED_DATA_ENTERED >

(< / ROOT > ') double col1

)

SELECT OUTPUT.*

OF xml_test t

, XMLTABLE ('. / ROOT')

PASSAGE t.col1

COLUMNS

PATH OF VARCHAR2 (75) OF NAME_OF_THE_COMPANY '. / NAME_OF_THE_COMPANY',

PATH OF VARCHAR2 (75) OF DETAILED_DATA_ENTERED '. / DETAILED_DATA_ENTERED/@VALUE',

PATH OF VARCHAR2 (75) OF TYPES_OF_FINANCIALS '. / DETAILED_DATA_ENTERED/TYPES_OF_FINANCIALS/@VALUE',

PATH OF VARCHAR2 (75) OF FY_ENDED_DD_MM_YY '. (/ DETAILED_DATA_ENTERED/TYPES_OF_FINANCIALS/FY_ENDED_DD_MM_YY/@VALUE') EXIT;

Error:

ORA-19279: XPTY0004 - dynamic XQuery type mismatch: expected - singleton sequence got several sequence element

19279 00000 - "dynamic XQuery type mismatch: expected - singleton sequence got several sequence element.

* Cause: The sequence of XQuery passed was more than one element.

* Action: Fix the XQuery expression to return a single element of the sequence.

Kind regards

Fame

As I already mentioned in the other post of yours, you need a tag to identify each row. Like I did here here as well, I added the tag LINE and it works.

with xml_test
    as
    (
    select xmltype ('
    
 
      NASA
      
      
     
     
     
     
     
     
     1.00
     1.00
     1.00
     
     
     1.00
     1.00
     1.00
     
     1.00
     
     1.00
     
     
     
     1.00
     1.00
     
     
     
     
     
     


     BHEL
     
     
     
     
     
     
     
     
     1.00
     1.00
     1.00
     
     
     1.00
     1.00
     1.00
     
     1.00
     
     1.00
     
     
     
     1.00
     1.00
     
     
     
    
     
     
  
   ') col1 from dual
   )
SELECT OUTPUT.*
FROM xml_test t
, XMLTABLE ( './ROOT/ROW'
PASSING t.col1
COLUMNS
NAME_OF_THE_COMPANY VARCHAR2(75) PATH './NAME_OF_THE_COMPANY',
DETAILED_DATA_ENTERED VARCHAR2(75) PATH './DETAILED_DATA_ENTERED/@VALUE',
TYPES_OF_FINANCIALS VARCHAR2(75) PATH './DETAILED_DATA_ENTERED/TYPES_OF_FINANCIALS/@VALUE',
FY_ENDED_DD_MM_YY VARCHAR2(75) PATH './DETAILED_DATA_ENTERED/TYPES_OF_FINANCIALS/FY_ENDED_DD_MM_YY/@VALUE') OUTPUT;

Tags: Database

Similar Questions

  • XML request error. ORA-00933: SQL not correctly completed command.

    Hi all

    My Version of the database: Oracle Database 10g Enterprise Edition Release 10.1.0.2.0.

    CREATE table test (name VARCHAR2 (3), identification number);

    Insert test values ('abc', 61);

    Insert test values ('def', 46);

    Select table_name,
    column_name,
    search_string 'abc ',.
    result
    CLO, xmltable (('ora: view("'||))) table_name |' ") / RANK /' | column_name | "[ora:contains (text,' %'|)] "abc". "% ») > 0]')
    result varchar2 columns (10) path '.'
    )
    where table_name in ('TEST');

    and I get: ORA-00933: SQL not correctly completed command it points on ' * xmltable *'
    SQL> SELECT extractValue(value(t), '/CustomerInformation/Customerid') "Customerid"
      2       , extractValue(value(t), '/CustomerInformation/CustomerName') "CustomerName"
      3       , extractValue(value(t), '/CustomerInformation/Country') "Country"
      4  FROM xml_document_table x
      5     , TABLE(
      6         XMLSequence(
      7           extract(x.xml_document, '/Customer/CustomerInformation')
      8         )
      9       ) t
     10  ;
    
    Customerid            CustomerName             Country
    --------------------- ------------------------ -------------
    1                     xxxx                     4
    2                     yyyy                     5
     
    
  • I get random failures to load a page with the XML parsing error: entity not defined using firefox 4

    This didn't happen with the version 3 x, nor with the previous v4. Using the arrow to the left and clicking on the previous page request usually works ok. It happens several times a day. Full error is

    XML parsing error: undefined entity
    Location: jar:jar:file:///C:/Documents%20and%20Settings/shirley/Application%20Data/Mozilla/Firefox/Profiles/4txi20jj.default/extensions/ [email protected]! /chrome/bandwidthmeter.jar!/content/netError.XHTML

    392, column 33 line number:

    & netOffline.longDesc;

    I am also getting this error and have been able to understand that its caused by the Bandwidth_Meter_and_Diagnostics - 1.2.5.xpi. This deactivation seems to have stopped the error, but is a major nuisance.

  • XML Parsing Error: unexpected scanner place State: jar:file:///C:/Program%20Files%20 (x 86) /Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/ab

    Madam/Sir,

    I log on this site everyday to make a contribution (http://theanimalrescuesite.greatergood.com/clickToGive/home.faces?siteId=3) and during the last three days, I was unable to connect. Today, I get this message: XML parsing error: State unexpected location parser: jar:file:///C:/Program%20Files%20 (x 86) /Mozilla%20Firefox/browser/omni.ja!/chrome/browser/content/browser/abt

    Best regards

    Peter

    What Firefox locale (UI language) do you use?

    Try a clean reinstall and delete the program folder before Firefox to (re) install a new copy of the current version of Firefox.

    If possible to uninstall your current version of Firefox to clean the Windows registry and settings in the security software.

    • Do NOT remove the "personal data" when you uninstall your current version of Firefox, because this will remove all profile folders and you lose personal data such as bookmarks and passwords including data profiles created by other versions of Firefox.

    Delete the program folder Firefox before installing newly downloaded copy of the Firefox installer.

    • (32-bit Windows) "C:\Program Files\Mozilla Firefox\"
    • (Windows 64 bit) "C:\Program Files (x 86) \Mozilla.

    Your bookmarks and other personal data are stored in the Firefox profile folder and will not be affected by a uninstall and (re) install, but do NOT delete personal data when you uninstall Firefox which removes all Firefox profile folders and you lose your data.

  • Error after installing FF34 on FF33: XML Parsing Error: undefined entity WebIDE

    Hello
    After installing FF34 on FF33 I get a window with this message when I close windows firefox closes too:

    XML parsing error: undefined entity
    Location: chrome://browser/content/browser.xul
    Line number 320, column 5: key < = "" command = "tools: WebIDE ' id = 'key_webide' keycode =" & amp; webide.keycode; "p =" ">."
    < / key >

    ^

    What Firefox locale (UI language) do you use?

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem.

    • Put yourself in the DEFAULT theme: Firefox/tools > Modules > appearance
    • Do NOT click on the reset button on the startup window Mode safe
  • Cannot add a new account to FireFTP. Get &gt; &gt; &gt; XML Parsing Error: undefined entity location: chrome://fireftp/content/accountManager.xul line number 216, column 17:

    I can't add an additional account to FireFTP. I get a yellow box with this title:

    XML parsing error: undefined entity
    Location: chrome://fireftp/content/accountManager.xul
    216, column 17 line number:
    < label of the menu = "" & charsetMenuMore1.label; "accesskey =" & charsetMenuMore1.accesskey; "datasources ="rdf:charset - menu"ref ="NC:BrowserMore1CharsetMenuRoot">

    ^

    Do not understand the problem, can anyone help please?

    Try the FireFTP update to the 2.0.20 latest version.
    An update for Firefox 32 compatibility.
    https://addons.Mozilla.org/en-us/Firefox/addon/FireFTP/

  • Since the update message "XML Parsing Error: undefined entity location: chrome://browser/content/browser.xul 238, column 5 line number:" all - tried help!

    Since an automatic update ran I get the message

    "XML Parsing Error: undefined entity".

    Location: chrome://browser/content/browser.xul

    Number of the line 238, column 5:

    "< broadcaster-^" < br = "" id = "devtoolsMenuBroadcaster_ChromeDebugger" >
    When I try to open Firefox. I had to go back to Internet Explorer - tried all suggested include removing and then reinstalling Firefox, but still not get Firefox to open - help!
    < / diffuser >

    Can you reproduce in Firefox Safe mode?

    It may be an acceleration addon or material affecting (by making the error).

  • I tried to view my tabs on other computers and received this message: XML Parsing Error: undefined entity location: on: sync-tabs line number 7, column 1: the window id = "tabs-display" ^ How can I fix?

    "Error message has been: XML Parsing Error: undefined entity location: on: sync-tabs line number 7, column 1: window (weeks =" "3 =" "4 =" "5 =" "7 =" "< =" "^ =" "a =" "Add - on. =" "it y =" ' am = "" a = "" and = "" are = "" avg = "" believe = "" time = "" but = "" impossible = "" some = "" computers = "" firefox = "" for = "" I = "" I = "" id = 'tabs-view' in = "" installed.. = "" it = "" months) = "" = "" on. "" "" "" "" = "" or = "" other = "" p = "" paid = "" remember = "" running = "" sometimes = "" sync = "" tabs = "" version = "" look a = "" was = "" we = "" some = "" when = "" windows = "" worked = "" > < / window > "

    Hello!

    Can you give us some details? When this message display? Is in your phone or your computer? What is your language? More information you can give us the best.

    You use the add-on and Firefox 4? If so, I'll ask you to disable and remove the add-on: Sync is now part of the Firefox browser and you don't need the add-on. [https://bugzilla.mozilla.org/show_bug.cgi?id=644894 some users solved this problem by uninstalling the add-on.]
    ]

  • Speed Dial gives me an XML parsing error: no element found

    Have set up the Speed Dial and also set it as homepage. But when I then open Firefox, speed dial does not work and I get:
    XML Parsing Error: no element found
    Have retried reloading Speed Dial twice, and this happens every time. I am running Firefox 3.6.16.

    There is an extension conflict. See this article: blog of Speed Dial on this problem article

  • in the bar of persona, I get a msg with XML Parsing Error start: can a very long message. FireFox 3.6.13

    XML Parsing Error: not blocked cavities symbolic location: chrome://brower/content/brower.xul line number 1, column 13546: TOOLBAR > < COMMANDS >

    If you have installed, disable a toolbar for Amazon, until an updated version is available. In addition, you can disable the toolbar, as it is at the origin of the problems for many users not being able to open new tabs.

  • Version with ControlLogix - link cRIO (implicit messaging), "(Code 16 #0315) problem" connection request error: invalid segment type ""

    I have developed and delivered a system in Germany several years ago.  He worked then.  But the cRIO was damaged and replaced by a newer model, and does not now.  I suspect (and Support technical OR agree) it's a problem of software version, which could be solved with the NOT-MAX Software Installer.  But I do not have access to the system myself, and correspondence is slow and tedious.

    The original system was a cRIO-9073, developed with LabView 2009.  He used the implicit Messaging.  The ID of Instance, sizes, IP addresses, etc everything has worked very well.

    The current system is a cRIO-9074, with LabView DURATION 14.0 (I guess that LV 2014), Scan Engine 4.3, NI - Industrial Communications for Ethernet/IP 14.0.0, etc.  Programs FPGA and processor are responsible and seem to work in the cRIO.  The "EthernetIP Set Assembly Instance Data.vi' will return no error.  But the PLC just pointing out "(Code 16 #0315)" connection request error: invalid segment type "."  We looked at intellectual property (the mistake was different), sizes and body #s.

    The PLC doesn't have to all be modified.

    Anyone know if there is no problem of compatibility with LV-2014 and Ethernet/IP 14.0.0?  Or if there are all the other required packages?

    I am including the NOT-Max reports.

    Hi ZX81

    To help you 2009 application to work with the new cRIO, you must deploy it to the device. You must in order to deploy the cRIO, make sure it has the same versions of software that you used with the old cRIO.

    You can format the cRIO NI MAX and deploy the application of LV, 2009. However, if you do not have access to the cRIO or your client does not have the necessary software, you can deploy the application in another cRIO with software (cRIO same model and same modules as your client) and create a picture of it and send it to your customer so that it can deploy the cRIO even without the software on his computer. The following document explains how to do this.

    Utility of RAD

    WenR

  • XML parsing error. no evidence that that is line 1 during the installation of the audio bible Download Manager

    I try to install the Download Manager audio bible, when this error screen appears.

    XML parsing error. any element that is on line 1

    Hello

    1 did you change on your computer before this problem?

    2. what operating system is installed on your computer?

    What version of the operating system Windows am I running?

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    3. are you using Internet Explorer? If Yes, what version of IE are you using?

    Find out what version of Internet Explorer you are using
    http://Windows.Microsoft.com/en-us/Windows7/find-out-which-version-of-Internet-Explorer-youre-using

    I would say download you the application and install it again and then check.

  • When I turn on the computer of mymy and it gives me request error indicating that "the required data was not put into memory due to an error of e state / of"0xc000009c".»

    Original title: IO error

    OK so I turn on my computer and it gives me request error indicating that "the required data was not put into memory due to an error of e state / of"0xc000009c".»

    I run an xp windows 2003-04. My computer does not start completely and if I click on debug or put end to the program there just restarts the computer. How can I solve this problem? and is it possible that I can update my software?

    You say that you can not even start in Safe Mode, so method 1 will not help you, method 2 will not help you and 3 method will not help you.

    I start in the XP Recovery Console and first run a chkdsk/r on the afflicted system, but since we don't know anything about your system, we will need more information.

    It is a shame that in the forums MS Answers, the first response to a new question is (or should be) a request for more information...  You are 5 days in your problem, and so for him it seems that you are not getting anywhere.  If the thread goes inactive for more than a few days, the response of the Microsoft Support Engineer will become the 'response' automatically because it has links to the KB articles.

    Since the Microsoft Answers forum does not have any kind of information system request when a new question is asked, we know absolutely nothing about your system.  Not knowing the basic information a problem prolongs the frustration and the agony of these issues.

    Thank you MS Answers, allowing the resolution of simple problems as frustrating and a lot of time as possible.

    Provide information on your system, the better you can:

    What is your system brand and model?

    What is your Version of XP and the Service Pack?

    Your system have IDE or SATA disks?

    Describe your current antivirus and software anti malware situation: McAfee, Symantec, Norton, Spybot, AVG, Avira!, MSE, Panda, Trend Micro, CA, Defender, ZoneAlarm, PC Tools, Comodo, etc..

    The question was preceded by a loss of power, aborted reboot or abnormal termination?  (this includes the plug pulling, buttons power, remove the battery, etc.)

    The afflicted system has a working CD/DVD (internal or external) drive?

    You have a genuine XP installation CD bootable, which is the same Service as your installed Service Pack (this is not the same as any recovery CD provided with your system)?

    If the system works, what do you think might have changed since the last time it did not work properly?

  • The XML parser error when you set the NTP in UCS Server

    When you try to configure NTP servers (using IP addresses) when http would be in UCS C220 servers, received an XML parser error and NTP server configuration did not.  Ideas?

    Hey John,

    You can set the NTP CLI/SSH servers to host?

    -Wes

  • XML Parse Error when trying to open files

    After spending a few hours on a piece of work, I received this message:

    "Error could not open the page. XML parsing error.

    When I try to open the file. I know at least two of my files had this error pops up and I'm unable to reopen the files.

    Hi Mireya,

    I'm sorry that you get this error message. I have a few questions:

    Is this just a drawing that you are unable to open?

    If you sign in with your Adobe ID to https://assets.adobe.com/assets/mobile?filter=draw you see the project? If you can, even if it seems empty, you share the project with me?

    Your drawing has a layer of the Image?

    What version of draw do you use? And what version of iOS?

    In addition, given that this could be related to storage, how much free storage space you have on your device (on iOS, check the settings > General > storage & use iCloud > available)?

    Let me know what you find.

    Sue.

Maybe you are looking for