The following sample job used to show any xml,XSLT,XSD schema in the form and validate that XML.
In this example I have the table with the xml value stored in it.
if you want to validate from file also we can do as well.
static void Krishh_LoadXmlform(Args _args)
{
ChangeOrderSourceLog sourceLog;
AifXmlViewer viewer;
;
select firstOnly from sourceLog where sourceLog.changeOrdernum='3369';
if(sourceLog )
{
// construct the AIFXMLViewer class object by the xml value and the type of the XMLFile.
viewer=AifXmlViewer::construct(sourceLog.ChangeOrderSourceXML,AifXmlType::XML);
viewer.show();
}
}
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.