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

Validate XML using XSD (XML Schema)

0 Likes
2,062

Hi experts.

Is there any way in ABAP to validate XML file against specified XSD file?

I found only possibility to validate against DTD, but no XSD. As far as I know this is only possible in Java, or is a part of XI. Is it doable without Java or XI (on NetWeaver 2004s)?

Help appreciated (and rewarded).

Regards, Frantisek.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,338

Hello

In packacke SIXML (and its sub-packages) you will find sample reports where the validation is done using DTD.

I looked around classes and function modules related with XML validation (on ECC 6.0) but could not find anything. Maybe you are successful by checking the methods of the IXML interfaces.

Regards

Uwe

7 REPLIES 7
Read only

uwe_schieferstein
Active Contributor
0 Likes
1,338

Hello

Perhaps you missed this link: [How to Perform XML Validations in SAP NetWeaver Process Integration 7.1|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d06dff94-9913-2b10-6f82-9717d9f83df1]

Regards

Uwe

Read only

0 Likes
1,338

Hi Uwe.

Thanks for your reply. The problem is we don't have PI. I need to do it in BI.

Read only

uwe_schieferstein
Active Contributor
0 Likes
1,339

Hello

In packacke SIXML (and its sub-packages) you will find sample reports where the validation is done using DTD.

I looked around classes and function modules related with XML validation (on ECC 6.0) but could not find anything. Maybe you are successful by checking the methods of the IXML interfaces.

Regards

Uwe

Read only

0 Likes
1,338

I already checked, there is nothing, just DTD validation :-(. I really really don't understand why XSD validation is not possible in ABAP, if it is performance reasons or what.

The customer wants to validate using XSD schema. I guess the only way then will be to copy an XML file to Portal and validate there using Java. But the XML files will be 1-50 MB. This will surely hinder performance..

Read only

0 Likes
1,338

Anyone has another ideas how to deal with this?

Read only

0 Likes
1,338

Hmm, I just had an idea. I think this can be done on OS level, via command line..

Read only

Former Member
0 Likes
1,338

Is this still up-to-date? Is there no way to do native XSD-validation in the ABAP-Stack?

What about the whole Services-Infrastructure SPROXY, ESR etc... is there really no support?!