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: 

method for read xml head data

Former Member
0 Kudos

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

1 REPLY 1

Former Member
0 Kudos

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.