generating xml using xml schema
I am having requirement to generate xml file using xml schema. I found that .net can be used in QTP to generate xml. Please find the code below and please let me know how can I use the below .net code in QTP.
XmlTextWriter textWriter = new XmlTextWriter("po.xml", null);
textWriter.Formatting = Formatting.Indented;
XmlQualifiedName qname = new XmlQualifiedName("PurchaseOrder",
XmlSampleGenerator generator = new XmlSampleGenerator("po.xsd", qname);
Last edited by Yogi_Shukla; 06-06-2013 at 07:40 AM.
You can use DOTNetFactory to convert your .NET code to QTP code.