2010 Feb 01 9:34 AM
I try to validate my xml import file but I can't find proper validation and error message.
the source where it originates is a system where also texts can be entered manually which are part of the xml file.
I discoverd myself that & and ! are characters which are not allowed. but I'm looking for a way to check this before I process the xml file.
I have this coding and I found smum_xml_parse but still the error is not clear about what is wrong ?
try.
CALL TRANSFORMATION ('ID')
SOURCE XML it_xml_import
RESULT order_header_in = st_sdhd1 order_conditions_in = ta_cond order_partners = ta_parnr order_text = ta_sdtext order_items_in = ta_sditm
.
CATCH cx_xslt_exception INTO xslt_error.
xslt_message = xslt_error->get_text( ).
ASSIGN COMPONENT 'ERROR' OF STRUCTURE <l_line> TO <l_field>.
<l_field> = xslt_message.
data: gt_temp type STANDARD TABLE OF SMUM_XMLTB.
itx_xml_import = it_xml_import.
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = itx_xml_import
tables
xml_table = gt_temp
return = ta_ret2
.
ENDTRY.the xslt_message is also very unclear of what is exactly wrong with the file.
are there any function which can give me more detailed information about the xml file and what is wrong with it ?
Edited by: A. de Smidt on Feb 1, 2010 10:34 AM
2010 Feb 01 12:05 PM
The ampersand is not allowed in XML CDATA, you must use the entity &amp;
The ampersand is not allowed in XML CDATA, you must use the entity &amp;
2010 Feb 01 12:05 PM
The ampersand is not allowed in XML CDATA, you must use the entity &amp;
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |