on 11-11-2009 3:00 PM
Hi Experts,
I have a File-RFC scenario. My incoming XML file has got a comment as follows.
<!DOCTYPE MACHINE SYSTEM "PS_AU_HC_DTD_XML.dtd">
The parser is not able to comprehend this line, and I can see the error in SXI_MONITOR as follows.
The system cannot locate the resource specified. Error processing resource 'PS_AU_HC_DTD_XML.dtd'. Error processing resource
<!DOCTYPE MACHINE SYSTEM "PS_AU_HC_DTD_XML.dtd">
Can some one please suggest a solution?
Regards,
Subhendu
Hi Subhendu,
This is due to non availability of DTD while processing of xml. You can go for Java or xslt mapping to load the xsd and remove the doctype definition from xml. For sample code, please refer to sap note - 812966.
Regards,
Sunil Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
> Is there a way to do it in standard graphical mapping?
No, It can't be done independently with graphical mapping. Java/XSLT/ABAP mapping must be used before that.
If you don't want to go in complexity, you can use Java mapping just before Graphical mapping in interface mapping.
Java mapping would do these steps -
a) Convert the incoming xml into string.
b) Remove the Doctype statment with some string function.
c) Convert the string back to xml.
Regards,
Sunil Chandra
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.