Thanks a lot

On Wed, Apr 29, 2009 at 2:44 AM, Sreedhar Mallipeddi <[email protected]
> wrote:

> Hi
> For the tags posted by u...this is the code
>
> *XmlString = "<Root><averageRating
> type=""number"">0</averageRating><categories type=""string"">Captain /
> ViceCaptain</categories></Root>" *
> *Set oXmlDoc = XMLUtil.CreateXML *
> *oXmlDoc.Load XmlString *
> *msgbox oXmlDoc.GetRootElement.ChildElements.Item(1).Value
> msgbox oXmlDoc.GetRootElement.ChildElements.Item(2).Value
> *
>
> On Tue, Apr 28, 2009 at 10:37 AM, Mr. Joy Vaz <[email protected]> wrote:
>
>> Hi,
>> Thanks for ur responce..
>>
>> How to get value of particular note using QTP. currently i am enable to
>> get the name of node using *object.ElementName() *but it give me name i
>> want value of node. which function i should use.
>>  e.g.
>>      < averageRating type="*number*">0</averageRating>
>>      <categories type="*string*">Captain / ViceCaptain</categories>
>>
>> From above two lines i m able to get name of node as averageRating and 
>> categories
>> but i want to get its value i.e. "0" and "Captain / ViceCaptain" so that
>> i can save it in Datattable.
>>
>>
>>
>>
>>  On Tue, Apr 28, 2009 at 12:59 AM, Sreedhar Mallipeddi <
>> [email protected]> wrote:
>>
>>>  hi
>>> Use the XMLUTIL object and search for ur node in XML file..and u will get
>>> the value of that paticular node..
>>>
>>>
>>>
>>> On Tue, Apr 28, 2009 at 7:30 AM, Joy <[email protected]> wrote:
>>>
>>>>
>>>> Hello all,
>>>>
>>>> Is there a way to read each and every element in a XML file and get
>>>> the element's value (i.e., value between element's start tag and the
>>>> element's end tag.)?? Please help..
>>>>
>>>>
>>>>
>>>
>>>
>>> --
>>> Mallipeddi Sreedhar
>>> 91-9848871279
>>>
>>>
>>>
>>
>>
>> --
>> Cheers...!!!!!
>>
>> Joy
>>
>>
>>
>>
>
>
> --
> Mallipeddi Sreedhar
> 91-9848871279
>
> >
>


-- 
Cheers...!!!!!

Joy

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to