Skip to Content
0
Jul 14, 2015 at 08:32 PM

XML Parser

209 Views

Hi there,

I'm facing a problem while I try to parse a XML file.

This is my code:

DATA: o_xml_document TYPE REF TO cl_xml_document.

DATA: v_tag_value TYPE string.

CREATE OBJECT o_xml_document TYPE cl_xml_document.

o_xml_document->parse_xstring( v_xml_xstring ). " <<<<--- it's ok, I already have this

v_tag_value = o_xml_document->find_simple_element( name = 'infCarga'). <<--- this is the tag name that I need


WRITE: / v_tag_value. "


Result:


33398.98FRASCO VIDROPALLET03VOLUMES7819.936003VOLUMES16.0000


I would like to get tag names and values... (vCarga = 333398.98, proPred=......)


Does anyone could suggest me something?


Attachments

tag_xml.png (13.0 kB)