Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

XML_FORMAT_ERROR...

Former Member
0 Kudos

Hi Friends,

I got the below dumperror message.

the read XML document hasa invalied format.

the XML format did not have the specif format.it could not be interepted properly.

the XML format was determined to be invalied for one of the following reasons.

1) the basic structure of the document was incorrect; for example the root tag must be <body>

2) there are start tagsin place where they are not expected;for exampl;e an integer is about to be read

3) reading special data types requires the specification of the correct version number.

4) properties are missing or too many properties exist.

BELOW IS THE XML FILE I AM READING.

<?xml version ="1.0" encoding = "UTF-8"?>

-<cXML payloadid ='200603201052554458090@130.180.1.14" xml:lang = "en-us"

timestamp = "2007-03-20T10:52:55+08:00">

-<RESPONSE>

<status code = "500" text = "error"/>

<document reference payloadid = "po300000787319032007115631"/>

<response>

</cxml>

i use the below code to read the file.

open dataset l_file_name for input in binary mode.

do.

readdataset i_file_name into gs_srclin.

append gs_srclin to gt_srctab.

enddo.

close dataset l_file_name.

TRY.

CALL TRANSFORMATION (gc_string)

source XML gt_srctab

RESULTpoheader= gt_xml.

endtry.

the dump goes when it pass to the CALL TRANSFORMATION .

i dont know why and what reason it goes to dump,so pls check whether the problem is in the code or in the xml fieand helpto solve this issue.

Thanks,

Raj.

2 REPLIES 2

Former Member
0 Kudos

solved

0 Kudos

Hi Deesanth,

Can you please share the solution with us? My email id is srinivas.p.panth@grace.com . We are facing a similar error in our GRC SOD report.

Regards,

Srinivas Panth