Click to See Complete Forum and Search --> : elements of xml


Ninel
02-12-2004, 01:49 PM
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

crh3675
02-12-2004, 01:58 PM
It sounds like you are receiving improperly formatted XML.