ORA-31011: analysis XML has not, someone can like me wats wrong in this code

Hi all

I am trying to parse an XML document, for which I wrote a code on the XML parsing.

I'm moving to an XML document, which will be in a format, I can't change that.

Now, I have to get values to individual items such as FROM_USERID and TO_USERID, and MESSAGE.

Here is the code

create or replace procedure myparsing is
new_msg_str varchar2 (4000);
XMLType new_msg_xml;
v_from_user varchar2 (8);
v_to_user varchar2 (8);
v_msg_tmp varchar2 (4000);
v_msg varchar2 (4000);
payloadxml varchar2 (2000);
Chat.objmessage_typ MyMsg;
n number;

getvalueat function)
NodeList dbms_xmlDom.DOMNodeList, xPath varchar2)
VARCHAR2 is back
Start
Return to dbms_xslprocessor.valueOf (dbms_xmldom.item(nodelist,2),
XPath);
end getvalueat;

analysis of procedure (xmlpayload varchar2) is
doc dbms_xmlDom.DOMDocument.
parser dbms_xmlparser. Analyzer;
nodeList dbms_xmlDom.DOMNodelist;
Testdoc varchar2 (2000);
Start
Parser: = dbms_xmlparser.newParser;
dbms_xmlparser.parseBuffer (parser, xmlPayload);
doc: = dbms_xmlparser.getDocument (parser);
dbms_xmlparser.freeParser (parser);
nodeList: = dbms_xslprocessor.selectNodes)
dbms_xmlDom.makeNode (doc),'/ CAT. OBJMESSAGE_TYP');
MyMsg: = objmessage_typ (null, null, null);
MyMsg.from_userid: = getValueAt (nodeList, 'FROM_USERID');
MyMsg.to_userid: = getValueAt (nodeList, 'TO_USERID');
MyMsg.message: = getValueAt (nodeList, 'MESSAGE');
end analysis;

Start
payloadXml: = ' <? XML version = "1.0"? >

< CAT > OBJMESSAGE_TYP > < FROM_USERID > abcdabcd < / FROM_USERID >

me < TO_USERID > < / TO_USERID > < MESSAGE > HI this IS SOME

MESSAGE < / MESSAGE > < / CAT. OBJMESSAGE_TYP > ';
Parse (payloadXml);
v_from_user: = mymsg.from_userid;
v_to_user: = mymsg.to_userid;
v_msg: = mymsg.message;
MyMsg: = objmessage_typ (null, null, null);
v_from_user: = ";
v_to_user: = ";
v_msg: = ";
end;


I get the error message

SQL > start
2 myparsing();
3 end;
4.
Start
*
ERROR on line 1:
ORA-31011: XML parsing failed
ORA-19202: an error has occurred in the processing of XML
LPX-00231: invalid character 46 ('.) ') in a name a Nmtoken
Error on line 4
ORA-06512: at "XDB". DBMS_XMLPARSER', line 156
ORA-06512: at "CAT. MYPARSING', line 27
ORA-06512: at "CAT. MYPARSING', line 43
ORA-06512: at line 2


Can someone like me whats wrong in this code and the things I need to do

TIA...

It is not valid XML.

