How to Validate Existing XML file from the Inbound Location in MS Dynamics AX 2012 ?

Hi Everyone,

I need to validate XML file from the Inbound Location of the Microsoft Dynamics AX 2012. I have created the XML file and Readed the XML file from the location and copied that file into another folder for validation. But Here I am struggle with one problem. Which is “How to Validate the XML file ?”. I have googled but even I didn’t find out any strong sample for xml validation yet. Even I am a beginner to the AX 2012 x++ programing. So If you Have any samples or Links for this, Please help me…

Thanks in advance…

If you want to validate XML against an XML schema, you can use XmlTextReader.validate(). Look at AifXsltRepository.importFromFile() or find another example by cross-references.

If you mean something else by “validation”, please provide more information.