Quick test professional

QTP Tips QTP codes QTP Faqs and more

Merge 2 XML using Dotnet Factory

Dim objReader1,objReader2,objds1,objds2
Set objReader1 = DotNetFactory.CreateInstance(“System.Xml.XmlTextReader”, “System.Xml”,”C:\Documents and Settings\kmohankumar\Desktop\11.xml”)’ Creates the instance for the XMLWriter
Set objReader2 = DotNetFactory.CreateInstance(“System.Xml.XmlTextReader”, “System.Xml”,”C:\Documents and Settings\kmohankumar\Desktop\12.xml”)’
Set objds1 = DotNetFactory.CreateInstance(“System.Data.DataSet”, “System.Data”)
Set objds2 = DotNetFactory.CreateInstance(“System.Data.DataSet”, “System.Data”)
objds1.WriteXml(“C:\Documents and Settings\kmohankumar\Desktop\13.xml”)
Set objReader1=Nothing
Set objReader2=Nothing
Set objds1=nothing
Set objds2=nothing

Author:Mohan Kakarla


November 27, 2008 - Posted by | DotNetFactory, XML Scripting

1 Comment »

  1. Hi Mohan,

    Your blog just rocks! Keep it up.

    By the by this is Rajesh.Accidentialy i came to this blog and could able to learn something.

    – Rajesh

    Comment by Rajesh P | January 23, 2010 | Reply

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: