Application Development and Automation 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: 
Read only

Error in Parsing XML file

0 Likes
622

Hi all,

we are facing some errors in parsing the XML file, but the XML file is correct.

I am explaining the scenario below..

First the XML file will be putted into the application server, as it is coming from Middle ware. We are reading the XML file from the application server using "open datasets" and parsing using cl_ixml IXML parser. We are getting error in some cases that <b>Error in wbw_parameters.xml File: In line: 1, Reason unexpected symbol; expected '<', '</', entity refe. Please correct and try again.

</b>

But If I am giving more spaces in the last line of the XML file and uploading to the application server. I am not getting these errors, as it not possible to give more spaces all the time to the XML file and is also not advicable.

Did any one face this kind of situation. The main thing I notice here is when we are writing the XML file into the application server a '#' also getting added in each line. Does this "#' is making the error while parsing..

Please provide your valuable solutions and is also urgent..

Thanks,

Vijay

Hi all,

we are facing some errors in parsing the XML file, but the XML file is correct.

I am explaining the scenario below..

First the XML file will be putted into the application server, as it is coming from Middle ware. We are reading the XML file from the application server using "open datasets" and parsing using cl_ixml IXML parser. We are getting error in some cases that <b>Error in wbw_parameters.xml File: In line: 1, Reason unexpected symbol; expected '<', '</', entity refe. Please correct and try again.

</b>

But If I am giving more spaces in the last line of the XML file and uploading to the application server. I am not getting these errors, as it not possible to give more spaces all the time to the XML file and is also not advicable.

Did any one face this kind of situation. The main thing I notice here is when we are writing the XML file into the application server a '#' also getting added in each line. Does this "#' is making the error while parsing..

Please provide your valuable solutions and is also urgent..

Thanks,

Vijay

1 REPLY 1
Read only

Former Member
0 Likes
490
  1. will come if there are any tab spaces in the file..

delete the tab spaces from the file..