Application Development and Automation 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: 
Read only

Xml to ABAP internal table mapping and schema validation

Former Member
0 Likes
1,186

Hi Experts,

I'm trying to get data from an xml file into internal tables in ABAP. My requirement is to validate xml against an xsd schema, how can i do it?

My other question is, if there are any possible ways to map the fields of a table so that once the xml file is read, the fields automatically get populated depending on the different elements and attributes in the xml file.

-joe

1 ACCEPTED SOLUTION
Read only

Former Member

Hi Experts,

I'm trying to get data from an xml file into internal tables in ABAP. My requirement is to validate xml against an xsd schema, how can i do it?

My other question is, if there are any possible ways to map the fields of a table so that once the xml file is read, the fields automatically get populated depending on the different elements and attributes in the xml file.

-joe

4 REPLIES 4
Read only

Former Member
Read only

0 Likes
853

Thank You Terry.

I followed a different approach to validate the xml schema. I used the DOM tree method.

-Joe

Read only

0 Likes
853

Hi J ,

Can you let me know how to validate the XML data . Can you please tell me the exact steps for that .

Thank you

Ashutosh

Read only

0 Likes
853

HI Ashutosh

I stored the data with regard to the schema inside a table and validated the table against each and every node. If the validations passed then I would go ahead and process the file.

Hope this helps

Let me know if you need further clarifications