XML parser error; when XPath elements starts with "_"

Hi,
I have a problem in extracting elements from XML which is starting with "_". please check the queries below executed on Oracle 10g.
Query 1:
SELECT EXTRACTVALUE(XMLTYPE('<A><_B>1</_B><_C>2</_C><_D>3</_D><E>4</E></A>'),'/A/_B') FROM DUAL;
Error starting at line 1 in command:
SELECT EXTRACTVALUE(XMLTYPE('<A><_B>1</_B><_C>2</_C><_D>3</_D><E>4</E></A>'),'/A/_B') FROM DUAL
Error report:
SQL Error: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/A/_B'
31011. 00000 - "XML parsing failed"
*Cause:    XML parser returned an error while trying to parse the document.
*Action:   Check if the document to be parsed is valid.
Query 2:
SELECT EXTRACTVALUE(XMLTYPE('<A><_B>1</_B><_C>2</_C><_D>3</_D><E>4</E></A>'),'/A/E') FROM DUAL;
EXTRACTVALUE(XMLTYPE('<A><_B>1</_B><_C>2</_C><_D>3</_D><E>4</E></A>'),'/A/E')
4
Oracle version:
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
PL/SQL Release 10.2.0.1.0 - Production
CORE     10.2.0.1.0     Production
TNS for 32-bit Windows: Version 10.2.0.1.0 - Production
NLSRTL Version 10.2.0.1.0 - Production
Please let me know if there is any workaround for this.*
Thanks,
Veerababu Kanumilli.

Hi MichaelS,
- I have executed the queries provided by you, but I am not able to get the result in 10g when I am trying to access elements with "_" in XPath.
select * from v$version where rownum = 1;
select extractvalue (xmltype ('&lt;A&gt;<_B>1</_B><_C>2</_C><_D>3</_D><E>4</E>&lt;/A&gt;'), '/A/_B') "_B" from dual;
select extractvalue (xmltype ('&lt;A&gt;<_B>1</_B><_C>2</_C><_D>3</_D><E>4</E>&lt;/A&gt;'), '/A/E') "E" from dual;
Output:
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod
Error starting at line 4 in command:
select extractvalue (xmltype ('&lt;A&gt;<_B>1</_B><_C>2</_C><_D>3</_D><E>4</E>&lt;/A&gt;'), '/A/_B') "_B" from dual
Error report:
SQL Error: ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00601: Invalid token in: '/A/_B'
31011. 00000 - "XML parsing failed"
*Cause:    XML parser returned an error while trying to parse the document.
*Action:   Check if the document to be parsed is valid.
E
4
Thanks,
Veerababu Kanumilli

