Skip to Content
Former Member
Sep 29, 2006 at 10:53 PM

How can we validate a XML against his external schema XSD



I use the XML library for create my XML file, I’m extracting the data

from R3 and building the XML document.

I wish to validate this document against his schema XSD built by third party (government organization) before i transfer this data (xml file)

to the external entity.

In my abap program:

¿How can i reach this validation level and if any

error exists then how can i get or trap the detail information?

this is a sample file XML with the external schema reference, as you can see in this part of the code.

<?xml version="1.0" encoding="UTF-8" ?>

-" xmlns:xsi="" xsi:schemaLocation="" version="2.0" serie="A" folio="0000238" fecha="2006-09-01T19:32:03-05:00" sello="o4kAzhytaTKThSk9tbTQGg5OGacAltWZwxQPZuMg1X hfjMq5jJ0GyO7w2//bf8aTuHnbqwpkR7rIgIehGLy88Xb3Ck0EDsWZEAC1QUuqRq2iWKAnGQPS4l9s0QrJHt0Ziojjd0GQFek6BYXPdlmdTjLZ2x+J8ffYEGpIQZRB8=" noAprobacion="2755" anoAprobacion="2006" formaDePago="En una sola exhibicion" noCertificado="00001000000000806462" condicionesDePago="Neto a 30 días sin DPPP" subTotal="2531.99" descuento="0.00" total="2912.90" tipoDeComprobante="ingreso">


<DomicilioFiscal calle="AVE. UNIVERSIDAD" noExterior="992 NTE." colonia="COL. CUAUHTEMOC" municipio="SAN NICOLAS DE LOS GARZA" estado="N.L." pais="MEXICO

We are using SAP R/3 46C

Thanks in Advance for your help.

Alejandro Pérez