Hi Ganesh,
Below are the lines of code:
But before that here is my requirement:
1. I need to two xmls and need to pop-out all sort of differences whether
they are in elements/attributes/element's value/attribues's value/number of
attributes, anything possible.
2. Hence i am iterating starting from the root element and next taking
those elements which are not same recursively to find out the exact
mismatch.
3. Hence here children1 is pointing to childrens array of element in the
first xml while children2 is pointing to childrens array of corresponding
element in xml2.
Set children1=root_element1.ChildElements()
Set children2=root_element2.ChildElements()
value1=""
value2=""
If children1.count>0 and children1.count=children2.count Then
For child_counter = 1 To children1.count Step 1
value1= children1.Item(child_counter)
value2= children2.item(child_counter)
For several iterations i got this running but within some xmls or say
running overnight i get this error everytime.
Regards
Meghraj Singh
On Mon, Mar 21, 2016 at 1:43 PM, Ganesh muralidharan <[email protected]>
wrote:
> pls add the code for children1 also in the mail.
>
> On Mon, Mar 21, 2016 at 1:01 PM, Meghraj Singh <
> [email protected]> wrote:
>
>> Can anyone please suggest me any workaround for this. I am stuck on this
>> and not getting clue to go ahead.
>>
>>
>> On Saturday, March 19, 2016 at 8:41:02 AM UTC+5:30, Meghraj Singh wrote:
>>>
>>> Hi,
>>> My script runs without any problem but on keeping it running overnight
>>> it gives following error.
>>> I am working on XMLs.
>>>
>>> Regards
>>> Meghraj Singh
>>>
>>> --
>> --
>> You received this message because you are subscribed to the Google
>> "QTP - HP Quick Test Professional - Automated Software Testing"
>> group.
>> To post to this group, send email to [email protected]
>> To unsubscribe from this group, send email to
>> [email protected]
>> For more options, visit this group at
>> http://groups.google.com/group/MercuryQTP?hl=en
>>
>> ---
>> You received this message because you are subscribed to the Google Groups
>> "QTP - HP Quick Test Professional - Automated Software Testing" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Regards,
>
>
> Ganesh Muralidharan
> 'God Never Forgets'
>
> --
> --
> You received this message because you are subscribed to the Google
> "QTP - HP Quick Test Professional - Automated Software Testing"
> group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/MercuryQTP?hl=en
>
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "QTP - HP Quick Test Professional - Automated Software
> Testing" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/mercuryqtp/1iKG6fBlW7s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> For more options, visit https://groups.google.com/d/optout.
>
--
Regards
Meghraj Singh
--
--
You received this message because you are subscribed to the Google
"QTP - HP Quick Test Professional - Automated Software Testing"
group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/MercuryQTP?hl=en
---
You received this message because you are subscribed to the Google Groups "QTP
- HP Quick Test Professional - Automated Software Testing" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.