<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic XSD VALIDATION IN ABAP PROGRAM in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165790#M1622733</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement where in a report i am picking xml file from the presentation server (desktop) and then i am parsing the xml file using FM "SMUM_XML_PARSE" (first i use FM SCMS_BINARY_TO_XSTRING and then SMUM_XML_PARSE). after using the function SMUM_XML_PARSE i get the xml data in my internal table and then my report uses that data for some processing. This all is working fine . &lt;/P&gt;&lt;P&gt;My issue is that how do i do a XSD VALIDATION for the xml file that i am reading . I would have liked to do a xsd validation after i import the xml file and throw error if the xml file is not as per its xsd.As i am not using any middleware technology like XI/ WTX which have XSD validation functionality i am not sure how to achieve this in abap program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 07 Sep 2011 13:25:44 GMT</pubDate>
    <dc:creator>former_member595583</dc:creator>
    <dc:date>2011-09-07T13:25:44Z</dc:date>
    <item>
      <title>XSD VALIDATION IN ABAP PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165790#M1622733</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a requirement where in a report i am picking xml file from the presentation server (desktop) and then i am parsing the xml file using FM "SMUM_XML_PARSE" (first i use FM SCMS_BINARY_TO_XSTRING and then SMUM_XML_PARSE). after using the function SMUM_XML_PARSE i get the xml data in my internal table and then my report uses that data for some processing. This all is working fine . &lt;/P&gt;&lt;P&gt;My issue is that how do i do a XSD VALIDATION for the xml file that i am reading . I would have liked to do a xsd validation after i import the xml file and throw error if the xml file is not as per its xsd.As i am not using any middleware technology like XI/ WTX which have XSD validation functionality i am not sure how to achieve this in abap program.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Sep 2011 13:25:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165790#M1622733</guid>
      <dc:creator>former_member595583</dc:creator>
      <dc:date>2011-09-07T13:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: XSD VALIDATION IN ABAP PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165791#M1622734</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the parser should verify if the XML file complies with XSD file if the XSD file is linked&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the link is done in root tag of the XML file: you should see something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&amp;lt;RootTag xsi:noNamespaceSchemaLocation="somepath/somefile.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&amp;gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Sep 2011 15:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165791#M1622734</guid>
      <dc:creator>franois_henrotte</dc:creator>
      <dc:date>2011-09-13T15:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: XSD VALIDATION IN ABAP PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165792#M1622735</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Which parser will verify that ? the fm SMUM_XML_PARSE doesnt verify that and the max that i have seen is DTD validation done by writing some additional code but i have not seen R3 doing XSD validation&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 15:08:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165792#M1622735</guid>
      <dc:creator>former_member595583</dc:creator>
      <dc:date>2011-09-14T15:08:24Z</dc:date>
    </item>
    <item>
      <title>Re: XSD VALIDATION IN ABAP PROGRAM</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165793#M1622736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you're right, iXML can only validate DTD via its if_ixml_parser-&amp;gt;set_validating method (you can find this information in SAP SDN article "ABAP XML Mapping", as of release 6.10, I couldn't find any other reference saying that xsi:noNamespaceSchemaLocation is supported since then).&lt;/P&gt;&lt;P&gt;By looking at SDN, I saw an external link about XSD to DTD conversion via XSLT (http://crism.maden.org/consulting/pub/xsl/xsd2dtd.xsl), but I don't have any idea if it works. On another thread, people used OS command to do XML/XSD validation, but didn't describe what they ran exactly (anyway, that means using any external tool).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sandra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:32:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/xsd-validation-in-abap-program/m-p/8165793#M1622736</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2011-09-14T19:32:27Z</dc:date>
    </item>
  </channel>
</rss>

