‎2008 Jun 17 5:33 PM
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.
‎2008 Jun 18 8:23 AM
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
‎2008 Jun 17 9:40 PM
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
‎2008 Jun 18 8:20 AM
Hi Uwe.
Thanks for your reply. The problem is we don't have PI. I need to do it in BI.
‎2008 Jun 18 8:23 AM
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
‎2008 Jun 18 8:43 AM
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..
‎2008 Jun 18 9:49 AM
‎2008 Jun 18 10:40 AM
Hmm, I just had an idea. I think this can be done on OS level, via command line..
‎2014 Sep 24 3:43 PM
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?!