elements of xml

wxdqz

New Member
I am using MSXML2.

I receive the following XML:

<name>
<first>John</first>
<last>Smith</last>
</name>

If there is no middle name the element will not be there.
And if I try to pull the middle name out I receive an error.

How can I check if that element exists?

thanks,
Ninel
 
Back
Top