Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

xml parser

681359Jan 6 2010 — edited Jan 7 2010
Hi,

Please can anybody help me to identify where is the problem, when i am trying to parse an .xml file "syntaxerror.xml', getting the following errors. I am new with xml and downloaded oracleexpress10g from OTN site.

ORA-31011: XML parsing failed
ORA-19202: Error occurred in XML processing
LPX-00210: expected '<' instead of '?'
Error at line 1
ORA-06512: at "XDB.DBMS_XMLPARSER", line 190
ORA-06512: at "XMLBOOK.CHECKXMLINCLOB", line 13
ORA-06512: at "XMLBOOK.CHKXML", line 10
ORA-06512: at line 2

though my xml file is free or error.
<code>
<?xml version="1.0" ?>
<CLAIM>
<CLAIMID>77804</CLAIMID>
<PAYMENT>1000</PAYMENT>
<DAMAGEREPORT>
THE INSURED
<VEHICLE MAKE="VOLKS"> BEETLE</VEHICLE>
BROKE THROUGH THE GUARD RAIL AND PLUMMETED INTO A RAVINE. THE CAUSE WAS DETERMINED TO BE
<CAUSE>FAULTY BRAKES</CAUSE>
AMAZINGLY THERE WERE NO CASUALTIES.

</DAMAGEREPORT>
</CLAIM>
</code>

procedure used to exec the file

<code>
CREATE OR REPLACE
PROCEDURE CHKXML is

xmlclob clob;
wellformed boolean;
parseerror VARCHAR2(200);
BEGIN
select xmldoc into xmlclob
from xml_documents
where docname='syntaxerror.XML';
checkxmlinclob(xmlclob, wellformed, parseerror);
if not wellformed then
dbms_output.put_line(parseerror);
end if;
END CHKXML;
</code>

Best Regards,
Abida
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2010
Added on Jan 6 2010
2 comments
2,402 views