07-31-2006 8:10 AM
hi
does exist a xml method to read this data ?
<?xml version="1.0" encoding="iso-8859-1"?> so the version of the XML and
<!DOCTYPE FACTURESFR SYSTEM "facturesfr03.10.dtd">
the dtd version ?
for the moment i take this FM
DATA : t_xml TYPE STANDARD TABLE OF smum_xmltb,
DATA t_err TYPE STANDARD TABLE OF bapiret2,
read TYPE xstring.
CALL FUNCTION 'SMUM_XML_PARSE'
EXPORTING
xml_input = read
TABLES
xml_table = t_xml
return = t_err.
but i use only this FM before to read in the XML table the data and after i do the parsing with abap method. And this FM it's heavier than abap OO.
thanks for your replies
serge
07-31-2006 8:43 AM
hi
i solved myself.
data: xml_fic TYPE string,
xml_conv TYPE REF TO cl_abap_conv_in_ce,
type(9) TYPE c VALUE 'fact_3.10.dtd',
xml_size TYPE i.
xml_conv = cl_abap_conv_in_ce=>create( input = read replacement = space ).
xml_conv->read( IMPORTING data = xml_fic len = xml_size ).
FIND type IN xml_fic IN CHARACTER MODE.