Similar Messages

  • Adobe Designer 7.0 - XML parsing error when data connection to XML with UTF-16

    Hi all
    <br />
    <br />I need to change my data connection xml file to use UTF-16 instead of ISO-8859-1. When I connect the file with the UTF-16 encoding, I receive the following error
    <br />
    <br />Invalid XML: Xml parsing error: encoding specified in XML declaration is incorrect (error code 19) ..
    <br />
    <br />The XML declaration is:
    <br /><?xml version="1.0" encoding="utf-16"?>
    <br />
    <br />I am able to succesfully set the encoding to "UTF-8". UTF-16 should also be possible.
    <br />
    <br />Has anyone seen this error before ? How can I resolve this ?
    <br />
    <br />Thanks in advance
    <br />
    <br />Bilal Haniff

    Thank you, expert, for your quick reply.
    Described problem got solved: we noticed later that the extra text only appears for users using Adobe professional 7.0, 'normal' users with adobe 8.0 reader don't get the extra text, so that is ok for us.

  • XML Parsing Error when opening Dreamweaver CS4

    Hi guys, I downloaded a trial version of Dreamweaver CS4
    which was downloaded from the adobe website and once i try
    installing it it comes up with 'please delete current menus.xml
    file and then rename menus.bak file to menus.xml'. Once I tried
    that the new renamed xml file has the same problem as the old one.
    Now, When i opened up the file in Firefox it came up with an XML
    Parsing error. The exact error is as below:
    XML Parsing Error: prefix not bound to a namespace
    Location:
    file:///C:/Program%20Files/Adobe/Adobe%20Dreamweaver%20CS4/configuration/Menus/menus.xml
    Line Number 12, Column 5: <shortcut
    mmstring:name="menus/DWShortcuts_Main_Quit" key="Opt+F4"
    command="dw.quitApplication()" id="DWShortcuts_Main_Quit" />
    ----^
    I am running windows XP SP3. Can anyone offer an
    insight/possible solution? I've already tried the following methods
    which have been suggested by other forums:
    CS4 clean script on Adobe website
    Microsoft installer clean up
    uninstall and reinstall all CS4/adobe products
    deleting Cache.db
    deleting Macromedia folder
    deleting faulty line in menus.xml file
    Is there anything else I can do? Thanks guys!

    1) Close Dreamweaver
    2) Navigate to the Design.xml file and rename it.
    3) Launch Dreamweaver and it will recreate the Design.xml file
    The AppData folder is hidden by default on Windows, so you need to enable the option to view hidden files and folders in order to locate it, as follows:
    In Vista/Windows 7, select Start > Computer > Organize > Folder and Search Options > View. In Advanced settings, choose Show hidden files and folders. 
    In Windows XP, select Start > My Computer > Tools > Folder Options > View. In Advanced settings, choose Show hidden files and folders.
    Once you turn on this option, hidden folders are displayed as dimmed icons to remind you to treat them with care.

  • UCSPE XML parsing error when importing from live UCS

    Hi all,
    I'm trying to import our live UCS hardware inventory in to the UCS platform emulator but keep getting an error stating:
    Server Error: code ERR-xml-parse-error: XML PARSING ERROR: no class named computeExtBoard
    The UCSPE imports all of our chassis' and blade servers, but it's missing all the chassis fans and psus, and the dimms, hdds, cpus, and storage controllers from all the blades. I haven't been able to figure out how to download or export the hardware inventory from the live UCS Manager as an XML for editing/loading in to UCSPE. It looks like you can only export as XML from USCPE, not from UCS Manager. Anybody have experience dealing with this?
    Thanks in advance!
    Jordan

    Hi all,
    I'm trying to import our live UCS hardware inventory in to the UCS platform emulator but keep getting an error stating:
    Server Error: code ERR-xml-parse-error: XML PARSING ERROR: no class named computeExtBoard
    The UCSPE imports all of our chassis' and blade servers, but it's missing all the chassis fans and psus, and the dimms, hdds, cpus, and storage controllers from all the blades. I haven't been able to figure out how to download or export the hardware inventory from the live UCS Manager as an XML for editing/loading in to UCSPE. It looks like you can only export as XML from USCPE, not from UCS Manager. Anybody have experience dealing with this?
    Thanks in advance!
    Jordan

  • XML Parsing Error when diplaying the downloads window

    After upgrading to the 3.6.15 version everytime I open the downloads window the following text is displayed:
    XML Parsing Error: unclosed token
    Location: chrome://mozapps/content/downloads/downloads.xul
    Line Number 83, Column 5: <menuitem id="menuitem_show"
    ----^

    After upgrading to the 3.6.15 version everytime I open the downloads window the following text is displayed:
    XML Parsing Error: unclosed token
    Location: chrome://mozapps/content/downloads/downloads.xul
    Line Number 83, Column 5: <menuitem id="menuitem_show"
    ----^

  • Error when I Tunes starts with Ipod Connected

    When ever I launch I tunes with I Pod Connected I get the folowwing:
    A "memory Card Manager" window appears on screen with the error message "Failed to locate supported File Type or there are no photos fond on the device"
    I running Ipod on a Dell computer with Windows XP Home
    Whats the story and how do I correct this?

    Check out this other thread

  • XML parser error on web server start-up

    Hi,
    My web app is running on iPlanet 6.0 with JDK1.3.1. I'm planning to upgrade the JDK version to 1.4.2. But by doing so, I'm getting a FactoryConfigurationError. I'm using the old xerces.jar file and its on the classpath.
    Here is the error message:
    Internal error: Unexpected error condition thrown (javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found,Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found), stack: javax.xml.parsers.FactoryConfigurationError: Provider org.apache.xerces.jaxp.SAXParserFactoryImpl not found
    at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:93)
    at com.iplanet.server.http.util.XmlConfig.parseConfig(XmlConfig.java:75)
    at com.iplanet.server.http.servlet.VirtualServer.<init>(VirtualServer.java:76)
    at com.iplanet.server.http.servlet.VirtualServer.createVirtualServer(VirtualServer.java:165)
    at com.iplanet.server.http.servlet.NSServletRunner.VSInit(NSServletRunner.java:721)
    Please help me on this.
    Regards
    SS

    As 6.0 is EOLed, please upgrade your server to WS6.1SP7 or WS7.0U1.
    If you still see this type of problem, you can post the info here again.

  • XML Parsing Error: no element found

    Hi,
    I'm working with BIPublisher 11g and I'm having the following error, this error occurred when I'm in the report and try to get the XML :
    XML Parsing Error: no element found
    Location: http://172.16.10.46:9704/xmlpserver/servlet/xdo
    Line Number 4, Column 1:
    And this is the DataEngine log I got:
    <?xml version="1.0" encoding="UTF-8" ?>
    - <debugLog>
    - <msg time="2010-09-29T13:49:03.619+13:00" comp_id="bi_server1" type="NOTIFICATION" level="1" host_id="birepo.nzbus.net" host_addr="172.16.10.46" module="oracle.xdo" tid="45" user="<anonymous>" ecid="0000IhQxgQ15qYG6yzZf6G1Cbv8m0003n8" rid="0">
    <attr name="APP" value="bipublisher#11.1.1.3.0" />
    <txt>ReportModelContextImpl- Invoking dataengine dataprocessor..</txt>
    </msg>
    - <msg time="2010-09-29T13:49:03.817+13:00" comp_id="bi_server1" type="WARNING" level="1" host_id="birepo.nzbus.net" host_addr="172.16.10.46" module="oracle.xdo" tid="45" user="<anonymous>" ecid="0000IhQxgQ15qYG6yzZf6G1Cbv8m0003n8" rid="0">
    <attr name="APP" value="bipublisher#11.1.1.3.0" />
    <txt>java.lang.NullPointerException at oracle.xdo.dataengine.perf.StringPoolList.cleanup(StringPoolList.java:55) at oracle.xdo.dataengine.XMLPGEN.cleanup(XMLPGEN.java:1729) at oracle.xdo.dataengine.XMLPGEN.writeXMLDataStructure(XMLPGEN.java:220) at oracle.xdo.dataengine.XMLPGEN.processDataSet(XMLPGEN.java:1390) at oracle.xdo.dataengine.XMLPGEN.processMergedDataSet(XMLPGEN.java:1203) at oracle.xdo.dataengine.DataProcessor.processData(DataProcessor.java:365) at oracle.xdo.servlet.dataengine.DataProcessor.processData(DataProcessor.java:402) at oracle.xdo.servlet.dataengine.DataProcessor.processData(DataProcessor.java:389) at oracle.xdo.online.data.ClassicDataProcessor.process(ClassicDataProcessor.java:157) at oracle.xdo.servlet.ReportModelContextImpl.getReportXMLData(ReportModelContextImpl.java:188) at oracle.xdo.servlet.CoreProcessor.process(CoreProcessor.java:301) at oracle.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:87) at oracle.xdo.servlet.ReportImpl.renderBodyHTTP(ReportImpl.java:1038) at oracle.xdo.servlet.ReportImpl.renderReportBodyHTTP(ReportImpl.java:603) at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:440) at oracle.xdo.servlet.XDOServlet.writeReport(XDOServlet.java:419) at oracle.xdo.servlet.XDOServlet.doGet(XDOServlet.java:235) at javax.servlet.http.HttpServlet.service(HttpServlet.java:707) at javax.servlet.http.HttpServlet.service(HttpServlet.java:820) at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227) at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125) at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:300) at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.xdo.servlet.metadata.track.MostRecentFilter.doFilter(MostRecentFilter.java:64) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.xdo.servlet.security.SecurityFilter.doFilter(SecurityFilter.java:116) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.xdo.servlet.init.InitCheckingFilter.doFilter(InitCheckingFilter.java:63) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:330) at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.doIt(WebAppServletContext.java:3684) at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3650) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321) at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121) at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2268) at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174) at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446) at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201) at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)</txt>
    </msg>
    - <msg time="2010-09-29T13:49:03.818+13:00" comp_id="bi_server1" type="NOTIFICATION" level="1" host_id="birepo.nzbus.net" host_addr="172.16.10.46" module="oracle.xdo" tid="45" user="<anonymous>" ecid="0000IhQxgQ15qYG6yzZf6G1Cbv8m0003n8" rid="0">
    <attr name="APP" value="bipublisher#11.1.1.3.0" />
    <txt>Data Generation Completed...</txt>
    </msg>
    - <msg time="2010-09-29T13:49:03.818+13:00" comp_id="bi_server1" type="NOTIFICATION" level="1" host_id="birepo.nzbus.net" host_addr="172.16.10.46" module="oracle.xdo" tid="45" user="<anonymous>" ecid="0000IhQxgQ15qYG6yzZf6G1Cbv8m0003n8" rid="0">
    <attr name="APP" value="bipublisher#11.1.1.3.0" />
    <txt>Total Data Generation Time 0.0 seconds</txt>
    </msg>
    </debugLog>
    Any suggestions.
    Thanks,

    Hi,
    I am getting the same error.
    Do we have a fix for this? The query was working fine until recently. But has started failing now with dataengine log same as above.
    Is there any solution?
    Thanks,
    Divya
    Edited by: 900143 on May 29, 2012 2:03 AM

  • ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element 'model'. Nested exception: Can not find the declaration of element 'model'.

    I have install flash builder 4 beta 2 + blazeds 4.00.7548. While try to connect to data service and face a problem.
    When i use a beta 1 that no such probem. please help.
    ERROR: XML parse error: Error on line 1 of document: cvc-elt.1: Can not find the declaration of element ‘model’. Nested exception: Can not find the declaration of element ‘model’.

    Hello All!
    I'm just getting started with Flash Builder 4 and BlazeDS and I'm having this same issue.     I have installed the FlashBuilder 4 beta 2  Build 253292, and Blaze 4  ( blazeds-turnkey-4.0.0.14341 ).       I have also installed the livecycle_dataservices3_modelerplugin_100509.      Upon clicking Data-Connect to data/service and then Blazeds,   I can see my DAO object listed.   However, if I select it I receive the dreaded error.       Now if I code in the remote object manually, in the  .mxml file and run it, all works just fine.        It's only while trying to use the object within Flashbuilder that I have the problem.     I see lots of ideas kicked around for this, and it seems that various solutions have worked for different users.    Can somebody put together a 'cookbook' of just exactly how to set things up to make this work? 
    Thanks

  • XML Parsing Error: no element found Location:Line Number 1, Column 1:

    Hi,
    i have a servlet code in which i am using bouncy castle encryption algorithm , if i tried to run that servlet on embeded weblogic server than my servlet works fine without error.
    but if i deploy same Servlet code on SOA domain console than i get following error.
    XML Parsing Error: no element found
    Location: http://localhost:7001/Encryption-PGPEncrypt-context-root/pgpservlet
    Line Number 1, Column 1:
    Please help me friends...

    Hi Chandra,
    Based on my research, the error message is only generated by FireFox when the render page is blank in Internet. For some reason, .NET generates a response type of "application/xml" when it creates an empty page. Firefox parses the file as XML and finding
    no root element, spits out the error message.
    Also, based on your description, the other sites are opened correctly, the issue only happened in Central Administration(CA). This means the SharePoint services are working fine.
    Since this issue only occurred in the CA, it might be due the application pool for the CA is corrupted. Please try to restart the application pool for the CA to resove the issue:
    1. Open Internet Information Service(IIS)
    2. List the application pools
    3. Select the application pool used for the CA
    4. Stop it, and then start it again.
    Note, if the application pool is running in Classic mode, please change it to be Integrated mode.
    Additionally, I found a similar thread, which may help you too:
    http://social.msdn.microsoft.com/Forums/en/sharepoint2010general/thread/824d7dda-db03-452b-99c4-531c5c576396
    If you have any more questions, please feel free to ask.
    Thanks,
    Jin Chen
    Jin Chen - MSFT

  • XML Parsing Error: no element found Line Number 1, Column 1:

    Hi All,
    I have deployed EAR on my standalone server using JDEV 11.1.1.6.0. I am able to get the WSRP portlet producer page on
    http://<server>:7001/contextRoot. But when i try to click on any of the WSDL URL it gives me "XML Parsing Error: no element found Line Number 1, Column 1:"
    and from IE it gives me: XML document must have a top level element. Error processing resource
    there can be a issue with the WSRPContainer.jar file. So i have remove it from my deployment profile, EAR and lib/classpath files.
    Can you please suggest a workaround.
    Regards,
    ND
    Edited by: ND on Dec 4, 2012 9:57 PM

    Hi All,
    this error normally comes when the WLS domain is not not properly created. if you get some exception for ./provesecurity.sh file while creating the domain, then the XML error comes.
    I did not went into the depth but figured out a workaround: restart the VM/hosted box and then create the domain, remember to use diff port name while creating it from the domain creation script.
    Regards,
    ND

  • XML Parsing Error: no element found Location: jar:file:///C:/Program%20Files/Mozilla%20Firefox/chrome/toolkit.jar!/content/global/netError.xhtml Line Number 1, Column 1:

    Accidentally clicked on "Allow for Safe Networks Only" and saved it. When launching Firefox, this error: XML Parsing Error: no element found
    Location: jar:file:///C:/Program%20Files/Mozilla%20Firefox/chrome/toolkit.jar!/content/global/netError.xhtml
    Line Number 1, Column 1:
    I have uninstalled and reinstalled, changed to a new profile, nothing works. I have looked at Options - Network - No Proxy
    Please help as I love Firefox

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]

  • Error mesage is XML Parsing Error: no element found Location: chrome://speeddial/content/speeddial.xul Line Number 1, Column 1:

    XML Parsing Error: no element found
    Location: chrome://speeddial/content/speeddial.xul
    Line Number 1, Column 1:
    This is the error message that I am getting when I try to signon to the Internet Mozilla Firefox.
    Thank
    Elaine Davis

    Sounds like a problem with the Speed Dial extension.
    * http://speeddial.uworks.net/
    See:
    * [[Troubleshooting extensions and themes]]
    ----

  • I am recieving an xml parsing error message on a website I use for work. It used to work on firefox but now it has stopped. It works with other browsers though.

    XML Parsing Error: XML or text declaration not at start of entity
    Location: https://evalue.internationaldelivers.com/service/SVCDOCS/Navistar/isisxsl.xsl
    Line Number 2, Column 1:<?xml version='1.0'?>
    ^
    That is the error I receive the page loads and half the content appears but the other half is blank and I receive that instead. I can attach a screenshot if needed.

    May be cookies issue try this
    Reload the webpage while bypassing the cache
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Clear the cache and the cookies from sites that cause problems.
    '''Clear the Cache''': Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    '''Remove Cookies''' from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"
    *https://support.mozilla.org/en-US/kb/websites-say-cookies-are-blocked-unblock-them

  • XML Parsing Error: no element found In BI Publisher

    Hi Gurus,
    I tried to get XML output for a Data Model which was based on SQL queries.
    But I got the following error in Firefox
    XML Parsing Error: no element found
    Location: http://localhost:9704/xmlpserver/servlet/xdo
    Line Number 4, Column 1:
    In IE I got an other error:
    There is no end tag for DATA_SET
    Any ideas?
    Many thanks
    Laszlo

    Hi,
    I use 11g.
    I tried to create element link when I got this error.
    Now I am using groupink.
    Without using bind variable I got result (Cartesian product)
    However if i created and used bind variable I got the same error
    this is a dept data set:
    select     "DEPARTMENTS"."DEPARTMENT_ID" as DEPTNO,
         "DEPARTMENTS"."DEPARTMENT_NAME" as "DEPARTMENT_NAME",
         "DEPARTMENTS"."LOCATION_ID" as "LOCATION_ID",
         "DEPARTMENTS"."MANAGER_ID" as "MANAGER_ID"
    from     "HR"."DEPARTMENTS" "DEPARTMENTS"
    this is the emp data set:
    select     "EMPLOYEES"."COMMISSION_PCT" as "COMMISSION_PCT",
         "EMPLOYEES"."DEPARTMENT_ID" as "DEPARTMENT_ID",
         "EMPLOYEES"."EMAIL" as "EMAIL",
         "EMPLOYEES"."EMPLOYEE_ID" as "EMPLOYEE_ID",
         "EMPLOYEES"."FIRST_NAME" as "FIRST_NAME",
         "EMPLOYEES"."HIRE_DATE" as "HIRE_DATE",
         "EMPLOYEES"."JOB_ID" as "JOB_ID",
         "EMPLOYEES"."LAST_NAME" as "LAST_NAME",
         "EMPLOYEES"."MANAGER_ID" as "MANAGER_ID"
    from     "HR"."EMPLOYEES" "EMPLOYEES"
    WHERE "EMPLOYEES"."DEPARTMENT_ID" =:DEPTNO
    Thanks for any tip!
    Laszlo

Maybe you are looking for