See [spec | http://www.w3.org/TR/xml/#sec-starttags]

Disallowed initial characters for Names include digits, diacritics, the full stop and the hyphen

Tags: Database

Similar Questions

  • Can someone tell me what's wrong with this code?

    I try to display an 'X' icon beside the offending error. If I take the test 'if' code runs. If I leave it in the symbol does not work.

    Thank you

    David

    var emailFromVal = Email.value;

    var messageVal = ' < strong > < p > < police = "helvetica" size = "5" > name: "+ Firstname.value +" < br > < br > Last Name: "+ Lastname.value +" < br > < br > Message: ' + Message.value + '< /p > ";

    We add this variable to check if someone find the address of our php file cannot send empty message by calling a php URL file

    var Permission = 1;

    If ((Firstname.value == "") {})

    move the cursor to the error to fix x, y and see the error occurred

    SYM. $("Croix") .css ("left", 10);

    SYM. $("Croix") .css ('top', 90);

    SYM.$("cross"). Show();

    }

    else {}

    Alert ("thank you, we will contact you shortly");

    .post $("sendEmail.php", {drapeau: Permission, Courriel: emailFromVal, messages: messageVal});

    }

    SYM.$("#email"). Detach();

    SYM.$("#FirstName"). Detach();

    SYM.$("#LastName"). Detach();

    SYM.$("#message"). Detach();

    Permission = 0;

    SYM. Play ("smell");

    There are two braces in the stated case

    "If ((" remove one of them.

  • Hello, I'm already in Adobe Lightroom how to sync between my PC where I save and edit files of my work and my I phone6. Someone can tell me how to extend this synchronization to my Mc Book Air, can not quite understand.   Thank you!  Marcelo

    I'm already thinking how in Adobe Lightroom for synchronization between my PC where I save and edit files of my work and my I phone6. Someone can tell me how to extend this synchronization to my Mc Book Air, can not quite understand.

    Thank you!

    Marcelo

    Marcelo,

    to make it quite clear, Lightroom can't sync between two desktop computers. It can synchronize between only one computer and one or more mobile devices. Synchronization between computers has been a very requested feature, but Adobe has not given us yet. You will need to designate one of your computers as your main machine mounting and synchronization here. There are tricks to get all changes from one computer to another in phase, but these are not negligible and may corrupt catalog if you're not careful.

  • My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?

    My printer cuts left, emails from Outlook Express, but is OK to print WORD documents. Is someone can you please help me solve this problem?

    I have Windows XP.

    really grateful for any advice.

    Concerning

    Spender 9

    OE uses IE settings.  Then configure things in IE (margins and others) and it should then apply to the when you print from OE.

    Steve

  • When setting up my computer, I put a password and would like to now remove someone can tell me how to do this

    When setting up my computer, I put a password for anyone else cannot access my computer and I need to remove it someone can tell me how to uninstall this password I can't sart menu or anything else thanks

    Go to the control panel and select "user accounts".

    Here, select the name of your account on the bottom and select "Remove password"

    Here, you will be asked to put your password in. Then click on 'Ok '.

  • RMAN-04006: auxiliary database error: ORA-12504: TNS:listener has not been

    HIII...

    I was doing my dataguard configuration, my primary side is a 2 node RAC and my stand by is a single node.
    IM using the database and 11 GR 2 grid infrastructure.

    When I try to connect to the rating system standy priamry using RMAN im getting the following error.

    [*[*Oracle@Rac2 ~] rman target $ / auxiliary sys / sys@to_std *.

    Recovery Manager: release 11.2.0.1.0 - Production on Thu Sep 29 20:39:04 2011

    Copyright (c) 1982, 2009, Oracle and/or its affiliates. All rights reserved.

    connected to target database: RAC (DBID = 2346715690)
    RMAN-00571: ===========================================================
    RMAN-00569: = ERROR MESSAGE STACK FOLLOWS =.
    RMAN-00571: ===========================================================
    RMAN-00554: initialization of the package manager internal collection failed
    RMAN-04006: auxiliary database error: ORA-12504: TNS:listener did not have the SERVICE_NAME in CONNECT_DATA


    My tnsnames.ora file is as follows

    to_std =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp (PORT = 9999))(HOST=datagrd))
    )
    (CONNECT_DATA =
    (SERVICE_NAME = STB.msftpnq.com)
    )
    )


    and my listsner.ora file is as follows

    list_std =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = tcp (PORT = 9999))(HOST=datagrd))
    )
    )
    SID_LIST_list_std =
    (SID_LIST =
    (SID_DESC =
    (GLOBAL_DBNAME = STB.msftpnq.com)
    (SID_NAME = STB)
    (ORACLE_HOME=/u01/app/oracle/product/11.2.0/dbhome_1)
    )
    )


    Please can someone help me to solve the issue.


    Thanks in advance.

    change the string Service_name in the tnsnames.ora file in the following and try again

    (SERVICE_NAME = STB) will be replaced by (SERVICE_NAME = STB.msftpnq.com)

  • ORA-12505, TNS:listener has not currently SID /on sqldeveloper k.w.

    Hello

    I tried to connect to my Oracle 11g with sqldeveloper server, I have donloaded

    but I have this error:

    Listener refused the connection with the following error:

    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    Codice fornitore 12505

    the default sid name in sqldeveloper is "xe".

    I have tiyped

    tsping orcl:

    and SERVICES LSNRCTL:

    What should I type in SID?

    Help, please

    Thank you

    2846174 wrote:

    Hello

    I tried to connect to my Oracle 11g with sqldeveloper server, I have donloaded

    but I have this error:

    Listener refused the connection with the following error:

    ORA-12505, TNS:listener is not currently of SID given in connect descriptor

    Codice fornitore 12505

    the default sid name in sqldeveloper is "xe".

    It can be the default, but it may not be suitable for YOUR installation.

    I have tiyped

    tsping orcl:

    If we see that if you use tnsnames.ora to solve your connection request, the net service name "orcl" (that you specified on your tnsping) solves a service name (not a SID) of "orcl.homenet.telecomitalia.it".  Nowhere it is not a reference to XE in YOUR configuration.

    and SERVICES LSNRCTL:

    And we see that your listener support an instance named "orcl".  Once again, XE is not found.

    What should I type in SID?

    Maybe nothing.  Maybe you're using the wrong "type of connection', 'base', select 'tns '.

    Then 'network alias' dropdown will be filled with your tnsnames.ora file, to choose one.

    OR...

    Leave connection type as ' basic' and instead of 'SID', supply "service name".  If you go this route, you will need to provide the correct host name and port.  You can get the values of what you saw when you made "tnsping.

    Help, please

    Thank you

  • Firefox worked, today has not started with the error the version of this file is not compatible with the version of windows you are using.

    Computer is Windows 7 Ultimate 64 bit. Firefox has work fine for over a year on this computer. Nothing has been changed or updated updated except Windows update indicates that it installed updates on August 19. I had computer week before because only out of town, back entrance and began August 18, but Firefox has worked that day. Does not use FF again until today. Today August 22, firefox does not start, shortcut icon changed program not there. Exe in the folder when you click Poster error message says the version of this file is not compatible with the version of Windows, I am running. Exe of Firefox shows created on 20 August. I suspect the update, Windows or FF but lean towards windows, which was spent, who broke things. I noticed that IE 10 updates, updates of .NET framework and the malicious software removal tool have been installed. I tried to restart the computer, has not set. Tried to run as administrator, did not work. I don't want to uninstall FF, at least have to because of all the things I have here, bookmarks, last past passwords, etc..

    Hello

    Some Firefox problems can be solved by performing a clean reinstall. This means that you remove Firefox program files (not the profile folder, where the bookmarks are stored) and then reinstall Firefox. Please follow these steps:

    Note: You can print these steps or consult them in another browser.

    1. Download the latest version of Firefox from http://www.mozilla.org office and save the installer to your computer.
    2. Once the download is complete, close all Firefox Windows (click on quit in the file menu or Firefox).
    3. Remove the Firefox installation folder, which is located in one of these locations, by default:
      • Windows:

        • C:\Program Files\Mozilla Firefox
        • C:\Program Files (x 86) \Mozilla Firefox
      • Mac: Delete Firefox in the Applications folder.
      • Linux: If you have installed Firefox with the distribution-based package manager, you must use the same way to uninstall: see Install Firefox on Linux. If you have downloaded and installed the binary package from the Firefox download page, simply remove the folder firefox in your home directory.
    4. Now, go ahead and reinstall Firefox:
      1. Double-click on the downloaded Setup file and go through the steps in the installation wizard.
      2. Once the wizard is completed, click to open Firefox directly after clicking the Finish button.

    Please report back to see if this helped you!

    Thank you.

  • My Alien Autopsy comprehensive system Tests show a ' Failed WVC07-LB8 ' video card failure, but I can't find any mention of this code error or failure anywhere

    My Alien Autopsy comprehensive system Tests show a ' Failed WVC07-LB8 ' video card failure, but I can't find any reference to this error code or failure anywhere, either in the "help", on Microsoft Support sites, or on the community boards.

    I have updated all drivers for this graphics card (AMD Radeon HD series 7900) and all the surrounding drivers with the AMD software.

    I can't find any information, so I don't know if I should get a new video card (which seems to work very well) or if I should just ignore it.

    Someone at - it ideas?

    Raven

    Computer Alienware Aurora R4
    Windows 7 x 64 OS
    AMD Radeon HD series 7900 graphics card

    Original title: Error Code WVC07-LB8

    Hello

    As you mentioned that you have already updated the AMD graphics card drivers, could you let us know if you see any exclaimation or any error in the device under graphics card Manager?

    Are you facing any problem with your graphics card, video, or your screen resolution?

    As Alien Autopsy Global System Tests showed you the error, I suggest you to get tap dell JDM for more support asiistance if you have any problem with Yon graphics/video card or screen resolution.

    For your information: once you uninstall your graphics card drivers, windows has its own built-in drivers that will automatically charge the generic drivers. If in case it does not load you can search the hardware changes, this will probably load the generic drivers.

  • I use Lightroom trial software, in the develop module, the main screen is blue, the preview image does not, someone can help please?

    light blue.png

    Lightroom preferences, the performance tab, uncheck the box use the graphics processor. As an alternative, you can double check your graphics drivers and make sure that they are up-to-date. But if you uncheck this option, you will find that the problem will disappear.

  • Software device driver has not been installed successfully. __This device cannot start (Code 10).

    I am running Windows 7 on a HP Pavilion a1600n and sometimes in the last month the CD/DVD drive stopped recognizing DVDs and CDs. It is opening and closing, and turn the disc when I put them in the drive, simply do not recognize anything beyond that.

    The State of the device reads that this device cannot start (code 10).

    From what I could find online code 10 was a general hardware error. I tried switching to another Cd/DVD drive and even changed the cable to the inside to see if it was the error, it was not. When I plugged the DVD/CD drive second he tried to locate the drivers online and and informed me it software device driver was not correctly installed. I tried to find some kind of solution online, nothing helps. If there are some ad where this has been previously resolved for someone else and you could point me in the right direction, or if you have a solution to this problem, please help.

    Hi Dnah,

    See the following about the Code 10 error article:

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

    I hope this helps!

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

  • Double-click Application warning "the file has not a progress associated with it for performing this action.

    By double clicking or open an application the following message window appears:

    "This file has no program associated with it for performing this action.  Create and link in the set Associations control panel. »

    I can launch the application (like Word or Internet Explorer) by right clicking on the executable and selecting the option 'start '.

    Because these files are the application files, I'm not aware of a method to create an association for it.  I thought it was for files that must be associated with an executable file. "as a Word to Word document".

    How can I solve this problem?

    Thank you

    How to set file Associations:

    http://articles.TechRepublic.com.com/5100-10878_11-6172036.html

    How do I... Change file extension associations in Windows Vista?

    See you soon.

    Mick Murphy - Microsoft partner

  • Stop error message: logon failure: the user has not granted the type of logon required on this computer

    Hello
    I have a huge problem. The laptop has an account of user Karina, who was also the Manager. But I opened another account, WAZ. Has decided to make the administrator Flippie and Karina just a standard user.
    Now my problem is that Flippie has disappeared from my laptop. Cannot find and I'm in trouble because I don't have administrator access. You will appreciate all help.

    Hello

    1. are you able to connect account Karina?

    2 have you made any changes to the computer before the show?

    3. you are in a domain network?

    If you are able to log onto the account of Karina follow this:

    Method 1:

    How to check the user account is disabled:

    1. open the start menu, type lusrmgr.msc in the search line and press enter.

    2. click on the users in the left to open pane folder the users and groups.

    3. in the middle pane of the users, double-click the name of the user account (ex: example-account)

    4. on the general tab, clear the account is disabled , and click OK.

    5. Once completed, close the window to local users and groups.

    6 restart the computer audit are you able to see another user account.

    Method 2:

    Activate the built in the administrator user account and check:

    1 restart the computer and keep tapping F8 until you reach the start menu.

    1. Click repair your computer.
    2. Click the operating system you want to repair, and then click Next.
    3. In the System Recovery Options dialog box, click command prompt.

    5. at the command prompt, type net user administrator / Active: Yesand then press ENTER.

    6. type net user administrator , , and then press ENTER.

    Note: Please replace the tag with passwords which you want to set for the administrator account.

    Type exitand press ENTER. Restart the computer and check.

     

    I hope that the above information is useful!

  • Is someone can you please tell me what this message means?

    Unable to get information from the disk, cannot use the alert function.

    I assume that this message comes from some Toshiba Utilities may be the HDD/SDD protection utility. Can you confirm this?

    Try to close this utility and reboot again.

  • Hello, I just reinstalled Firefox 8.0 and imported my backup bookmarks.html file, but the bookmarks toolbar has not changed with my old favorites. Is this a problem or I have to manually add each bookmark again?

    don't know what details to tell you, that all important data are written in the question. Thank you.

    You have now two folders of Bookmarks Toolbar. One of the installation of Firefox (the main one) and a 2nd file to import a bookmarks.html file.

    Find the Bookmarks Toolbar folder that is under the bookmarks Menu folder and copy or drag ' drop these bookmarks in the Bookmarks Toolbar folder that is above the bookmarks Menu folder.

Maybe you are looking for

  • IPad won't charge or reset

    Not sure what is the model of the iPad for my son but he is currently stuck on black screen and intermittent apple logo and will not take any fees.  I tried the suggested fixes from previous post of the community, but I just remembered the Home butto

  • Firefox Firefox 14.0.1 13.0.1 update

    This isn't a question; This is a comment. Normally (for me at least), upgrades to new versions of Firefox smoothly. It is not. Firefox has been very slow in coming, he remember preferences, and he went in that State "no answer" frequently and for lon

  • Update Radeon Mobility graphics cards

    As you have probably found ATI are not very next with new mobility drivers. The good news is that with a slight modification of the Catalyst drivers normal can be used, follow this link for instructions: http://forums.extremeoverclocking.com/showthre

  • Simple pass stopped working all of a sudden

    Simple passage no longer works, on my windows laptop 8.1 Envy 15 j009wm, suddendly today. HP Recovery Manager and tried to fix it, but it did not work. When I manually click Simple passage, it does not... ie the page starts to come, but then it flash

  • STR-DH750 can only listen to audio through the TV turned on?

    Hi all I just installed and set up the receiver. I am really enjoy but have a few questions. The first is - the TV must be activated if I want to just listen to the music (via Bluetooth) or radio? Everything works fine, but now if I select one of the