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();
}
}
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
Thanks for visiting my blog,
I will reply for your comment within 48 hours.
Thanks,
krishna.